/* Heliks Data 全ページ共通の枠（site-c-frame.css）
   ・色・文字の設定（:root）、丸いボタン、ヘッダー、フッターだけをまとめる
   ・全ページが最初に読み込む。C案のページ（トップ・Lab・代表プロフィール・お問い合わせ・プライバシーポリシー）は続けて site-c.css を、
     PSEツールのページは product.css を読み込む
   ・ページ固有のCSSが body の書体・字間や a の色を指定していても、ヘッダーとフッターの見た目が全ページで同じになるようにしている */

:root {
  --paper: #ffffff;
  --tint: #f5f6fc;
  --ink: #14161c;
  --sub: #5a6070;
  --line: #e3e6ee;
  --blue: #2448ff;
  --violet: #6b5cff;
  --cyan: #22c6e8;
  --dark: #23262e;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 45%, var(--cyan) 100%);
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --en: "Avenir Next", "Helvetica Neue", Arial, var(--ja);
  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* 粒子感（SVGのノイズ） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hc-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- 丸いボタン ---------- */

.hc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s;
}

.hc-pill__icon {
  font-size: 20px;
  line-height: 1;
  transition: transform .35s var(--ease);
}

.hc-pill:hover .hc-pill__icon {
  transform: translateX(4px);
}

.hc-pill--solid {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgb(36 72 255 / .25);
}

.hc-pill--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(36 72 255 / .32);
}

.hc-pill--line {
  border-color: var(--blue);
  background: #fff;
  color: var(--blue);
}

.hc-pill--line:hover {
  background: var(--blue);
  color: #fff;
}

.hc-pill--white {
  background: #fff;
  color: var(--blue);
}

.hc-pill--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(10 20 80 / .25);
}

.hc-pill--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
  box-shadow: none;
}

.hc-pill--large {
  min-height: 64px;
  padding: 0 40px;
  font-size: 17px;
}

.hc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hc-actions--center {
  justify-content: center;
}

/* ---------- ヘッダー ---------- */

.hc-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* 本文の文字色が違うページ（代表プロフィール）でも、ヘッダーの文字は同じ色にする */
  color: var(--ink);
  transition: background-color .4s, box-shadow .4s;
}

.hc-header.is-scrolled {
  background: rgb(255 255 255 / .9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.hc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.hc-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hc-brand img {
  width: 26px;
}

.hc-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.hc-nav > a:not(.hc-pill):hover {
  color: var(--blue);
}

.hc-menu {
  display: none;
}

.hc-footer {
  background: var(--dark);
  color: #fff;
}

.hc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 13px;
}

.hc-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.hc-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hc-footer small {
  color: #a9adb8;
}

/* 下層ページには背景のヒーローがないため、ヘッダーは最初から白い面にして、ページの流れに置く */
.hc-header--solid {
  position: sticky;
  top: 0;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.hc-nav > a[aria-current="page"]:not(.hc-pill) {
  color: var(--blue);
}

/* ---------- タブレット ---------- */

@media (max-width: 960px) {
  .hc-menu {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: 700 14px var(--ja);
  }

  .hc-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    background: #fff;
    box-shadow: 0 16px 30px rgb(20 30 80 / .12);
  }

  .hc-nav.is-open {
    display: flex;
  }

  .hc-nav > a:not(.hc-pill) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hc-nav .hc-pill {
    margin-top: 16px;
  }
}

/* ---------- ページ固有のCSSの影響を受けないようにする ---------- */

/* 書体・行の高さ・字間はヘッダーとフッターの中で決める（PSEページは本文の書体が違うため） */
.hc-header,
.hc-footer {
  font-family: var(--ja);
  line-height: 1.9;
  letter-spacing: .03em;
}

/* ページ固有のCSSが a に色・下線を付けていても、ヘッダーとフッターのリンクは周りの文字色・下線なしにする */
.hc-header a,
.hc-footer a {
  text-decoration: none;
}

.hc-header a:not(.hc-pill),
.hc-footer a,
.hc-footer a:hover {
  color: inherit;
}

/* 青いボタンの文字は、マウスを乗せても白のままにする（a:hover に色を付けるページがあるため） */
.hc-pill--solid,
.hc-pill--solid:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hc-pill {
    transition: none;
  }
}
