/* =====================================================================
   ORMIX common — グローバルヘッダー / モバイルメニュー / フッター / ページ遷移
   全ページ共通。ページ固有のスタイルは各ページ側に記述。
   ===================================================================== */
:root{--gh-h:76px;--gh-hs:62px;--gh-e:cubic-bezier(.22,.7,.2,1);--grad:linear-gradient(100deg,#7257ff 0%,#a83cff 50%,#ff3b8d 100%)}
section[id]{scroll-margin-top:12px}
[id^="service-"],[id^="case-"]{scroll-margin-top:calc(var(--gh-hs) + 24px)}
:focus-visible{outline:2px solid #ff3b8d;outline-offset:3px}
.skip-link{position:absolute;left:12px;top:-64px;z-index:100;padding:10px 16px;border-radius:999px;background:#fff;color:#17091f;font-weight:700;font-size:14px;transition:top .2s}
.skip-link:focus{top:12px}

/* ---------- ブランドロゴ ---------- */
.brand{display:inline-flex;align-items:center;gap:10px;font:900 23px Arial,sans-serif;letter-spacing:.04em;color:#fff;text-decoration:none}
.brand-mark{width:31px;height:25px;flex:none}
.brand-mark path{fill:none;stroke:url(#brandGrad);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- ヘッダー ---------- */
.gh{position:fixed;inset:0 0 auto;z-index:40;color:#fff;background:rgba(23,9,31,0);border-bottom:1px solid rgba(255,255,255,0);transition:background-color .45s ease,border-color .45s ease,-webkit-backdrop-filter .45s ease,backdrop-filter .45s ease}
.gh.is-scrolled{background:rgba(23,9,31,.72);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15);border-bottom-color:rgba(255,255,255,.08)}
.gh-bar{height:var(--gh-h);display:flex;align-items:center;justify-content:space-between;gap:24px;transition:height .45s var(--gh-e)}
.gh.is-scrolled .gh-bar{height:var(--gh-hs)}
.gh .brand{position:relative;z-index:2}
.gh-menu ul{display:flex;align-items:center;gap:30px;list-style:none;margin:0;padding:0}
.gh-menu a{position:relative;display:inline-block;padding:6px 0;font:700 12px Arial,sans-serif;letter-spacing:.14em;color:rgba(255,255,255,.76);text-decoration:none;transition:color .25s ease}
.gh-menu a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--grad);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--gh-e)}
.gh-menu a:hover,.gh-menu a[aria-current="page"]{color:#fff}
.gh-menu a:hover::after,.gh-menu a[aria-current="page"]::after{transform:scaleX(1)}
.gh-menu .gh-contact{padding:10px 18px;border:1px solid rgba(255,255,255,.42);border-radius:999px;color:#fff;transition:border-color .25s ease,background-color .25s ease}
.gh-menu .gh-contact:hover{border-color:#fff;background:rgba(255,255,255,.06)}
.gh-menu .gh-contact::after{display:none}
.gh-contact small{display:none}
.gh-toggle{display:none}

/* ---------- モバイルメニュー ---------- */
@media(max-width:900px){
  :root{--gh-h:66px;--gh-hs:58px}
  .gh-toggle{position:relative;z-index:2;display:inline-block;width:46px;height:46px;padding:0;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:transparent;color:#fff;cursor:pointer;flex:none}
  .gh-toggle i{position:absolute;left:13px;height:1.5px;border-radius:2px;background:currentColor;transform-origin:center;transition:transform .45s var(--gh-e),width .45s var(--gh-e),opacity .3s ease}
  .gh-toggle i:nth-child(1){top:16px;width:20px}
  .gh-toggle i:nth-child(2){top:22px;width:13px}
  .gh-toggle i:nth-child(3){top:28px;width:17px}
  .gh.menu-open .gh-toggle i:nth-child(1){width:20px;transform:translateY(6px) rotate(45deg)}
  .gh.menu-open .gh-toggle i:nth-child(2){opacity:0;transform:scaleX(0)}
  .gh.menu-open .gh-toggle i:nth-child(3){width:20px;transform:translateY(-6px) rotate(-45deg)}
  .js .gh-menu{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;padding:calc(var(--gh-h) + 26px) 24px 40px;overflow-y:auto;background:#120718;visibility:hidden;opacity:0;clip-path:inset(0 0 100% 0);transition:opacity .35s ease,clip-path .5s cubic-bezier(.65,0,.35,1),visibility 0s linear .5s}
  .js .gh.menu-open .gh-menu{visibility:visible;opacity:1;clip-path:inset(0 0 0 0);transition:opacity .3s ease,clip-path .5s cubic-bezier(.65,0,.35,1),visibility 0s}
  .js .gh-menu::before{content:"";position:absolute;left:24px;right:24px;top:calc(var(--gh-h) + 12px);height:1px;background:var(--grad);transform-origin:left;transform:scaleX(0);transition:transform .6s var(--gh-e) .15s}
  .js .gh.menu-open .gh-menu::before{transform:scaleX(1)}
  .js .gh-menu ul{flex-direction:column;align-items:stretch;gap:0}
  .js .gh-menu li{border-bottom:1px solid rgba(255,255,255,.1);opacity:0;transform:translate3d(-12px,0,0);transition:opacity .35s ease,transform .45s var(--gh-e)}
  .js .gh.menu-open .gh-menu li{opacity:1;transform:none;transition-delay:calc(.12s + var(--i,0)*.05s)}
  .js .gh-menu a{display:flex;align-items:center;justify-content:space-between;padding:20px 4px;font-size:15px;letter-spacing:.2em}
  .js .gh-menu a::after{left:auto;right:4px;top:50%;bottom:auto;width:26px;height:2px;margin-top:-1px}
  .js .gh-menu .gh-li-contact{border-bottom:0;margin-top:30px}
  .js .gh-menu .gh-contact{flex-direction:column;align-items:center;gap:2px;padding:16px 20px;border:0;background:#fff;color:#17091f;letter-spacing:.2em}
  .js .gh-menu .gh-contact:hover{background:#fff}
  .js .gh-contact small{display:block;font:700 13px Arial,sans-serif;letter-spacing:.08em;color:#5f5664}
  html:not(.js) .gh-toggle{display:none}
  html:not(.js) .gh-menu li:not(.gh-li-contact){display:none}
}
html.gh-lock,html.gh-lock body{overflow:hidden}

/* ---------- フッター ---------- */
.gf{position:relative;background:#120718;color:#a597aa;padding:72px 0 34px;font-size:14px;line-height:1.8}
.gf::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(114,87,255,0),rgba(168,60,255,.6) 40%,rgba(255,59,141,.6) 70%,rgba(255,59,141,0))}
.gf-grid{display:grid;grid-template-columns:1.3fr .8fr 1.1fr;gap:48px}
.gf-copy{margin:22px 0 0;font:900 22px/1.12 Arial,sans-serif;letter-spacing:-.02em;color:#fff}
.gf-copy span{display:block;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.gf-nav ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.gf-nav a{font:700 12px Arial,sans-serif;letter-spacing:.16em;color:#ddd3e1;text-decoration:none}
.gf-nav a:hover,.gf-nav a[aria-current="page"]{color:#fff;text-decoration:underline;text-decoration-color:#ff3b8d;text-underline-offset:5px}
.gf-info{margin:0;display:grid;gap:12px}
.gf-info div{display:grid;grid-template-columns:72px 1fr;gap:12px}
.gf-info dt{font-size:12px;color:#8f8294}
.gf-info dd{margin:0;color:#fff}
.gf-info a{color:#fff;text-decoration:none;font-family:Arial,sans-serif;font-weight:700;letter-spacing:.04em}
.gf-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;margin-top:56px;padding-top:22px;border-top:1px solid rgba(255,255,255,.08);font:12px Arial,"Noto Sans JP",sans-serif;letter-spacing:.06em;color:#8f8294}
.gf-bottom p{margin:0}
@media(max-width:800px){.gf{padding:60px 0 30px}.gf-grid{grid-template-columns:1fr;gap:36px}.gf-bottom{margin-top:44px}}

/* ---------- ページ遷移（細い一本線） ---------- */
.pt-line{position:fixed;left:0;top:0;z-index:60;width:100%;height:2px;background:var(--grad);transform-origin:left;transform:scaleX(0);opacity:0;pointer-events:none}
.pt-leave .pt-line{opacity:1;transform:scaleX(1);transition:transform .2s cubic-bezier(.5,0,.3,1)}
.pt-enter .pt-line{animation:pt-in .55s cubic-bezier(.5,0,.3,1) both}
@keyframes pt-in{from{opacity:1;transform-origin:right;transform:scaleX(1)}to{opacity:1;transform-origin:right;transform:scaleX(0)}}

@media (prefers-reduced-motion:reduce){
  .gh,.gh-bar,.gh-menu,.gh-menu li,.gh-menu::before,.gh-toggle i{transition:none!important}
  .pt-line{display:none}
}

/* メールアドレスは途中で改行しない */
.gf-mail{white-space:nowrap}
