@charset "utf-8";
/* GRAVITON G.K. — 共通スタイル
   デザイン原本: design/inbox/reference/*.dc.html
   キャンバス専用の style-hover / style-focus 属性を :hover / :focus に変換して実装 */

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #f6faf8;                    /* oklch 非対応ブラウザ用 */
  background: oklch(0.985 0.006 165);
}
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  color: #383e40;
  color: oklch(0.28 0.01 200);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: oklch(0.5 0.05 190); text-decoration: none; }
a:hover { color: oklch(0.35 0.04 190); }
input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: oklch(0.72 0.01 200); }

/* ---------- アニメーション ---------- */
@keyframes drift1 { 0%{transform:translate3d(-6%,-4%,0) scale(1)} 50%{transform:translate3d(8%,6%,0) scale(1.18)} 100%{transform:translate3d(-6%,-4%,0) scale(1)} }
@keyframes drift2 { 0%{transform:translate3d(5%,8%,0) scale(1.1)} 50%{transform:translate3d(-8%,-6%,0) scale(0.92)} 100%{transform:translate3d(5%,8%,0) scale(1.1)} }
@keyframes drift3 { 0%{transform:translate3d(0,0,0) scale(1)} 33%{transform:translate3d(-10%,5%,0) scale(1.15)} 66%{transform:translate3d(7%,-7%,0) scale(0.95)} 100%{transform:translate3d(0,0,0) scale(1)} }
@keyframes breathe { 0%{opacity:.55} 50%{opacity:.9} 100%{opacity:.55} }
@keyframes rise    { 0%{transform:translateY(20vh) scale(.6);opacity:0} 12%{opacity:.7} 80%{opacity:.5} 100%{transform:translateY(-90vh) scale(1.1);opacity:0} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes sheen   { 0%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }
@keyframes logoIn  { from{opacity:0;transform:translateY(18px) scale(.98);filter:blur(6px)} to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)} }
@keyframes float   { 0%{transform:translateY(0)} 50%{transform:translateY(-9px)} 100%{transform:translateY(0)} }
@keyframes halo    { 0%{opacity:.25;transform:translate(-50%,-50%) scale(.9)} 50%{opacity:.55;transform:translate(-50%,-50%) scale(1.08)} 100%{opacity:.25;transform:translate(-50%,-50%) scale(.9)} }
@keyframes lineGrow{ from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ---------- 背景演出 ---------- */
.stage {
  position: relative; min-height: 100vh; min-height: 100svh; width: 100%;
  overflow: hidden; display: flex; padding: 64px 24px;
}
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.veil { position: absolute; inset: 0; }
.spark { position: absolute; bottom: -10%; border-radius: 50%; }

/* ---------- ロゴ ---------- */
.logo-wrap { position: relative; animation: logoIn 1.6s cubic-bezier(.16,1,.3,1) both; }
.logo-halo {
  position: absolute; left: 50%; top: 50%; width: 150%; height: 150%;
  transform: translate(-50%,-50%); border-radius: 50%; filter: blur(50px);
  background: radial-gradient(circle, oklch(1 0 0 / .9), transparent 65%);
  animation: halo 9s ease-in-out infinite; pointer-events: none;
}
.logo-img {
  position: relative; width: 380px; max-width: 76vw; height: auto; display: block;
  animation: float 11s ease-in-out infinite;
}

/* ---------- トップページ ---------- */
.top-stage { flex-direction: column; align-items: center; justify-content: center; }
.top-inner {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 56px; text-align: center;
}
.top-cta-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  animation: fadeIn 1.4s cubic-bezier(.16,1,.3,1) .9s both;
}
.hairline {
  width: 56px; height: 1px; background: oklch(0.8 0.03 190);
  transform-origin: center; animation: lineGrow 1.6s cubic-bezier(.16,1,.3,1) 1.2s both;
}
.cta {
  display: inline-block; padding: 12px 4px; font-size: 11px; font-weight: 300;
  letter-spacing: .42em; text-transform: uppercase;
  border-bottom: 1px solid oklch(0.85 0.02 195);
  transition: border-color .4s, letter-spacing .4s;
}
.cta:hover, .cta:focus-visible { border-bottom-color: oklch(0.6 0.08 175); letter-spacing: .5em; }
.copyright-fixed {
  position: absolute; bottom: 32px; margin: 0; font-size: 10px; font-weight: 300;
  letter-spacing: .2em; color: oklch(0.7 0.01 200);
  animation: fadeIn 1.4s ease 1.8s both;
}

/* ---------- コンタクトページ ---------- */
.contact-stage { align-items: center; justify-content: center; }
.contact-inner {
  position: relative; width: 100%; max-width: 560px;
  animation: fadeUp 1.1s cubic-bezier(.16,1,.3,1) both;
}
.contact-head {
  display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 44px;
}
.contact-head .logo-img { width: 248px; max-width: 70%; animation: none; }
.eyebrow {
  margin: 0; font-size: 12px; font-weight: 300; letter-spacing: .36em;
  text-transform: uppercase; color: oklch(0.55 0.02 200);
}
.panel {
  background: oklch(1 0 0 / .58); border: 1px solid oklch(1 0 0 / .75);
  border-radius: 22px; padding: 40px 36px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -40px oklch(0.5 0.05 200 / .4);
  display: flex; flex-direction: column; gap: 22px;
}
.panel--done {
  background: oklch(1 0 0 / .62); border-color: oklch(1 0 0 / .8);
  padding: 64px 40px; text-align: center; display: block;
  box-shadow: 0 30px 80px -40px oklch(0.5 0.05 200 / .45);
}
.done-mark {
  width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%;
  background: oklch(0.9 0.09 168); animation: breathe 4s ease-in-out infinite;
}
.done-title { margin: 0 0 12px; font-size: 22px; font-weight: 400; letter-spacing: .06em; }
.done-text  { margin: 0; font-size: 14px; font-weight: 300; line-height: 2; color: oklch(0.52 0.01 200); }

/* ---------- フォーム ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label {
  font-size: 11px; font-weight: 400; letter-spacing: .16em; color: oklch(0.52 0.02 200);
}
.req { color: oklch(0.68 0.11 25); }
.field input, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid oklch(0.88 0.01 200);
  background: transparent; padding: 10px 2px; font-size: 15px; font-weight: 300;
  color: oklch(0.25 0.01 200); outline: none; transition: border-color .3s;
}
.field textarea { line-height: 1.9; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: oklch(0.7 0.11 168); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-bottom-color: oklch(0.68 0.11 25);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.error {
  font-size: 11px; font-weight: 400; line-height: 1.7;
  color: oklch(0.55 0.15 25); margin: 0;
}
.alert {
  margin: 0; padding: 14px 18px; border-radius: 12px; font-size: 13px;
  font-weight: 300; line-height: 1.9;
  background: oklch(0.95 0.04 25); color: oklch(0.45 0.13 25);
  border: 1px solid oklch(0.88 0.07 25);
}
/* スパム対策: 人間には見えない囮フィールド */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  position: relative; overflow: hidden; margin-top: 10px; border: none;
  border-radius: 999px; padding: 17px 24px;
  background: oklch(0.28 0.02 200); color: oklch(0.98 0.005 170);
  font-size: 13px; font-weight: 400; letter-spacing: .24em; cursor: pointer;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .3s;
}
.submit:hover, .submit:focus-visible { background: oklch(0.22 0.03 190); transform: translateY(-2px); }
.submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.submit span { position: relative; z-index: 1; }
.submit .sheen {
  position: absolute; top: 0; left: 0; width: 60%; height: 100%; z-index: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / .22), transparent);
  animation: sheen 5s ease-in-out infinite;
}

/* ---------- フッター ---------- */
.contact-foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px;
}
.back-link {
  font-size: 10px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid oklch(0.88 0.02 195); transition: border-color .4s;
}
.back-link:hover, .back-link:focus-visible { border-bottom-color: oklch(0.6 0.08 175); }
.copyright {
  margin: 0; text-align: center; font-size: 11px; font-weight: 300;
  letter-spacing: .14em; color: oklch(0.66 0.01 200);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 560px) {
  .stage { padding: 40px 18px; }
  .panel { padding: 32px 22px; border-radius: 18px; }
  .panel--done { padding: 48px 24px; }
  .row { grid-template-columns: 1fr; gap: 22px; }
  .top-inner { gap: 40px; }
}

/* ---------- アクセシビリティ ---------- */
:focus-visible { outline: 2px solid oklch(0.6 0.1 175); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
