@charset "UTF-8";
/* =========================================================
   Groova株式会社 — 共通スタイル（index.html / privacy.html / 404.html）
   外部の読み込みなし。書体は端末の書体。
   ========================================================= */

:root {
  /* ===== ロゴの切り替え（この1行）=====
     ヘッダーとフッターのロゴは、ここで指定したファイルで決まる。
       A案 → images/logo-a.svg
       B案 → images/logo-b.svg
       C案 → images/logo-c.svg
     ※ファビコンは index.html・privacy.html・404.html の <link rel="icon">（いまは images/mark-a.svg と、そこから作った favicon.ico・images/apple-touch-icon.png）
     ※3案とも縦横の比は同じ（721 × 114）なので、大きさの指定は変えなくてよい */
  --logo: url("images/logo-a.svg");

  /* ===== 色 ===== */
  --blue-logo: #1980C3;   /* ロゴの青。ロゴ・印・飾り・大きな見出しに */
  --blue: #156EA7;        /* 白い字を載せる面・ボタン・小さな青い字（白との比 5.5、薄い地との比 5.0） */
  --blue-deep: #115988;   /* ボタンを指したとき・青い帯の上の飾り */
  --pale: #F2F5F8;        /* 薄い地（青みのごく薄い灰） */
  --white: #FFFFFF;
  --ink: #1C1A19;         /* 文字（墨） */
  --ink-soft: rgba(28, 26, 25, .74);
  --line: rgba(28, 26, 25, .34);
  --line-white: rgba(255, 255, 255, .72);

  /* ===== 書体 ===== */
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ja: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;

  /* ===== 寸法 ===== */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 72px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
}

/* ---------------------------------------------------------
   土台
   --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;          /* Windows の游ゴシックが細く見えるのを防ぐ */
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-wrap: break-word;
  line-break: strict;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-logo);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.section--blue :focus-visible { outline-color: var(--white); }

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }
.ib { display: inline-block; }

/* 見出しや短い文は、日本語を文節で折り返す（対応していない端末ではふつうの折り返し） */
.sec-lead,
.sec-head__ja,
.biz__title,
.biz__text,
.biz__list li,
.doc-sec h2,
.doc-sec h3 { word-break: auto-phrase; }
.en { font-family: var(--font-en); }

.skip {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.container {
  position: relative;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------
   ヘッダー（白・固定）
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid rgba(28, 26, 25, .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: block;
  flex: none;
  text-decoration: none;
}

/* ロゴは --logo の画像。比 721:114 */
.brand__logo {
  display: block;
  width: 190px;
  height: 30px;
  background: var(--logo) left center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav__list {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 6px 0;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: color .25s, background-size .3s var(--ease);
}
.site-nav__list a:hover {
  color: var(--blue);
  background-size: 100% 2px;
}

@media (max-width: 859px) {
  .site-nav__list { display: none; }
}

@media (max-width: 767px) {
  .brand__logo { width: 152px; height: 24px; }
}

/* ---------------------------------------------------------
   ボタン（塗り・矢印つき）
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .82em 1.35em .82em 1.5em;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s;
}
.btn:hover { background: var(--blue-deep); }

.btn__arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

@media (max-width: 767px) {
  .btn { font-size: 14px; padding: .78em 1.15em .78em 1.3em; }
}

/* ---------------------------------------------------------
   区切り（面の色）と見出し
   --------------------------------------------------------- */
.section {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 168px) 0;
}
.section--blue { background: var(--blue); color: var(--white); }
.section--pale { background: var(--pale); }

.sec-head {
  margin: 0 0 clamp(40px, 6vw, 80px);
  font-weight: 700;
}

.sec-head__en {
  display: block;
  margin-left: -.04em;
  font-family: var(--font-en);
  font-size: clamp(52px, 11vw, 144px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
}

.sec-head__ja {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 26px);
  font-size: 15px;
  letter-spacing: .16em;
  line-height: 1.5;
}
.sec-head__ja::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-logo);
}
.section--blue .sec-head__ja::before { background: var(--white); }

.sec-lead {
  max-width: 34em;
  margin: calc(clamp(40px, 6vw, 80px) * -0.5) 0 clamp(36px, 5vw, 56px);
  color: var(--ink-soft);
}
.section--blue .sec-lead { color: var(--white); }

/* ---------------------------------------------------------
   カード：細い点線の枠・大きい角丸・角に小さい白丸
   --------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--pale);
}
.card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
}
.section--pale .card { background: var(--white); }

/* 青い帯の上：白の点線・塗りなし・角に白丸 */
.section--blue .card {
  border-color: var(--line-white);
  background: transparent;
}
.section--blue .card::after { border-color: var(--white); }

/* 青い帯の飾り：右上にはみ出す濃い青の円と、白の点線の輪 */
.band-deco {
  position: absolute;
  top: clamp(-260px, -16vw, -120px);
  right: clamp(-260px, -14vw, -100px);
  width: clamp(320px, 46vw, 680px);
  pointer-events: none;
}
.band-deco::before { content: ""; display: block; padding-top: 100%; }
.band-deco__sun,
.band-deco__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.band-deco__sun { background: var(--blue-deep); }
.band-deco__ring {
  border: 1.5px dashed rgba(255, 255, 255, .4);
  transform: translate(-12%, 12%);
}

/* ---------------------------------------------------------
   ヒーロー
   どの画面でも最初の1画面（ヘッダーの下〜画面の下）にぴったり収める。
   中の大きさは「幅に合わせた大きさ」と「高さに合わせた大きさ（--hero-a の何割）」の小さいほう。
   横長で背の低い画面では高さが、縦長の画面では幅が効く。
   高さに合わせた割合（--hero-a に対して）：上の余白 5%・縦書きの字 4%・社名の上 2.8%・下の余白 4%、
     円 40%（900px 未満は 36%）・大きな Groova の幅 160%（900px 未満は 110%）。
     どれかを大きくすると、背の低い画面で下が切れることがある（全部を足して 1画面に収まるよう決めてある）
   480px より背の低い画面（スマホの横向きなど）は 480px として組み、はみ出す分はスクロール（字を小さくしすぎない）
   --------------------------------------------------------- */
.hero {
  --hero-vh: 100vh;                                                  /* 画面の高さ（古いブラウザ向けの予備） */
  --hero-a: calc(max(480px, var(--hero-vh)) - var(--header-h));      /* ヘッダーの下に見える高さ */
  --hero-pt: min(clamp(28px, 5vw, 64px), max(16px, calc(var(--hero-a) * .05)));   /* ヘッダーの下の余白 */
  --hero-pb: clamp(16px, calc(var(--hero-a) * .04), 32px);                         /* 社名の下の余白 */
  position: relative;
  display: flex;
  min-height: max(480px, var(--hero-vh));
  padding: calc(var(--header-h) + var(--hero-pt)) 0 var(--hero-pb);
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero { --hero-vh: 100svh; }      /* スマホはアドレスバーが出ているときの高さ */
}

/* 背景の面（薄い地の多角形）
   マウスに合わせて少しずらす（script.js）ので、端が見えないよう四方に 12px 大きく取る */
.hero__plane {
  position: absolute;
  inset: -12px;
  z-index: 0;
  background: var(--pale);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 34% 100%);
  pointer-events: none;
}
.hero__plane--2 {
  clip-path: polygon(100% 0, 100% 46%, 82% 0);
  background: var(--white);
  opacity: .9;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto auto;
  grid-template-areas:
    "visual  copy"
    "formula formula"
    "word    word"
    "name    name";
  align-items: end;
  column-gap: 16px;
  row-gap: 0;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 円（ロゴの青）・ずれた点線の輪・輪の上を回る小さい丸
   輪は円から右下へ（円の幅の 13%・10%）ずらして置く。
   小さい丸は輪の上を回るので、箱から右へ最大で幅の 20%、下へ 17% はみ出す。
   下の余白はその分（＋白いすき間と少しの間）を見込んで取る。
   --hero-sun が円の直径（幅・高さ・上限 340px の小さいほう） */
.hero__visual {
  --hero-sun: min(54vw, 340px, calc(var(--hero-a) * .36));
  grid-area: visual;
  position: relative;
  z-index: 0;
  align-self: center;
  justify-self: start;
  width: min(var(--hero-sun), 100%);
  margin: 0 0 max(clamp(28px, 6vw, 56px), calc(var(--hero-sun) * .17 + 14px)) 2vw;
}
.hero__visual::before {           /* 正方形を保つ */
  content: "";
  display: block;
  padding-top: 100%;
}
/* .hero__sun と .hero__ring は privacy.html の飾りでも使う（ここの指定はそのまま） */
.hero__sun,
.hero__ring,
.hero__moon {
  position: absolute;
  border-radius: 50%;
}
.hero__sun {
  inset: 0;
  background: var(--blue-logo);
}
.hero__ring {
  inset: 0;
  border: 1.5px dashed var(--line);
  transform: translate(13%, 10%);
}

/* トップの円まわり：重ねる順は 輪 → 大きな円 → 小さい丸 */
.hero__drift,                     /* スクロールで少し遅れる */
.hero__float,                     /* マウスに合わせてずれる（script.js） */
.hero__orbit,                     /* 輪の位置 */
.hero__orbit-ring,
.hero__orbit-track {              /* 小さい丸を回す台 */
  position: absolute;
  inset: 0;
}
.hero__orbit { transform: translate(13%, 10%); }
.hero__orbit-ring {
  border: 1.5px dashed var(--line);
  border-radius: 50%;
}
.hero__orbit-track { transform: rotate(30deg); }   /* 止まっているときの小さい丸の位置（輪の右上） */
.hero__moon {
  top: -7%;
  left: 43%;
  width: 14%;
  height: 14%;
  background: var(--blue-logo);
  box-shadow: 0 0 0 3px var(--white);              /* 大きな円の前を通るときの白いすき間 */
}

/* 縦書きの一言 */
.hero__copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: end;
  margin: 0;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  font-size: min(clamp(22px, 2.5vw, 34px), calc(var(--hero-a) * .04));   /* 9文字で高さは字の 11.7 倍 */
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1.2;
  white-space: nowrap;
}

/* 巨大な字（ロゴの字の SVG。高さは幅の 18%）
   ふだんは横幅いっぱい。背の低い画面では高さに合わせて幅を詰め、左に寄せる */
.hero__word {
  grid-area: word;
  position: relative;
  z-index: 1;
  display: block;
  justify-self: start;
  width: min(100%, calc(var(--hero-a) * 1.1));
  height: auto;
  color: var(--blue-logo);
}
.hero__word svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 社名（小さく静かに。英語表記は下の会社概要とフッターにある） */
.hero__name {
  grid-area: name;
  position: relative;
  z-index: 1;
  margin-top: min(clamp(14px, 2vw, 24px), max(10px, calc(var(--hero-a) * .028)));
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
}

/* 社名の成り立ち（式）：Groove + Nova = Groova
   語の下に小さな注記。語と注記は1組の箱なので、折り返しても離れない。
   幅が足りないときは「= Groova」の前で2段に折り返す */
.hero__formula {
  grid-area: formula;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .45em;
  row-gap: 14px;
  margin-bottom: min(clamp(16px, 2.4vw, 28px), max(12px, calc(var(--hero-a) * .03)));
  font-family: var(--font-en);
  font-size: min(clamp(20px, 1.9vw, 26px), max(18px, calc(var(--hero-a) * .042)));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}
.formula__group {
  display: flex;
  align-items: baseline;
  gap: .45em;
}
.formula__term {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.formula__word { white-space: nowrap; }
.formula__op {
  color: var(--blue-logo);
  font-weight: 400;
}
.formula__note {
  margin-top: 7px;
  color: var(--ink-soft);
  font-family: var(--font-ja);
  font-size: clamp(11px, .95vw, 12px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.4;
  white-space: nowrap;
}
.formula__note--answer {          /* 式の答え：ほんの少し強く */
  color: var(--blue);
  font-weight: 700;
}

@media (min-width: 900px) {
  .hero__plane { clip-path: polygon(56% 0, 100% 0, 100% 100%, 40% 100%); }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto auto;
    grid-template-areas:
      "formula visual copy"
      "word    word   word"
      "name    name   name";
    column-gap: clamp(24px, 3vw, 48px);
  }

  /* 説明文を置かない分、左上は式だけ。大きな Groova の真上に寄せる */
  .hero__formula { align-self: end; }

  .hero__visual {
    --hero-sun: min(clamp(240px, 25vw, 360px), calc(var(--hero-a) * .4));
    justify-self: center;
    width: var(--hero-sun);
    margin: 0 0 max(clamp(32px, 4vw, 56px), calc(var(--hero-sun) * .17 + 14px));
  }

  .hero__copy { align-self: center; margin-bottom: min(clamp(32px, 4vw, 56px), calc(var(--hero-a) * .04)); }

  .hero__word { width: min(100%, calc(var(--hero-a) * 1.6)); }
}

/* ---------------------------------------------------------
   Business（4つの事業のカード）
   パソコンでは 2×2 の大きめのカード。760px 未満は1列（2列だと箇条の折り返しが増えて読みにくい）。
   カードの中は 番号 → 英語の小見出し → 事業名 → 説明の1行 → 点線 → 主な内容（箇条）
   --------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cards { gap: clamp(24px, 2.4vw, 32px); }
}

.biz {
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .biz { padding: clamp(40px, 4vw, 56px); }
}
.biz__no {
  font-family: var(--font-en);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--blue-logo);
}
.biz__en {
  margin-top: clamp(24px, 2.6vw, 36px);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}
.biz__title {
  margin-top: 4px;
  font-size: clamp(21px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
}
.biz__text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

/* 主な内容：小さめの字で静かに。行頭は小さな丸 */
.biz__list {
  margin-top: clamp(22px, 2.4vw, 30px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1.5px dashed var(--line);
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}
.biz__list li {
  position: relative;
  padding-left: 1.15em;
  text-wrap: pretty;             /* 折り返したとき、2行目が1語だけにならないように */
}
.biz__list li + li { margin-top: 6px; }
.biz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.875em - 2.5px);     /* 1行目の真ん中（行の高さ 1.75 の半分） */
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-logo);
}

/* 青い帯の上では、字・点線・丸を白に */
.section--blue .biz__no,
.section--blue .biz__en,
.section--blue .biz__text { color: var(--white); }
.section--blue .biz__list {
  border-top-color: var(--line-white);
  color: rgba(255, 255, 255, .9);       /* 少しだけ控えめに（青との比 4.7） */
}
.section--blue .biz__list li::before { background: var(--white); }

/* ---------------------------------------------------------
   Company
   --------------------------------------------------------- */
.company-list {
  border-top: 1.5px dashed var(--line);
}
.company-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1.5px dashed var(--line);
}
.company-list dt {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
}
.company-list dd { margin: 0; }
.company-list__sub {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}
.company-list ul { list-style: none; }
.company-list li { position: relative; padding-left: 1.1em; }
.company-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-logo);
}
.company-list a { text-decoration: underline; text-underline-offset: 4px; }
.company-list a:hover { color: var(--blue); }

@media (min-width: 720px) {
  .company-list__row {
    grid-template-columns: 12em minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0;
  }
  .company-list dt { padding-top: .15em; }
}

/* ---------------------------------------------------------
   Contact（メールの大きなカード1枚。カード全体がメールのリンク）
   カードの中は ラベル → 大きなアドレス（青い下線）＋ 矢印の丸。
   パソコン（720px 以上）は 左にラベルとアドレス・右に矢印の丸。
   スマホは ラベル → アドレス → 矢印の丸（右寄せ）の縦並び。
   アドレスは1行に収まる大きさ。収まらない幅では @ の前（<wbr>）で折り返す
   --------------------------------------------------------- */
.contact-mail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "addr  addr"
    ".     go";
  align-items: center;
  gap: 14px 24px;
  padding: clamp(28px, 5vw, 64px);
  color: var(--ink);
  text-decoration: none;
}
.contact-mail:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius);
}

.contact-mail__label {
  grid-area: label;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}
.contact-mail__label .en {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: .14em;
}

.contact-mail__addr {
  grid-area: addr;
  justify-self: start;
  max-width: 100%;
  padding-bottom: .14em;
  font-family: var(--font-en);
  font-size: clamp(26px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;          /* <wbr> で足りないときの最後の手 */
  background: linear-gradient(var(--blue-logo), var(--blue-logo)) left bottom / 100% 3px no-repeat;
  transition: color .25s;
}

.contact-mail__go {
  grid-area: go;
  display: grid;
  place-items: center;
  width: clamp(52px, 7vw, 96px);
  height: clamp(52px, 7vw, 96px);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  transition: background-color .25s;
}
.contact-mail__go svg {
  width: 36%;
  height: 36%;
  transition: transform .3s var(--ease);
}

@media (hover: hover) {           /* スマホで押したあと、色が変わったまま残らないように */
  .contact-mail:hover .contact-mail__addr { color: var(--blue); }
  .contact-mail:hover .contact-mail__go { background: var(--blue-deep); }
  .contact-mail:hover .contact-mail__go svg { transform: translateX(3px); }
}

@media (min-width: 720px) {
  .contact-mail {
    grid-template-areas:
      "label go"
      "addr  go";
    row-gap: 18px;
    column-gap: 40px;
  }
  .contact-mail__go { align-self: end; }
}

/* ---------------------------------------------------------
   フッター（墨の面）
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 32px;
  background: var(--ink);
  color: var(--white);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 860px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

/* フッターのロゴは同じ画像を白に */
.site-footer .brand__logo {
  width: 228px;
  height: 36px;
  filter: brightness(0) invert(1);
}
@media (max-width: 767px) {
  .site-footer .brand__logo { width: 190px; height: 30px; }
}

.site-footer__name {
  margin-top: 28px;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-footer__address {
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.9;
  color: rgba(255, 255, 255, .82);
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 40px;
  list-style: none;
}
.site-footer__nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__nav .en { font-size: 15px; letter-spacing: .02em; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1.5px dashed rgba(255, 255, 255, .3);
  font-size: 13px;
}
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }

.copyright { font-family: var(--font-en); letter-spacing: .04em; }

/* ---------------------------------------------------------
   プライバシーポリシー（privacy.html）
   --------------------------------------------------------- */
.doc-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(48px, 7vw, 96px);
  background: var(--white);
}
.doc-hero__plane {
  position: absolute;
  inset: 0;
  background: var(--pale);
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 52% 100%);
  pointer-events: none;
}
.doc-hero__deco {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: clamp(-80px, -4vw, -24px);
  width: clamp(140px, 22vw, 300px);
  pointer-events: none;
}
.doc-hero__deco::before { content: ""; display: block; padding-top: 100%; }
@media (max-width: 767px) {
  .doc-hero__deco {          /* スマホでは見出しに重ならないよう、右下に小さく */
    top: auto;
    bottom: 12px;
    right: -36px;
    width: 112px;
  }
}
.doc-hero__deco .hero__sun,
.doc-hero__deco .hero__ring { inset: 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: .06em;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 .8em;
  color: var(--blue-logo);
}
.breadcrumb a { color: var(--blue); text-underline-offset: 3px; }

.doc-hero__en {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-en);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
}
.doc-hero__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}
.doc-hero__title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-logo);
}
.doc-hero__date {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.doc {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(88px, 10vw, 140px);
  border-top: 1px solid rgba(28, 26, 25, .08);
}
.doc__body {
  max-width: 46em;
  margin: 0 auto;
}
.doc__body > p,
.doc__intro { margin-bottom: 1.2em; }

.doc-sec {
  padding: clamp(32px, 4vw, 44px) 0;
  border-top: 1.5px dashed var(--line);
}
.doc-sec:last-of-type { border-bottom: 1.5px dashed var(--line); }

.doc-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
}
.doc-sec__no {
  flex: none;
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--blue-logo);
  letter-spacing: .02em;
}
.doc-sec h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}
.doc-sec p + p { margin-top: .8em; }
.doc-sec ul,
.doc-sec ol {
  margin: .6em 0 .6em;
  padding-left: 1.4em;
}
.doc-sec li + li { margin-top: .3em; }
.doc-sec a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-sec a:hover { color: var(--blue-deep); }
.doc-sec .url { overflow-wrap: anywhere; }

.doc-box {
  margin-top: 14px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--pale);
}
.doc-box dl { display: grid; gap: 6px; }
.doc-box__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) {
  .doc-box__row { grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
}
.doc-box dt { font-weight: 700; color: var(--blue); font-size: 14px; padding-top: .15em; }
.doc-box dd { margin: 0; }

.doc__end {
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: right;
}

/* ---------------------------------------------------------
   ページが見つからないとき（404.html）
   見出しまわりはプライバシーポリシーと同じ。下に「トップページへ戻る」のボタン
   --------------------------------------------------------- */
.nf__back { margin-top: clamp(28px, 4vw, 40px); }
.nf__back .btn { font-family: var(--font-ja); letter-spacing: .06em; }

/* ---------------------------------------------------------
   ヒーローの動き
   Groove（リズム）＋ Nova（星のはじまり）。
   <html class="js">（index.html の head で付ける）のときだけ動く。
   JS が無いとき・「視差効果を減らす」設定のときは、最初から完成形。
   動かすのは transform と opacity（輪を描くところだけ mask）。

   開いたときの流れ（秒は開いてからの時刻）
     0.00〜0.80  青い大きな円が、点からふくらむ（少し行き過ぎて戻る）
     0.35〜1.00  点線の輪を、右上から一周描く
     0.90〜1.35  小さい丸が輪の右上に現れ、回り始める
     0.85〜1.79  縦書きの一言が、上から1文字ずつ
     1.05〜2.11  式 Groove → ＋ → Nova → ＝ → Groova → 注記
     1.20〜2.20  大きな Groova が1文字ずつせり上がる、社名
   ずっと続く動き
     大きな円が呼吸（±1.5%・5秒）／小さい丸が輪の上を公転（1周24秒）／
     輪が逆向きに回る（1周96秒）／スクロールで円が少し遅れる（対応ブラウザだけ）
   --------------------------------------------------------- */
@property --ring-draw {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

@keyframes hero-born {            /* 点 → ふくらむ → 少し戻る */
  0%   { opacity: 0; transform: scale(.03); animation-timing-function: cubic-bezier(.25, .8, .35, 1); }
  8%   { opacity: 1; }
  68%  { transform: scale(1.045); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes hero-breathe {
  50% { transform: scale(1.015); }
}
@keyframes hero-draw {
  from { --ring-draw: 0deg; }
  to   { --ring-draw: 360deg; }
}
@keyframes hero-spin-back {
  to { transform: rotate(-360deg); }
}
@keyframes hero-orbit {
  from { transform: rotate(30deg); }
  to   { transform: rotate(390deg); }
}
@keyframes hero-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: none; }
}
@keyframes hero-drop {            /* 縦書きの字：上から */
  from { opacity: 0; transform: translateY(-.5em); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-up {              /* 式・社名：下から */
  from { opacity: 0; transform: translateY(.5em); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-letter {          /* 大きな字：下の線からせり上がる（SVG の単位で 110） */
  from { transform: translateY(110px); }
  to   { transform: none; }
}
@keyframes hero-drift {
  to { transform: translateY(40px); }
}

/* 1. 大きな円（生まれたあと、ゆっくり呼吸） */
.js .hero__sun {
  animation:
    hero-born .8s both,
    hero-breathe 5s ease-in-out .8s infinite;
}

/* 2. 点線の輪（右上から一周描く → ごくゆっくり逆回り） */
.js .hero__orbit-ring {
  -webkit-mask-image: conic-gradient(from 30deg, #000 var(--ring-draw, 360deg), transparent 0deg);
          mask-image: conic-gradient(from 30deg, #000 var(--ring-draw, 360deg), transparent 0deg);
  animation:
    hero-draw .65s cubic-bezier(.5, 0, .3, 1) .35s both,
    hero-spin-back 96s linear 1s infinite;
}

/* 3. 小さい丸（輪の右上に現れ、輪の上を回る） */
.js .hero__moon { animation: hero-pop .45s cubic-bezier(.3, .7, .4, 1) .9s both; }
.js .hero__orbit-track { animation: hero-orbit 24s linear .9s infinite; }

/* 4. 縦書きの一言（1文字ずつ） */
.js .hero__chars > span {
  display: inline-block;
  animation: hero-drop .5s var(--ease) both;
  animation-delay: calc(.85s + var(--i, 0) * .055s);
}

/* 5. 式：Groove → + → Nova → = → Groova → 注記 */
.js .hero__formula .formula__word,
.js .hero__formula .formula__op,
.js .hero__formula .formula__note { animation: hero-up .5s var(--ease) both; }
.js .hero__formula .formula__group:first-child > .formula__term:first-child > .formula__word { animation-delay: 1.05s; }
.js .hero__formula .formula__group:first-child > .formula__op                              { animation-delay: 1.13s; }
.js .hero__formula .formula__group:first-child > .formula__term:last-child > .formula__word  { animation-delay: 1.21s; }
.js .hero__formula .formula__group:last-child > .formula__op                               { animation-delay: 1.29s; }
.js .hero__formula .formula__group:last-child .formula__word                               { animation-delay: 1.37s; }
.js .hero__formula .formula__group:first-child > .formula__term:first-child > .formula__note { animation-delay: 1.47s; }
.js .hero__formula .formula__group:first-child > .formula__term:last-child > .formula__note  { animation-delay: 1.54s; }
.js .hero__formula .formula__group:last-child .formula__note                               { animation-delay: 1.61s; }

/* 6. 大きな字（1文字ずつ、下の線からせり上がる）と社名 */
.js .hero__word { clip-path: inset(-10% -4% -2px -4%); }
.js .hero__letter {
  animation: hero-letter .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(1.2s + var(--i, 0) * .06s);
}
.js .hero__name { animation: hero-up .5s var(--ease) 1.65s both; }

/* スクロールすると、円が少し遅れて上へ流れる（400px で 40px。対応ブラウザだけ） */
@supports (animation-timeline: scroll()) {
  .js .hero__drift {
    animation: hero-drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 400px;
  }
}

/* ヒーローが画面の外にあるあいだは、ずっと続く動きを止める（script.js が付け外し） */
.hero.is-paused .hero__sun,
.hero.is-paused .hero__orbit-ring,
.hero.is-paused .hero__orbit-track { animation-play-state: paused; }

/* マウスに合わせて動かしているあいだだけ（script.js が付け外し） */
.hero.is-parallax .hero__float,
.hero.is-parallax .hero__plane { will-change: transform; }

/* ---------------------------------------------------------
   動き（控えめ）
   --------------------------------------------------------- */
/* script.js が動いたときだけ、スクロールで出す */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js-reveal .cards > .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .cards > .reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .cards > .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero__float,
  .hero__plane { transform: none !important; }
}

@media print {
  .site-header { position: absolute; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .hero *,
  .hero *::before { animation: none !important; }
  .hero__float,
  .hero__plane { transform: none !important; }
}
