/* ============================================================
   HUB SUPPORT DESIGN SYSTEM — Components
   Requires: tokens.css
   ============================================================ */

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background-color: var(--surface-page);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default);
}
a:hover { color: var(--brand-orange); }

img, svg { display: block; max-width: 100%; }

/* ============================================================
   LAYOUT — Container
   ============================================================ */
.hs-container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (max-width: 768px) {
  .hs-container { padding-inline: var(--space-4); }
}

/* ============================================================
   BUTTON
   ============================================================ */
.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);   /* 12px 20px — base default */
  font-family: var(--font-jp);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);             /* 14px — button text != body text */
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--duration-base) var(--ease-default),
    border-color     var(--duration-base) var(--ease-default),
    color            var(--duration-base) var(--ease-default),
    box-shadow       var(--duration-base) var(--ease-default),
    transform        var(--duration-fast) var(--ease-default);
  user-select: none;
}
.hs-btn:active { transform: scale(0.98); }
.hs-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.hs-btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* Size — sm */
.hs-btn-sm {
  padding: 6px var(--space-3);              /* 6px 12px */
  font-size: 13px;
  border-radius: var(--radius-xs);
}
/* Size — md (explicit override) */
.hs-btn-md { padding: var(--space-3) var(--space-5); }
/* Size — lg */
.hs-btn-lg {
  padding: var(--space-4) var(--space-6);   /* 16px 24px */
  font-size: var(--fs-body);               /* 16px — was 18px, too large */
  border-radius: var(--radius-md);
}

/* Variant — primary (filled orange) */
.hs-btn-primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--text-inverse);
}
.hs-btn-primary:hover {
  background-color: var(--orange-600);
  border-color: var(--orange-600);
  box-shadow: var(--shadow-orange);
  color: var(--text-inverse);
}

/* Variant — secondary (outlined orange) */
.hs-btn-secondary {
  background-color: transparent;
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.hs-btn-secondary:hover {
  background-color: var(--orange-50);
  color: var(--orange-600);
  border-color: var(--orange-600);
}

/* Variant — ghost */
.hs-btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.hs-btn-ghost:hover {
  background-color: var(--neutral-100);
  color: var(--text-primary);
}

/* Variant — dark (for use on orange/dark backgrounds) */
.hs-btn-dark {
  background-color: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--text-inverse);
}
.hs-btn-dark:hover {
  background-color: var(--neutral-800);
  border-color: var(--neutral-800);
}

/* Variant — white (on dark/orange section) */
.hs-btn-white {
  background-color: var(--neutral-0);
  border-color: var(--neutral-0);
  color: var(--brand-orange);
}
.hs-btn-white:hover {
  background-color: var(--orange-50);
  color: var(--orange-600);
}

/* Full width */
.hs-btn-full { width: 100%; }

/* ============================================================
   BADGE / LABEL
   ============================================================ */
.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-jp);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-caption);
  line-height: 1;
  padding: 3px var(--space-2);
  border-radius: var(--radius-pill);
}

.hs-badge-orange {
  background-color: var(--orange-100);
  color: var(--orange-700);
}
.hs-badge-green {
  background-color: var(--green-100);
  color: var(--green-700);
}
.hs-badge-neutral {
  background-color: var(--neutral-100);
  color: var(--neutral-700);
}
.hs-badge-dark {
  background-color: var(--surface-dark);
  color: var(--neutral-0);
}

/* ============================================================
   CARD
   ============================================================ */
.hs-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--duration-slow) var(--ease-default),
    transform  var(--duration-slow) var(--ease-default);
}

.hs-card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.hs-card-body {
  padding: var(--space-6);
}

.hs-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-sunken);
}

/* Service card (icon + title + description) */
.hs-service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-slow) var(--ease-default),
              transform  var(--duration-slow) var(--ease-default),
              border-color var(--duration-slow) var(--ease-default);
}
.hs-service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-brand);
}

.hs-service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange-50);
  border-radius: var(--radius-md);
  color: var(--brand-orange);
}

.hs-service-card__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.hs-service-card__desc {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  flex: 1;
}

.hs-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: var(--brand-orange);
  transition: gap var(--duration-base) var(--ease-default);
}
.hs-service-card:hover .hs-service-card__link { gap: var(--space-3); }

/* News / article card */
.hs-news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-slow) var(--ease-default),
              transform  var(--duration-slow) var(--ease-default);
}
.hs-news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hs-news-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--neutral-100);
  background-size: cover;
  background-position: center;
}
.hs-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-default);
}
.hs-news-card:hover .hs-news-card__img img { transform: scale(1.04); }

.hs-news-card__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.hs-news-card__tag {
  align-self: flex-start;
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--orange-700);
  background: var(--orange-50);
  border: 1px solid var(--orange-200);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.hs-news-card__meta {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
}

.hs-news-card__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  flex: 1;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.hs-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--neutral-0);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.hs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hs-header__logo img {
  height: 36px;
  width: auto;
}

.hs-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.hs-nav__link {
  font-family: var(--font-jp);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-base) var(--ease-default);
}
.hs-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--brand-orange);
  border-radius: 2px;
  transition: width var(--duration-base) var(--ease-default);
}
.hs-nav__link:hover,
.hs-nav__link[aria-current="page"] {
  color: var(--text-primary);
}
.hs-nav__link:hover::after,
.hs-nav__link[aria-current="page"]::after {
  width: 100%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hs-hero {
  background-color: var(--surface-card);
  padding-block: var(--space-24) var(--space-20);
  position: relative;
  overflow: hidden;
}

.hs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hs-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--brand-orange);
  background-color: var(--orange-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hs-hero__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.hs-hero__title mark,
.hs-hero__accent {
  color: var(--brand-orange);
  background: none;
}

.hs-hero__subtitle {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.hs-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hs-hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hs-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hs-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .hs-hero__title { font-size: var(--fs-h2); }
  .hs-hero__image { order: -1; max-height: 320px; }
}

/* ============================================================
   SECTION HEADER (section タイトル)
   ============================================================ */
.hs-section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* Left-aligned variant — for content pages (about, service detail) where the
   section header should align flush-left with the body, not centered. Resets the
   centered block so the title lines up with the text beneath it. */
.hs-section-header--left {
  text-align: left;
  max-width: none;
  margin-inline: 0;
}

/* Key-value spec table (会社概要 / company facts). The row-header label column is
   tinted (navy-50) so it stays legible on any section background — not washed out. */
.hs-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;                 /* clip the tinted column to the rounded corners */
  box-shadow: var(--shadow-sm);
}
.hs-info-table th {
  width: 32%; text-align: left; vertical-align: top;
  padding: var(--space-4) var(--space-5);
  background: var(--navy-50);
  color: var(--brand-navy); font-weight: var(--fw-bold);
  border-bottom: 1px solid var(--border-default);
}
.hs-info-table td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-primary); vertical-align: top; line-height: var(--lh-relaxed);
  border-bottom: 1px solid var(--border-subtle);
}
.hs-info-table tr:last-child th, .hs-info-table tr:last-child td { border-bottom: none; }

.hs-section-header__label {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-3);
}

.hs-section-header__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hs-section-header__desc {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* ============================================================
   CTA BANNER (orange background)
   ============================================================ */
.hs-cta-banner {
  /* orange-700 — 白文字でWCAG AA（〜6:1）を満たす濃いオレンジ */
  background-color: var(--orange-700);
  padding-block: var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hs-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hs-cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-md);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hs-cta-banner__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--text-inverse);
}

.hs-cta-banner__subtitle {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: #fff;
}

.hs-cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   STATS / NUMBERS
   ============================================================ */
.hs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.hs-stat__number {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--brand-orange);
}

.hs-stat__unit {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.hs-stat__label {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}

/* ============================================================
   STEP LIST (伴走支援 process)
   ============================================================ */
.hs-step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hs-step {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}

.hs-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-orange), var(--orange-100));
}

.hs-step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-orange);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  position: relative;
  z-index: 1;
}

.hs-step__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hs-step__desc {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* ============================================================
   TESTIMONIAL / QUOTE
   ============================================================ */
.hs-quote {
  background-color: var(--surface-card);
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hs-quote__text {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.hs-quote__author {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.hs-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hs-label {
  font-family: var(--font-jp);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: var(--text-primary);
}

.hs-label .required {
  color: var(--error);
  margin-left: var(--space-1);
}

.hs-input {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  color: var(--text-primary);
  background-color: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: border-color var(--duration-base) var(--ease-default),
              box-shadow    var(--duration-base) var(--ease-default);
  appearance: none;
  outline: none;
}

.hs-input:hover { border-color: var(--border-strong); }

.hs-input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

.hs-input::placeholder { color: var(--text-disabled); }

textarea.hs-input {
  resize: vertical;
  min-height: 120px;
}

.hs-input-error { border-color: var(--error); }
.hs-input-error:focus { box-shadow: 0 0 0 3px rgba(204, 46, 46, 0.25); }

.hs-helper {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
}

.hs-error-msg {
  font-size: var(--fs-caption);
  color: var(--error);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.hs-divider {
  border: none;
  border-top: 1px solid var(--border-default);
  margin-block: var(--space-8);
}

.hs-divider-brand {
  border-top: 2px solid var(--brand-orange);
  width: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.hs-footer {
  background-color: var(--surface-dark);
  color: var(--text-inverse);
  padding-block: var(--space-16) var(--space-8);
}

.hs-footer__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hs-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--space-8);
}

.hs-footer__brand p {
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
  max-width: 320px;
}

.hs-footer__nav-title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
}

.hs-footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hs-footer__nav-link {
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-base) var(--ease-default);
}
.hs-footer__nav-link:hover { color: var(--brand-orange); }

.hs-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hs-footer__copy {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .hs-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   UTILITY — Spacing helpers
   ============================================================ */
.hs-section { padding-block: var(--space-20); }
.hs-section-lg { padding-block: var(--space-24); }
.hs-section-sm { padding-block: var(--space-12); }

.hs-text-center { text-align: center; }
.hs-text-orange { color: var(--brand-orange); }
.hs-text-green  { color: var(--brand-green); }

/* Grid helpers */
.hs-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.hs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.hs-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 1024px) {
  .hs-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hs-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hs-grid-4,
  .hs-grid-3,
  .hs-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   ALERT / NOTICE
   ============================================================ */
.hs-alert {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
}
.hs-alert__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.hs-alert__title { font-weight: var(--fw-semibold); margin-bottom: var(--space-1); }
.hs-alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--text-success); }
.hs-alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: #7A4400; }
.hs-alert-error   { background: var(--error-bg);   border-color: var(--error-border);   color: var(--text-error); }
.hs-alert-info    { background: var(--info-bg);     border-color: var(--info-border);     color: var(--info); }
.hs-alert-brand   { background: var(--orange-50);   border-color: var(--orange-200);      color: var(--orange-700); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.hs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
}
.hs-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
}
.hs-breadcrumb__item::after {
  content: "›";
  color: var(--neutral-300);
  font-size: var(--fs-body);
}
.hs-breadcrumb__item:last-child { color: var(--text-primary); font-weight: var(--fw-medium); }
.hs-breadcrumb__item:last-child::after { display: none; }
.hs-breadcrumb__link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default);
}
.hs-breadcrumb__link:hover { color: var(--brand-orange); }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.hs-accordion { display: flex; flex-direction: column; gap: 0; }

.hs-accordion-item {
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-card);
}
.hs-accordion-item:first-child { border-top: 1px solid var(--border-default); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.hs-accordion-item:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }

.hs-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--duration-base) var(--ease-default),
              background-color var(--duration-base) var(--ease-default);
}
.hs-accordion-trigger:hover { background: var(--surface-sunken); color: var(--brand-orange); }
.hs-accordion-trigger[aria-expanded="true"] { color: var(--brand-orange); }

.hs-accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--brand-orange);
  transition: transform var(--duration-base) var(--ease-default);
}
.hs-accordion-trigger[aria-expanded="true"] .hs-accordion-icon { transform: rotate(180deg); }

.hs-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-out);
}
.hs-accordion-body.is-open { max-height: 600px; }

.hs-accordion-content {
  padding: 0 var(--space-6) var(--space-6);
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* ============================================================
   TABS
   ============================================================ */
.hs-tabs { display: flex; flex-direction: column; gap: 0; }

.hs-tab-list {
  display: flex;
  border-bottom: 2px solid var(--border-default);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hs-tab-list::-webkit-scrollbar { display: none; }

.hs-tab-trigger {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-6);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-default),
              border-color var(--duration-base) var(--ease-default);
}
.hs-tab-trigger:hover { color: var(--text-primary); }
.hs-tab-trigger[aria-selected="true"] {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
  font-weight: var(--fw-semibold);
}

.hs-tab-panel {
  padding: var(--space-6) 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  display: none;
}
.hs-tab-panel.is-active { display: block; }

/* ============================================================
   TABLE
   ============================================================ */
.hs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.hs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  background: var(--surface-card);
}

.hs-table thead { background: var(--surface-sunken); }
.hs-table th {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}
.hs-table td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: var(--lh-relaxed);
}
.hs-table tbody tr:last-child td { border-bottom: none; }
.hs-table tbody tr:hover { background: var(--surface-sunken); }
.hs-table td.hs-table-highlight {
  color: var(--brand-orange);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.hs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
}

.hs-page-item {}

.hs-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-default);
  cursor: pointer;
}
.hs-page-link:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.hs-page-link.is-active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: white;
  font-weight: var(--fw-semibold);
}
.hs-page-link.is-disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
.hs-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration-base) var(--ease-default);
}
.hs-hamburger:hover { background: var(--neutral-100); }
.hs-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-default),
              opacity var(--duration-base) var(--ease-default);
}
.hs-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hs-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hs-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hs-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  pointer-events: none;
}
.hs-mobile-drawer.is-open { pointer-events: auto; }

.hs-mobile-overlay {
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-default);
}
.hs-mobile-drawer.is-open .hs-mobile-overlay { opacity: 1; }

.hs-mobile-panel {
  position: relative;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--surface-card);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
}
.hs-mobile-drawer.is-open .hs-mobile-panel { transform: translateX(0); }

.hs-mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.hs-mobile-nav { padding: var(--space-4) 0; flex: 1; }

.hs-mobile-nav__item {}
.hs-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--duration-base) var(--ease-default),
              background var(--duration-base) var(--ease-default);
}
.hs-mobile-nav__link:hover { background: var(--surface-sunken); color: var(--brand-orange); }
.hs-mobile-nav__link.is-active { color: var(--brand-orange); font-weight: var(--fw-semibold); }

.hs-mobile-panel__foot {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .hs-hamburger { display: flex; }
  .hs-nav { display: none; }
}

/* ============================================================
   TAG / CHIP (拡張版 badge)
   ============================================================ */
.hs-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--duration-base) var(--ease-default);
  cursor: default;
}
.hs-tag-orange   { background: var(--orange-50);   color: var(--orange-700); border-color: var(--orange-200); }
.hs-tag-navy     { background: var(--navy-50);     color: var(--navy-700);   border-color: var(--navy-200); }
.hs-tag-green    { background: var(--green-50);    color: var(--green-700);  border-color: var(--green-200); }
.hs-tag-neutral  { background: var(--neutral-100); color: var(--neutral-700); border-color: var(--neutral-200); }

.hs-tag-link { cursor: pointer; }
.hs-tag-link:hover { box-shadow: var(--shadow-sm); }
.hs-tag-link.hs-tag-orange:hover  { background: var(--orange-100); }
.hs-tag-link.hs-tag-navy:hover    { background: var(--navy-100); }
.hs-tag-link.hs-tag-green:hover   { background: var(--green-100); }

/* ============================================================
   FEATURE / WHY US カード
   ============================================================ */
.hs-feature {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.hs-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
}

.hs-feature__title {
  font-family: var(--font-jp);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hs-feature__desc {
  font-family: var(--font-jp);
  font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* ============================================================
   PILLARS (理由カード — symbol + title + desc, accent per item)
   Icon-led card grid. Each item carries a brand accent
   (navy / orange / green) on its symbol badge, divider, and index.
   ============================================================ */
.hs-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.hs-pillar {
  position: relative; overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.hs-pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hs-pillar__num {
  position: absolute; top: var(--space-8); right: var(--space-8);
  font-size: 44px; font-weight: var(--fw-extrabold); line-height: 0.8;
  letter-spacing: -0.03em; user-select: none; pointer-events: none;
}
.hs-pillar__symbol {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.hs-pillar__symbol svg { width: 30px; height: 30px; }
.hs-pillar__title {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: var(--fs-h4); color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
.hs-pillar__divider { width: 32px; height: 3px; border-radius: 99px; margin-bottom: var(--space-4); }
.hs-pillar__desc {
  font-family: var(--font-jp); font-size: var(--fs-body-jp);
  line-height: var(--lh-relaxed); color: var(--text-secondary); margin: 0;
}
/* accent variants */
.hs-pillar--navy   .hs-pillar__symbol  { background: linear-gradient(135deg, var(--navy-600), var(--navy-400)); }
.hs-pillar--navy   .hs-pillar__divider { background: var(--brand-navy); }
.hs-pillar--navy   .hs-pillar__num     { color: var(--navy-50); }
.hs-pillar--navy:hover                  { border-color: var(--navy-200); }
.hs-pillar--orange .hs-pillar__symbol  { background: linear-gradient(135deg, var(--brand-orange-deep), var(--brand-orange-gold)); }
.hs-pillar--orange .hs-pillar__divider { background: var(--brand-orange); }
.hs-pillar--orange .hs-pillar__num     { color: var(--orange-50); }
.hs-pillar--orange:hover                { border-color: var(--orange-200); }
.hs-pillar--green  .hs-pillar__symbol  { background: linear-gradient(135deg, var(--green-600), var(--green-400)); }
.hs-pillar--green  .hs-pillar__divider { background: var(--brand-green); }
.hs-pillar--green  .hs-pillar__num     { color: var(--green-50); }
.hs-pillar--green:hover                 { border-color: var(--green-200); }

@media (max-width: 768px) {
  .hs-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUST / PARTNER STRIP
   ============================================================ */
.hs-trust-strip {
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--space-8);
}

.hs-trust-strip__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.hs-trust-strip__label {
  font-family: var(--font-jp);
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.hs-trust-strip__logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hs-trust-strip__logo {
  opacity: 0.55;
  transition: opacity var(--duration-base) var(--ease-default);
  filter: grayscale(1);
}
.hs-trust-strip__logo:hover { opacity: 0.9; filter: none; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 1024px) {
  .hs-hide-md { display: none !important; }
}
@media (max-width: 640px) {
  .hs-hide-sm { display: none !important; }
  .hs-section { padding-block: var(--space-12); }
  .hs-section-lg { padding-block: var(--space-16); }
  .hs-hero__title { font-size: var(--fs-h2); }
  .hs-cta-banner__title { font-size: var(--fs-h3); }
  .hs-stat__number { font-size: var(--fs-h1); }
}

/* ============================================================
   PAGE HERO (下層ページ用ヘッダー — navy banner)
   ============================================================ */
.hs-page-hero {
  color: #fff; padding: var(--space-16) 0;
  /* 案① — ネイビーグラデーション（navy-700 → navy-500 → navy-400） */
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 60%, var(--navy-400) 130%);
}
.hs-page-hero__inner { max-width: var(--container-xl); margin: 0 auto; padding: 0 var(--space-6); }
.hs-page-hero__eyebrow {
  font-size: var(--fs-body-sm); font-weight: var(--fw-bold); color: var(--brand-orange-gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-3);
}
.hs-page-hero__title { font-size: var(--fs-display); font-weight: var(--fw-extrabold); margin: 0; line-height: 1.25; }
/* 案① — ロゴグラデーションの下線アクセント（ゴールド→ディープオレンジ）。
   ::after なので各ページのマークアップ変更は不要。 */
.hs-page-hero__title::after {
  content: ""; display: block;
  width: 64px; height: 5px; border-radius: 99px; margin-top: var(--space-5);
  background: linear-gradient(90deg, var(--brand-orange-gold), var(--brand-orange-deep));
}
.hs-page-hero__lead { font-size: var(--fs-title); color: rgba(255,255,255,0.85); margin-top: var(--space-4); line-height: 1.8; }
.hs-page-hero__breadcrumb { font-size: var(--fs-body-sm); color: rgba(255,255,255,0.6); margin-bottom: var(--space-3); }
.hs-page-hero__breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.hs-page-hero__breadcrumb a:hover { color: #fff; }

@media (max-width: 768px) {
  .hs-page-hero { padding: var(--space-12) 0; }
  .hs-page-hero__title { font-size: var(--fs-h1); }
}

/* ============================================================
   ARTICLE / PROSE (記事本文 — long-form typography)
   ============================================================ */
.hs-article { max-width: 760px; margin: 0 auto; padding: 0 var(--space-6); }
.hs-article h2 {
  font-size: var(--fs-h2); font-weight: var(--fw-bold); margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-2); border-bottom: 2px solid var(--orange-100);
}
.hs-article h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin: var(--space-8) 0 var(--space-3); }
.hs-article h4 { font-size: var(--fs-title); font-weight: var(--fw-bold); margin: var(--space-6) 0 var(--space-2); }
.hs-article p { font-size: var(--fs-body); line-height: 1.9; color: var(--text-secondary); margin: 0 0 var(--space-4); }
.hs-article img { width: 100%; height: auto; border-radius: var(--radius-lg); margin: var(--space-6) 0; }
.hs-article ul, .hs-article ol { padding-left: 1.5em; line-height: 1.9; color: var(--text-secondary); }
.hs-article a { color: var(--brand-orange); }

/* ============================================================
   BASE LAYER — global defaults + accessibility (JP B2B standards)
   Readable JP rhythm · WCAG AA focus · reduced-motion
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);     /* 1.7 — JP body readability (Digital Agency 160–175%) */
  letter-spacing: var(--ls-body);     /* 0.02em — CJK tracking */
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
p { line-height: var(--lh-relaxed); }

/* Keyboard focus — visible (WCAG AA). Mouse clicks stay clean. */
:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* Skip-to-content link (a11y) */
.hs-skip-link {
  position: absolute; left: var(--space-4); top: -120px;
  z-index: var(--z-tooltip);
  background: var(--brand-navy); color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold); text-decoration: none;
  transition: top var(--duration-base) var(--ease-out);
}
.hs-skip-link:focus { top: var(--space-4); }

::selection { background: var(--orange-100); color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
