/* =========================================================
   REGRIS Inc. — corporate site
   Design: dark, spacious, Apple-like. Light sections alternate.
   ========================================================= */

:root {
  /* Brand — read off the ReGRiS mark: two rings running crimson through
     violet to blue, violet being where they overlap. */
  --brand-red: #c0272d;
  --brand-violet: #5e2d8e;
  --brand-blue: #2a4b9c;

  /* The same hues lifted for dark grounds, where the mark's own values sit
     too close to the background to stay legible. */
  --accent: #8a52e0;
  --accent-hi: #9d6cec;
  --accent-red: #e8455c;
  --accent-blue: #3f7bf0;
  --accent-on-light: #6a2fbe;
  --accent-rgb: 138, 82, 224;

  --grad: linear-gradient(100deg, var(--accent-red) 0%, var(--accent) 52%, var(--accent-blue) 100%);

  /* Neutrals carry a trace of the brand violet rather than being flat grey. */
  --bg: #06050a;
  --bg-elev: #0d0b13;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f2f7;
  --text-dim: #a39daf;
  --light-bg: #f6f5f8;
  --light-text: #191622;
  --light-dim: #6b6577;
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 56px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro JP", "SF Pro Display", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(var(--accent-rgb), 0.35); }

/* The header is fixed, so anything scrolled to (an anchor target, a focused
   field, a validation error) needs clearance or it lands underneath it. */
[id], a, button, input, select, textarea, summary {
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

/* --- focus ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- layout ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light .lead, .section--light .muted { color: var(--light-dim); }
.section--light .link-arrow { color: var(--accent-on-light); }
.section--tint { background: var(--bg-elev); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  /* Not uppercased: the brand is set "ReGRiS", and forcing caps would
     flatten that wherever the name appears in an eyebrow. */
  letter-spacing: 0.13em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

.h-hero { font-size: clamp(2.5rem, 7.5vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
.h-sec  { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.h-card { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-dim); margin: 18px 0 0; }
.muted { color: var(--text-dim); }
.mt-0 { margin-top: 0; }

/* --- buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35); }
.btn--primary:hover { background: var(--accent-hi); box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.48); }

.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-hi); border-color: rgba(255, 255, 255, 0.28); }

.section--light .btn--ghost { border-color: rgba(0, 0, 0, 0.16); color: var(--light-text); background: rgba(0, 0, 0, 0.03); }
.section--light .btn--ghost:hover { background: rgba(0, 0, 0, 0.06); }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 15px;
}
.link-arrow::after { content: "›"; transition: transform 0.25s var(--ease); font-size: 1.25em; line-height: 1; }
.link-arrow:hover::after { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row--center { justify-content: center; }

/* --- header ----------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.82); border-bottom-color: var(--line); }

.nav {
  height: var(--nav-h); max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: 0.03em; color: var(--text);
}
.brand__mark { width: 33px; height: 23px; flex: none; overflow: visible; }
/* An uploaded logo sets its own proportions. Fixing the height suits a wide
   wordmark and ruins a stacked one — the name under the mark shrinks to a
   few illegible pixels — so both limits are given and the logo's own shape
   decides which one binds. */
/* A definite height with the width left to follow, so a small file is shown
   at the size the design needs rather than the size it happens to be, and a
   picture with no intrinsic size of its own still appears. object-fit keeps
   the proportions when the width limit is the one that binds. */
.brand__img {
  display: block; flex: none; object-fit: contain; object-position: left center;
  width: auto; max-width: 200px;
}
.brand__img--s { height: 24px; }
.brand__img--m { height: 30px; }
.brand__img--l { height: 38px; }
.brand--lg { font-size: 22px; gap: 11px; margin-bottom: 14px; }
.brand--lg .brand__mark { width: 40px; height: 28px; }
.brand--lg .brand__img { max-width: 240px; }
.brand--lg .brand__img--s { height: 42px; }
.brand--lg .brand__img--m { height: 58px; }
.brand--lg .brand__img--l { height: 76px; }
.nav-list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: 14px; color: var(--text-dim); position: relative; padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav-list a:hover, .nav-list a.is-current { color: var(--text); }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 40px; height: 40px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-list {
    /* .site-header has a backdrop-filter, so it is the containing block here.
       A nested backdrop-filter renders incorrectly in Chromium (the page shows
       through the panel), so this stays a plain opaque background. */
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    padding: 8px var(--pad) 24px; align-items: stretch;
    display: none;
  }
  .nav-list a { display: block; padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list li:last-child a { border-bottom: 0; }
}

/* --- hero ------------------------------------------------- */
.hero {
  position: relative; min-height: min(92svh, 860px);
  display: flex; align-items: center; padding-block: calc(var(--nav-h) + 80px) 100px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__title { white-space: pre-line; }
.hero__title em {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; font-size: clamp(1.05rem, 1.9vw, 1.3rem); }

/* ambient background */
.aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* violet where the two orbs meet, as on the mark */
  background: radial-gradient(45vw 45vw at 50% 32%, rgba(122, 58, 190, 0.3), transparent 70%);
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.aurora::before {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(198, 36, 58, 0.72), transparent 68%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 52vw; max-width: 640px; max-height: 640px;
  bottom: -22%; right: -10%;
  background: radial-gradient(circle, rgba(52, 92, 210, 0.7), transparent 68%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8%, 12%, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10%, -8%, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } }

.grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 100%);
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.2em; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { opacity: 0.2; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* --- page hero (sub pages) -------------------------------- */
.page-hero {
  position: relative; padding-block: calc(var(--nav-h) + 90px) 70px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { position: relative; z-index: 2; }

/* お知らせの記事だけは、帯の中に見出しを持ちません。日付と題名は記事の
   一部なので、帯は色を差すところまでを受け持ちます。

   中身のない帯は「そこで終わり」に見えないので、間をあけないと、記事の
   日付が帯の続きのように読めます。下に続く節に自前の余白を取らせて、
   ほかのページと同じだけ離します。 */
.page-hero--bare { padding-block: calc(var(--nav-h) + 70px) 40px; border-bottom: 0; }

/* --- stats ------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 30px 22px; text-align: center; }
.stat__value {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- cards ------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.15), transparent 42%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.25); background: var(--surface-hi); }
.card:hover::before { opacity: 1; }
.card__body { color: var(--text-dim); font-size: 15px; margin: 12px 0 0; }

.section--light .card { background: #fff; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.section--light .card:hover { border-color: rgba(0, 0, 0, 0.16); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1); }
.section--light .card__body { color: var(--light-dim); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 20px; color: #fff;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32);
}
.icon-badge svg { width: 22px; height: 22px; }

/* --- service list ----------------------------------------- */
.service-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 30px;
  padding-block: 46px; border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.section--light .service-item:first-child { border-top: 0; }
.service-item__no {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: #8b8496; padding-top: 6px;
}
.service-item__body { color: var(--light-dim); margin: 14px 0 0; max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.tags li {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12); color: var(--light-dim);
}
@media (max-width: 700px) { .service-item { grid-template-columns: 1fr; gap: 8px; } }

/* --- works ------------------------------------------------ */
.work__image {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 14px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.06);
}
.work__cat {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 10px;
}
.section--light .work__cat { color: var(--accent-on-light); }
.section--light .card .tags li { border-color: rgba(0, 0, 0, 0.12); }

/* --- news ------------------------------------------------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 120px 130px 1fr auto; gap: 20px; align-items: center;
  padding: 26px 6px; transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.news-item:hover { background: var(--surface); padding-inline: 16px; }
.news-item__date { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.news-item__cat {
  font-size: 11px; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); justify-self: start; white-space: nowrap;
}
.news-item__title { font-size: 16px; font-weight: 500; }
.news-item__arrow { color: var(--text-dim); transition: transform 0.3s var(--ease); }
.news-item:hover .news-item__arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; padding-block: 20px; }
  .news-item__arrow { display: none; }
  .news-item__meta { display: flex; align-items: center; gap: 12px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  font-size: 13px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  font-family: inherit; transition: all 0.25s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.filter-btn.is-active { background: var(--text); color: #000; border-color: var(--text); }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager button {
  min-width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim); transition: all 0.25s var(--ease);
}
.pager button:hover:not([disabled]) { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.pager button.is-active { background: var(--text); color: #000; border-color: var(--text); }
.pager button[disabled] { opacity: 0.3; cursor: default; }

/* --- article ---------------------------------------------- */
.article__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.article__body { font-size: 16.5px; line-height: 2.1; color: #d5d1dc; }
.article__body p { margin: 0 0 1.6em; }
.article__body h2 { font-size: 1.5rem; margin: 2em 0 0.8em; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- legal（個人情報の取り扱いなど） ----------------------- */
/* 読み飛ばされる文書ほど、読める形にしておく価値がある。番号を振り、
   一項目ずつ間を空けて、どこを読んでいるか見失わないようにする。 */
.legal__item { padding-bottom: 38px; }
.legal__item + .legal__item { padding-top: 38px; border-top: 1px solid var(--line); }
.legal__title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 1.12rem; line-height: 1.6; margin: 0 0 18px;
}
.legal__no {
  flex: none; width: 27px; height: 27px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(138, 82, 224, 0.45); background: rgba(138, 82, 224, 0.1);
  transform: translateY(-1px);
}
.legal p { font-size: 15.5px; line-height: 2.05; color: #cec9d6; margin: 0 0 1.3em; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__list { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.legal__list li {
  position: relative; padding-left: 20px; margin-bottom: 0.7em;
  font-size: 15px; line-height: 1.95; color: #cec9d6;
}
.legal__list li::before {
  content: ''; position: absolute; left: 2px; top: 0.82em;
  width: 6px; height: 6px; border-radius: 50%; background: rgba(138, 82, 224, 0.75);
}
@media (max-width: 640px) {
  .legal__title { font-size: 1.05rem; gap: 11px; }
  .legal__item { padding-bottom: 30px; }
  .legal__item + .legal__item { padding-top: 30px; }
}

/* --- table ------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table th { width: 190px; font-weight: 600; color: var(--text-dim); }
.section--light .table th, .section--light .table td { border-bottom-color: rgba(0, 0, 0, 0.1); }
.section--light .table th { color: var(--light-dim); }
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; padding-bottom: 4px; }
  .table td { padding-top: 0; }
}

/* --- sheet: 会社情報のような「読みたい人が開く」内容 --------
   ページに敷き詰めると、ほとんどの人が素通りする表がミッションや
   メッセージと同じ重さで居座ります。開く操作を1つ挟むと、探しに来た
   人にはちゃんと届いて、それ以外の人の邪魔をしません。 */
.sheet {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: sheet-fade 0.24s ease both;
}
.sheet__panel {
  position: relative; z-index: 1;
  width: min(640px, 100%); max-height: min(78vh, 720px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: sheet-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--line);
}
.sheet__title { margin: 0; font-size: 19px; letter-spacing: 0.02em; }
.sheet__close {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--text-dim);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sheet__close:hover { color: var(--text); background: var(--surface-hi); border-color: rgba(255, 255, 255, 0.28); }
/* 中身が長ければここだけが動く。背景のページは動かさない。 */
.sheet__body { overflow-y: auto; padding: 4px 26px 26px; -webkit-overflow-scrolling: touch; }
.sheet__body .table th { width: 150px; }
.sheet__body .table tr:last-child th,
.sheet__body .table tr:last-child td { border-bottom: 0; }

/* シートを開いているあいだ、後ろのページは固定する。
   スクロールが背面に抜けると、閉じたときに別の場所にいます。 */
body.is-sheet-open { overflow: hidden; }

@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* 動きを減らす設定にしている人には、出入りの演出をしない。 */
@media (prefers-reduced-motion: reduce) {
  .sheet__backdrop, .sheet__panel { animation: none; }
}

@media (max-width: 640px) {
  .sheet { padding: 0; align-items: flex-end; }
  .sheet__panel {
    width: 100%; max-height: 86vh;
    border-radius: 18px 18px 0 0; border-bottom: 0;
  }
  .sheet__head { padding: 18px 20px 14px; }
  .sheet__body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* --- cta -------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__inner { position: relative; z-index: 2; }

/* --- forms ------------------------------------------------ */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.req { font-size: 10px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 600; }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent); background: rgba(var(--accent-rgb), 0.07);
}
.textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1a6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px;
}
.select option { background: #17151d; color: var(--text); }
.field__error { font-size: 13px; color: #ff6b6b; display: none; }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: #ff6b6b; }
.field.is-invalid .field__error { display: block; }
.form-note { font-size: 13px; color: var(--text-dim); }

.alert { padding: 16px 20px; border-radius: 12px; font-size: 14.5px; display: none; }
.alert--ok { background: rgba(52, 199, 89, 0.12); border: 1px solid rgba(52, 199, 89, 0.4); color: #6ee7a0; }
.alert--ng { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ff9b9b; }
.alert.is-shown { display: block; }

/* --- footer ----------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-grid--2 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-title { font-size: 12px; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-dim);
}

/* --- scroll reveal ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- utils ------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The opposite of .sr-only: hidden from everyone, including screen readers.
   .sr-only would have read this decoy field aloud, and a person who filled
   it in would have had their message silently discarded. */
.honeypot {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: #fff; transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.empty { padding: 60px 0; text-align: center; color: var(--text-dim); }
