@charset "UTF-8";
/*
 * ELSYS TOPページ（スクロール連動モーション）
 * 流れ: 由来 → 理念 → 事業内容 → お知らせ → アクセス → お問い合わせ → フッター
 * 動き: js/elsys-motion.js ／ このファイルのクラスはすべて .mt- で始まる（サイト既存のCSSとは干渉しない）
 */

.mt-story {
  --mt-bg: #07040d;
  --mt-fg: #f4eefb;
  --mt-dim: rgba(244, 238, 251, .78);
  --mt-brand: #8a3fc4;
  --mt-soft: #d9a8ff;
  --mt-line: rgba(244, 238, 251, .18);
  --mt-glow: rgba(7, 4, 13, .95);
  --mt-pill: rgba(255, 255, 255, .07);
  --mt-btn-fg: #1b0a29;
  --mt-foot-bg: rgba(7, 4, 13, .55);
  --mt-gutter: clamp(20px, 5vw, 72px);
  --mt-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");   /* ボタンの矢印 → */
  --mt-arrow-ext: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");   /* 別の画面で開くリンクの矢印 ↗ */
  --mt-arrow-purple: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%236a2da3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");   /* 紫のボタンの白い丸の中の矢印 */
  --mt-left: 0px;                 /* 左に固定メニューがある場合は、その幅を入れる */
  position: relative;
  background: var(--mt-bg);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: left;
}
.mt-story *, .mt-story *::before, .mt-story *::after { box-sizing: border-box; }
/* リセットは :where() で優先度を最低に（個別の余白・色の指定を邪魔しない） */
.mt-story :where(h1, h2, h3, p, ul, li, dl, dd) { margin: 0; padding: 0; list-style: none; }
.mt-story :where(a) { color: inherit; }
.mt-story h2, .mt-story h3, .mt-story p, .mt-story .mt-eyebrow, .mt-story li { text-shadow: 0 0 18px var(--mt-glow), 0 0 40px var(--mt-glow); }
.mt-story { color: var(--mt-fg); }

/* ---- ページ全体の背後に固定される描画面（canvas） ---- */
.mt-pin { position: fixed; top: 0; bottom: 0; left: var(--mt-left); right: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mt-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 48%, rgba(0, 0, 0, 0) 0%, rgba(7, 4, 13, .55) 70%, rgba(7, 4, 13, .9) 100%); }
.mt-nogl .mt-pin { background: radial-gradient(circle at 60% 40%, #2a0f3f, #07040d 70%); }

/* ---- ヘッダー ---- */
.mt-header { position: fixed; top: 0; left: var(--mt-left); right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
             padding: 24px var(--mt-gutter); pointer-events: none; opacity: 0; transition: opacity 1.2s ease 2s; }
.mt-ready .mt-header { opacity: 1; }
/* 本文がヘッダーの下を通っても読めるよう、ヘッダーの背面にごく薄い影を敷く（反転エリアでは、一緒に明るくなる） */
.mt-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 34px); z-index: -1; pointer-events: none;
                     background: linear-gradient(rgba(7, 4, 13, .86) 0%, rgba(7, 4, 13, .55) 58%, rgba(7, 4, 13, 0) 100%); }
.mt-header > * { pointer-events: auto; }
.mt-brand { grid-column: 2; grid-row: 1; justify-self: center; display: block; line-height: 0; text-decoration: none; }
.mt-nav--l { grid-column: 1; grid-row: 1; justify-self: start; }
.mt-nav--r { grid-column: 3; grid-row: 1; justify-self: end; }
.mt-logo { display: block; width: 64px; height: auto; filter: drop-shadow(0 2px 14px rgba(217, 168, 255, .28)); }
.mt-nav { display: flex; align-items: center; gap: 26px; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--mt-pill);
          backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mt-nav a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-shadow: none; }
.mt-nav a.cta { display: flex; align-items: center; height: 38px; background: var(--mt-brand); padding: 0 18px; border-radius: 999px; }
.mt-nav--r { padding-right: 7px; }


/* ---- セクション共通 ---- */
.mt-sec { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; padding: 120px var(--mt-gutter); display: flex; flex-direction: column; justify-content: center; }
.mt-sec--right { align-items: flex-end; }
.mt-sec--center { align-items: center; text-align: center; }
.mt-inner { width: 100%; max-width: 600px; }
.mt-sec--center .mt-inner { max-width: 640px; }
.mt-sec--wide .mt-inner { max-width: 1080px; }
.mt-sec--wide { align-items: center; }

.mt-eyebrow { font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--mt-soft); margin-bottom: 22px; }
.mt-title { font-size: clamp(26px, 3.4vw, 46px); font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.mt-lead { font-size: clamp(14px, 1.3vw, 17px); line-height: 2; color: var(--mt-dim); margin-top: 26px; letter-spacing: .02em; }

/* ---- HERO ---- */
.mt-sec--hero { justify-content: flex-end; padding-bottom: clamp(48px, 10vh, 120px); }
.mt-corp { display: block; font-size: clamp(13px, 1.5vw, 21px); font-weight: 700; letter-spacing: .6em; color: var(--mt-soft); margin-bottom: 6px; }
.mt-word { font-size: clamp(56px, 10vw, 150px); font-weight: 800; line-height: 1.05; letter-spacing: .02em; }
.mt-tag { font-size: clamp(20px, 2.5vw, 34px); font-weight: 700; line-height: 1.55; margin-top: 30px; letter-spacing: .04em; }
.mt-scroll { position: absolute; right: var(--mt-gutter); bottom: 48px; font-size: 11px; letter-spacing: .3em; color: var(--mt-dim);
             writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.mt-scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--mt-dim), transparent); animation: mt-drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes mt-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- 由来：3語。E・L・Sys の色を変える ---- */
.mt-words { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: clamp(24px, 3.4vw, 46px); font-weight: 800; letter-spacing: .01em; }
.mt-words em { font-style: normal; color: var(--mt-soft); }

/* ---- 理念 ---- */
/* ボタン（リンク）：はっきりした枠線と、右向きの矢印で「押せる」と分かるように（別の画面で開くものは ↗） */
.mt-more { display: inline-flex; align-items: center; gap: .9em; margin-top: 38px; padding: 14px 24px 14px 30px; border: 1px solid rgba(244, 238, 251, .55); border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
           text-decoration: none; text-shadow: none; cursor: pointer; transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.mt-more::after { content: ""; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--mt-arrow) center / contain no-repeat; mask: var(--mt-arrow) center / contain no-repeat; transition: transform .3s; }
.mt-more[target="_blank"]::after { -webkit-mask-image: var(--mt-arrow-ext); mask-image: var(--mt-arrow-ext); }
.mt-more:hover, .mt-more:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--mt-soft); }
.mt-more:hover::after, .mt-more:focus-visible::after { transform: translateX(4px); }
.mt-more[target="_blank"]:hover::after { transform: translate(2px, -2px); }
.mt-back .mt-more::after { order: -1; transform: scaleX(-1); }                                   /* 「戻る」は、左向き */
.mt-back .mt-more { padding: 14px 30px 14px 24px; }
.mt-back .mt-more:hover::after { transform: scaleX(-1) translateX(4px); }
/* 主なボタン（トップの「私たちについて」）：紫で塗りつぶし、右に白い丸の矢印。色の反転中も紫のまま（data-mt-keep） */
.mt-more--solid { padding: 12px 14px 12px 34px; gap: 1.6em; border-color: transparent; background: linear-gradient(135deg, #9a4fd8, #6a2da3); color: #fff; font-size: 15px; letter-spacing: .12em;
                  box-shadow: 0 10px 28px rgba(138, 63, 196, .42); }
.mt-more--solid::after { width: 34px; height: 34px; border-radius: 50%; -webkit-mask: none; mask: none; background: #fff var(--mt-arrow-purple) center / 52% no-repeat; }
.mt-more--solid:hover, .mt-more--solid:focus-visible { background: linear-gradient(135deg, #a85ce6, #7a38b8); border-color: transparent; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(138, 63, 196, .55); }
.mt-more--solid:focus-visible { outline: 2px solid var(--mt-soft); outline-offset: 3px; }
.mt-more-note { margin-top: 14px; font-size: 12px; letter-spacing: .12em; color: var(--mt-dim); }
@media (max-width: 768px) {
  .mt-more--solid { display: flex; justify-content: space-between; width: 100%; max-width: 340px; min-height: 58px; }
}

/* ---- 事業内容 ---- */
.mt-biz { margin-top: 36px; }
.mt-biz li { border-top: 1px solid var(--mt-line); }
.mt-biz li:last-child { border-bottom: 1px solid var(--mt-line); }
.mt-biz-item { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "n h" ". p"; padding: 20px 0; }
.mt-biz-item b { grid-area: n; font-size: 12px; letter-spacing: .25em; color: var(--mt-soft); padding-top: 6px; }
.mt-biz-item h3 { grid-area: h; font-size: clamp(17px, 1.8vw, 23px); line-height: 1.5; margin-bottom: 6px; letter-spacing: .04em; }
.mt-biz-item p { grid-area: p; font-size: 13px; line-height: 1.9; color: var(--mt-dim); letter-spacing: .02em; }

/* ---- お知らせ：Kihokuと同じ仕様 ----
   左に縦書きラベルと送りボタン、右に横スライドのカード（点線で区切る）。最新8件・サムネ・日付とカテゴリ・タイトル2行・抜粋3行・VIEW MORE */
.mt-sec--news { padding-left: 0; padding-right: 0; }
.mt-sec--news .mt-eyebrow { display: none; }
.mt-news { --news-line: 1.5px dashed var(--mt-line); position: relative; isolation: isolate; display: grid; grid-template-columns: 180px minmax(0, 1fr);
           width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 0; }
.mt-news::before { content: ""; position: absolute; z-index: -1; inset: 0 var(--mt-gutter); border-radius: 32px; background: color-mix(in srgb, var(--mt-bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mt-news::after { content: ""; position: absolute; inset: 40px var(--mt-gutter); border-top: var(--news-line); border-bottom: var(--news-line); pointer-events: none; }
.mt-news-rail { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; padding: 72px 0; border-right: var(--news-line); margin-left: var(--mt-gutter); }
.mt-news-label { display: flex; align-items: center; gap: 16px; writing-mode: vertical-rl; font-weight: 800; font-size: 1.7rem; letter-spacing: .14em; text-transform: uppercase; }
.mt-news-label small { font-size: .8rem; font-weight: 500; letter-spacing: .3em; color: var(--mt-dim); }
.mt-news-nav { display: flex; flex-direction: column; gap: 18px; }
.mt-news-arrow { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 2px solid var(--mt-fg); border-radius: 50%; background: transparent; color: var(--mt-fg);
                 font-size: 1.4rem; cursor: pointer; transition: background .2s, color .2s, opacity .2s; text-shadow: none; }
.mt-news-arrow:hover { background: var(--mt-fg); color: var(--mt-btn-fg); }
.mt-news-arrow:disabled { opacity: .25; cursor: default; background: transparent; color: var(--mt-fg); }
.mt-news-all { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--mt-soft) !important; text-decoration: underline; text-underline-offset: 4px; }
.mt-news-track { display: flex; margin-right: var(--mt-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.mt-news-track::-webkit-scrollbar { display: none; }
.mt-news-track::after { content: ""; flex: 0 0 1px; }
.mt-news-item { flex: 0 0 clamp(300px, 30vw, 440px); display: flex; flex-direction: column; padding: 72px 48px 64px; border-right: var(--news-line); scroll-snap-align: start; }
.mt-news-thumb { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: linear-gradient(135deg, rgba(138, 63, 196, .35), rgba(59, 16, 112, .35)); }
.mt-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mt-news-item:hover .mt-news-thumb img { transform: scale(1.04); }

/* ---- お知らせの画像：ポインターが乗ると、ノイズの帯・色ずれ・左右の震えが走る ----
   画像（またはその記事のタイトル／VIEW MORE）にポインターが乗ると発動。ピンクとシアンの層を、画像の一部だけ横にずらして重ねる。 */
.mt-news-thumb { position: relative; --thumb: linear-gradient(135deg, #6b2fa0, #2a0f4f); }   /* 画像がない記事は、プレースホルダーと同じグラデーションでノイズを出す */
.mt-news-thumb::before, .mt-news-thumb::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background-image: var(--thumb); background-size: cover; background-position: center; }
@media (prefers-reduced-motion: no-preference) {
  .mt-news-thumb:is(:hover, :focus-visible, :active) img,
  .mt-news-thumb:is(:hover, :focus-visible, :active) .mt-news-noimg,
  .mt-news-item:has(.mt-news-name a:is(:hover, :focus-visible), .mt-news-more:is(:hover, :focus-visible)) .mt-news-thumb img,
  .mt-news-item:has(.mt-news-name a:is(:hover, :focus-visible), .mt-news-more:is(:hover, :focus-visible)) .mt-news-thumb .mt-news-noimg { animation: mt-img-jit .52s steps(1, end) infinite; transform: none; }
  .mt-news-thumb:is(:hover, :focus-visible, :active)::before,
  .mt-news-item:has(.mt-news-name a:is(:hover, :focus-visible), .mt-news-more:is(:hover, :focus-visible)) .mt-news-thumb::before { opacity: 1; background-color: #ff2f87; background-blend-mode: multiply; mix-blend-mode: screen; animation: mt-img-sliceA .44s steps(1, end) infinite; }
  .mt-news-thumb:is(:hover, :focus-visible, :active)::after,
  .mt-news-item:has(.mt-news-name a:is(:hover, :focus-visible), .mt-news-more:is(:hover, :focus-visible)) .mt-news-thumb::after { opacity: 1; background-color: #27e1ff; background-blend-mode: multiply; mix-blend-mode: screen; animation: mt-img-sliceB .36s steps(1, end) infinite; }
}
@keyframes mt-img-jit {
  0%   { transform: translateX(0);    filter: none; }
  9%   { transform: translateX(-6px); filter: contrast(1.25) saturate(1.5); }
  18%  { transform: translateX(5px);  filter: hue-rotate(-18deg) brightness(1.12); }
  27%  { transform: translateX(0);    filter: none; }
  38%  { transform: translateX(7px);  filter: contrast(1.3) saturate(1.4); }
  47%  { transform: translateX(-4px); filter: brightness(.82); }
  56%  { transform: translateX(0);    filter: none; }
  66%  { transform: translateX(-3px); filter: hue-rotate(20deg) saturate(1.6); }
  78%  { transform: translateX(6px);  filter: contrast(1.2); }
  88%  { transform: translateX(-5px); filter: brightness(1.18) saturate(1.3); }
  95%  { transform: translateX(0);    filter: none; }
}
@keyframes mt-img-sliceA {
  0%   { clip-path: inset(8% 0 72% 0);  transform: translateX(-14px); }
  14%  { clip-path: inset(58% 0 12% 0); transform: translateX(16px); }
  28%  { clip-path: inset(0 0 90% 0);   transform: translateX(-10px); }
  42%  { clip-path: inset(76% 0 4% 0);  transform: translateX(20px); }
  57%  { clip-path: inset(30% 0 52% 0); transform: translateX(-18px); }
  71%  { clip-path: inset(44% 0 36% 0); transform: translateX(12px); }
  86%  { clip-path: inset(16% 0 66% 0); transform: translateX(-8px); }
}
@keyframes mt-img-sliceB {
  0%   { clip-path: inset(62% 0 14% 0); transform: translateX(14px); }
  16%  { clip-path: inset(12% 0 70% 0); transform: translateX(-16px); }
  33%  { clip-path: inset(84% 0 0 0);   transform: translateX(10px); }
  50%  { clip-path: inset(24% 0 56% 0); transform: translateX(-12px); }
  67%  { clip-path: inset(4% 0 86% 0);  transform: translateX(18px); }
  84%  { clip-path: inset(48% 0 30% 0); transform: translateX(-14px); }
}
.mt-news-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .3em; color: rgba(244, 238, 251, .35); text-shadow: none; }
.mt-news-meta { display: flex; gap: 12px; margin: 26px 0 10px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--mt-soft); }
.mt-news-name { margin: 0 0 16px; font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.6; letter-spacing: .05em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-news-name a { text-decoration: none; }
.mt-news-excerpt { margin: 0 0 28px; font-size: .9rem; line-height: 2; letter-spacing: .04em; color: var(--mt-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-news-more { display: inline-flex; align-self: flex-start; align-items: center; margin-top: auto; border: 2px solid var(--mt-fg); border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-decoration: none;
                transition: background .2s, color .2s; text-shadow: none; }
.mt-news-more > span { padding: 14px 26px; }
.mt-news-more i { font-style: normal; padding: 0 22px; border-left: 1.5px solid currentColor; line-height: 1.4; transition: transform .2s; }
.mt-news-more:hover { background: var(--mt-fg); color: var(--mt-btn-fg); }
.mt-news-more:hover i { transform: translateX(3px); }

/* ---- アクセス ---- */
.mt-access { display: block; margin-top: 40px; }
.mt-place h3 { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.5; letter-spacing: .04em; }
.mt-place p { font-size: 14px; line-height: 1.9; color: var(--mt-dim); margin-top: 10px; letter-spacing: .03em; }
.mt-map { margin-top: 20px; border: 1px solid var(--mt-line); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: #120a1c; }
.mt-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }
.mt-place .mt-more { margin-top: 20px; padding: 10px 26px; font-size: 12px; }

/* ---- お問い合わせ ---- */
.mt-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.mt-story .mt-btn { display: inline-block; padding: 18px 40px; border-radius: 999px; background: var(--mt-fg); color: var(--mt-btn-fg); font-weight: 800; letter-spacing: .12em; font-size: 14px;
          text-decoration: none; text-shadow: none; transition: transform .3s, background .3s; }
.mt-story .mt-btn:hover { transform: translateY(-3px); background: var(--mt-soft); }
.mt-story .mt-btn--ghost { background: transparent; color: var(--mt-fg); border: 1px solid currentColor; }
.mt-story .mt-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.mt-hours { margin-top: 28px; font-size: 13px; letter-spacing: .12em; color: var(--mt-dim); }

/* ---- フッター ---- */
.mt-footer { position: relative; z-index: 1; padding: 72px var(--mt-gutter) 36px; border-top: 1px solid var(--mt-line); background: var(--mt-foot-bg); }
.mt-footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 40px; max-width: 1180px; margin: 0 auto; }
.mt-footer h3 { font-size: 11px; letter-spacing: .3em; color: var(--mt-soft); margin-bottom: 14px; }
.mt-footer li { font-size: 13px; line-height: 2.1; letter-spacing: .04em; }
.mt-footer a { text-decoration: none; color: var(--mt-dim); }
.mt-footer a:hover { color: var(--mt-fg); }
.mt-footer-logo { display: flex; align-items: center; gap: 18px; font-size: 18px; font-weight: 800; letter-spacing: .12em; }
.mt-footer-logo .mt-logo { width: 78px; flex: none; }
.mt-footer-logo span:not(.mt-gl) { display: block; font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--mt-dim); margin-top: 6px; }
.mt-copy { max-width: 1180px; margin: 56px auto 0; font-size: 11px; letter-spacing: .15em; color: var(--mt-dim); }

/* 反転する層：背後のものをすべて反転して見せる（wipe / iris）。クリックは素通し。ヘッダーより手前に置くので、ヘッダーも一緒に反転する */
.mt-invfx { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; clip-path: inset(100% 0 0 0);
            -webkit-backdrop-filter: invert(1) hue-rotate(180deg) saturate(1.2) brightness(.945); backdrop-filter: invert(1) hue-rotate(180deg) saturate(1.2) brightness(.945); }   /* brightness: 反転後の白を、ほんの少しグレーがかった白に */

/* メッシュフロー（布）：最下層の背景（.mt-pin の最初の子＝糸のキャンバスよりも下）。js「メッシュフロー（布）」が、反転する層と同じ円で切り抜く（白い背景の範囲だけに見える）。
   暗い背景用の色で描いてあり、反転する層が上から反転して、白い地の上の紫の濃淡になる */
.mt-pin .mt-cloth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; visibility: hidden; }

/* 反転エリアに入ったロゴ・紫のボタンは、反転を打ち消して元のブランド色に戻す（fx層のフィルタと逆の変換を先に掛ける） */
.mt-story .mt-unflip { filter: brightness(1.058) saturate(.834) hue-rotate(-180deg) invert(1) !important; }
.mt-story.mt-menu-open .mt-unflip { filter: none !important; }   /* メニューを開いている間、ヘッダーは反転の層より手前に出るので、打ち消しは不要 */


/* ---- ハンバーガーメニュー（スマホ） ---- */
.mt-burger { display: none; grid-column: 1; grid-row: 1; justify-self: start; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
             background: var(--mt-pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--mt-fg); cursor: pointer; }
.mt-burger i { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; background: currentColor; border-radius: 2px; transition: transform .4s cubic-bezier(.7, 0, .2, 1), opacity .2s; }
.mt-burger i:nth-child(1) { transform: translateY(-4px); }
.mt-burger i:nth-child(2) { transform: translateY(4px); }
.mt-menu-open .mt-burger i:nth-child(1) { transform: rotate(45deg); }
.mt-menu-open .mt-burger i:nth-child(2) { transform: rotate(-45deg); }
.mt-burger { position: relative; }
.mt-menu-open .mt-header { z-index: 60; }
html.mt-lock { overflow: hidden; }
.mt-menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--mt-gutter) 56px; visibility: hidden;
           background: rgba(10, 4, 20, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
           clip-path: circle(0 at 45px 49px); -webkit-clip-path: circle(0 at 45px 49px);
           transition: clip-path .85s cubic-bezier(.7, 0, .2, 1), -webkit-clip-path .85s cubic-bezier(.7, 0, .2, 1), visibility 0s .85s; }
.mt-menu-open .mt-menu { visibility: visible; clip-path: circle(150vmax at 45px 49px); -webkit-clip-path: circle(150vmax at 45px 49px); transition-delay: 0s; }
.mt-menu ul { display: block; }
.mt-menu li { border-bottom: 1px solid var(--mt-line); }
.mt-menu li:first-child { border-top: 1px solid var(--mt-line); }
.mt-menu a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; font-size: clamp(24px, 7.4vw, 36px); font-weight: 800; letter-spacing: .05em; text-decoration: none; text-shadow: none;
             opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.mt-menu a small { font-size: 11px; font-weight: 700; letter-spacing: .25em; color: var(--mt-soft); }
.mt-menu-open .mt-menu a { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i, 0) * .07s); }
.mt-menu-foot { margin-top: 36px; font-size: 12px; letter-spacing: .15em; color: var(--mt-dim); opacity: 0; transition: opacity .6s ease .8s; }
.mt-menu-open .mt-menu-foot { opacity: 1; }

/* ---- 右下の「TOPに戻る」 ---- */
.mt-top { position: fixed; right: clamp(14px, 2.6vw, 34px); bottom: clamp(14px, 2.6vw, 34px); z-index: 25; width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column;
          align-items: center; justify-content: center; gap: 2px; background: var(--mt-brand); color: #fff; text-decoration: none; text-shadow: none; font-size: 10px; font-weight: 800; letter-spacing: .12em;
          box-shadow: 0 8px 26px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
          transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s, background .25s; }
.mt-top.is-show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mt-top:hover { background: #a25bdb; }
.mt-top svg { width: 16px; height: 16px; display: block; }

/* ---- リンクにポインターが乗ったとき：文字にノイズが入り、左右に震える ---- */
.mt-story .mt-gl { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .mt-story :is(a, button):is(:hover, :focus-visible, :active) .mt-gl,
  .mt-story a.mt-gl:is(:hover, :focus-visible, :active) { animation: mt-jit .5s steps(1, end) infinite; }
  .mt-story :is(a, button):is(:hover, :focus-visible, :active) .mt-gl:not(.mt-gl--ml)::before,
  .mt-story :is(a, button):is(:hover, :focus-visible, :active) .mt-gl:not(.mt-gl--ml)::after { content: attr(data-text); position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; text-shadow: none; }
  .mt-story :is(a, button):is(:hover, :focus-visible, :active) .mt-gl:not(.mt-gl--ml)::before { color: #ff2f87; animation: mt-sliceA .42s steps(1, end) infinite; }
  .mt-story :is(a, button):is(:hover, :focus-visible, :active) .mt-gl:not(.mt-gl--ml)::after { color: #27e1ff; animation: mt-sliceB .33s steps(1, end) infinite; }
}
@keyframes mt-jit {
  0%   { left: 0; opacity: 1; text-shadow: none; }
  9%   { left: -3px; text-shadow: 2px 0 rgba(255, 47, 135, .8), -2px 0 rgba(39, 225, 255, .8); }
  18%  { left: 2px; text-shadow: -2px 0 rgba(255, 47, 135, .8), 2px 0 rgba(39, 225, 255, .8); opacity: .88; }
  27%  { left: 0; text-shadow: none; opacity: 1; }
  38%  { left: 3px; text-shadow: 1px 0 rgba(255, 47, 135, .8), -1px 0 rgba(39, 225, 255, .8); }
  47%  { left: -2px; opacity: .8; }
  56%  { left: 0; text-shadow: none; opacity: 1; }
  66%  { left: -1px; text-shadow: -2px 0 rgba(255, 47, 135, .8), 2px 0 rgba(39, 225, 255, .8); }
  78%  { left: 3px; opacity: .9; }
  88%  { left: -2px; text-shadow: 2px 0 rgba(255, 47, 135, .8), -2px 0 rgba(39, 225, 255, .8); opacity: 1; }
  95%  { left: 0; text-shadow: none; }
}
@keyframes mt-sliceA {
  0%   { clip-path: inset(8% 0 66% 0);  transform: translateX(-4px); }
  17%  { clip-path: inset(56% 0 14% 0); transform: translateX(4px); }
  34%  { clip-path: inset(0 0 88% 0);   transform: translateX(-2px); }
  51%  { clip-path: inset(74% 0 2% 0);  transform: translateX(5px); }
  68%  { clip-path: inset(30% 0 44% 0); transform: translateX(-5px); }
  85%  { clip-path: inset(44% 0 30% 0); transform: translateX(3px); }
}
@keyframes mt-sliceB {
  0%   { clip-path: inset(60% 0 12% 0); transform: translateX(4px); }
  20%  { clip-path: inset(12% 0 64% 0); transform: translateX(-4px); }
  40%  { clip-path: inset(82% 0 0 0);   transform: translateX(3px); }
  60%  { clip-path: inset(24% 0 52% 0); transform: translateX(-3px); }
  80%  { clip-path: inset(4% 0 80% 0);  transform: translateX(5px); }
}

/* ページ内リンクは、なめらかに移動 */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 立ち位置を知らせるだけの印（見えない） */
.mt-marker { position: absolute; left: 0; width: 1px; height: 0; pointer-events: none; }

/* ---- 出現アニメーション ---- */
.mt-rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.mt-rv.in { opacity: 1; transform: none; }
.mt-rv.d1 { transition-delay: .12s; } .mt-rv.d2 { transition-delay: .24s; } .mt-rv.d3 { transition-delay: .36s; }
/* HEROは、線が描かれ始めてから出す */
.mt-story:not(.mt-ready) .mt-sec--hero .mt-rv { opacity: 0; transform: translateY(28px); }
.mt-sec--hero .mt-rv { transition-delay: 1.4s; }
.mt-sec--hero .mt-rv.d1 { transition-delay: 1.9s; }
.mt-sec--hero .mt-rv.d2 { transition-delay: 2.4s; }

@media (max-width: 768px) {
  .mt-nav { display: none; }   /* スマホのヘッダーは、ハンバーガー＋ロゴだけ。お問い合わせ等はメニューの中 */
  .mt-burger { display: flex; }
  .mt-sec--right { align-items: flex-start; }
  .mt-sec:not(.mt-sec--hero):not(.mt-sec--center):not(.mt-sec--wide) { justify-content: flex-start; padding-top: 50vh; padding-top: 50svh; }   /* 形は上、文字は下 */
  .mt-sec--wide { padding-top: 110px; padding-bottom: 80px; }
  .mt-inner { max-width: 100%; }
  .mt-scroll { bottom: 28px; }
  .mt-news { grid-template-columns: 1fr; padding: 0; }
  .mt-news::before { inset: 0 8px; border-radius: 22px; }
  .mt-news::after { display: none; }
  .mt-news-rail { flex-direction: row; padding: 36px 20px 16px; margin-left: 0; border-right: 0; border-bottom: var(--news-line); }
  .mt-news-label { writing-mode: horizontal-tb; font-size: 1.5rem; }
  .mt-news-nav { flex-direction: row; gap: 10px; }
  .mt-news-arrow { width: 44px; height: 44px; font-size: 1.1rem; }
  .mt-news-all { display: none; }
  .mt-news-track { margin-right: 8px; }
  .mt-news-item { flex-basis: 80vw; padding: 28px 20px 36px; }
  .mt-logo { width: 46px; }
  .mt-footer-grid { grid-template-columns: 1fr; }
  .mt-sec--center .mt-title { font-size: 24px; }
  .mt-sec--center .mt-lead { margin-top: 12px !important; font-size: 13px; }
  .mt-btns { gap: 10px; margin-top: 18px; flex-direction: column; align-items: center; }
  .mt-story .mt-btn { padding: 13px 22px; font-size: 12px; }
  .mt-hours { margin-top: 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-rv, .mt-story:not(.mt-ready) .mt-sec--hero .mt-rv { transition: none; opacity: 1; transform: none; }
  .mt-scroll::after { animation: none; }
}

/* =====================================================================
   下層ページ（私たちについて／お知らせ一覧・詳細／お問い合わせ／資料請求／プライバシーポリシー）
   背景は、トップと同じ糸（ほどけて広がった状態で静かに流れる）。本文は暗くして読みやすくする。
   ===================================================================== */
.mt-sub { min-height: 100vh; }
.mt-page { position: relative; z-index: 1; }

/* ---- ページの見出し ---- */
.mt-subhero { position: relative; z-index: 1; min-height: 58vh; min-height: 58svh; padding: clamp(150px, 24vh, 230px) var(--mt-gutter) clamp(44px, 7vh, 80px); display: flex; flex-direction: column; justify-content: flex-end; }
.mt-subhero .mt-wrap { width: 100%; }
.mt-subhero h1 { font-size: clamp(34px, 5.6vw, 76px); font-weight: 800; line-height: 1.15; letter-spacing: .02em; }
.mt-subhero .mt-lead { max-width: 36em; }
.mt-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 30px; font-size: 12px; letter-spacing: .14em; color: var(--mt-dim); }
.mt-crumb a { text-decoration: none; text-shadow: none; }
.mt-crumb a:hover { color: var(--mt-fg); }
.mt-crumb i { font-style: normal; opacity: .5; }
.mt-crumb [aria-current] { color: var(--mt-fg); }

/* ---- 共通の枠 ---- */
.mt-wrap { width: 100%; max-width: 1080px; margin: 0 auto; }
.mt-wrap--narrow { max-width: 820px; }
.mt-block { position: relative; z-index: 1; padding: clamp(52px, 8vw, 104px) var(--mt-gutter); }
.mt-block + .mt-block { padding-top: clamp(20px, 3vw, 40px); }
.mt-h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 800; line-height: 1.35; }

/* ヘッダーのメニュー：いまいるページの印 */
.mt-nav a[aria-current="page"] .mt-gl, .mt-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--mt-soft); }
.mt-nav a.cta[aria-current="page"], .mt-nav a.cta[aria-current="page"] .mt-gl { text-decoration: none; }
.mt-menu a[aria-current="page"] { color: var(--mt-soft); }

/* ---- 代表のあいさつ ---- */
.mt-greet { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.mt-prose { font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 2.1; letter-spacing: .03em; color: var(--mt-dim); }
.mt-prose p + p { margin-top: 1.6em; }
.mt-prose h2 { margin: 2.6em 0 .8em; padding-left: 18px; border-left: 3px solid var(--mt-brand); font-size: clamp(21px, 2.3vw, 29px); font-weight: 800; line-height: 1.5; color: var(--mt-fg); }
.mt-prose h3 { margin: 2em 0 .6em; font-size: 18px; font-weight: 800; color: var(--mt-fg); }
.mt-prose ul { margin: 1.4em 0; }
.mt-prose li { position: relative; padding-left: 1.5em; }
.mt-prose li::before { content: ""; position: absolute; left: .35em; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--mt-soft); }
.mt-prose blockquote { margin: 2em 0; padding: 22px 28px; border-left: 3px solid var(--mt-soft); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .05); color: var(--mt-fg); }
.mt-prose figure { margin: 2.4em 0; }
.mt-prose figure img { display: block; width: 100%; border-radius: 10px; }
.mt-prose figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--mt-dim); }
.mt-prose a { color: var(--mt-soft); text-underline-offset: 4px; }
.mt-sign { margin-top: 34px; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--mt-fg); }

/* ---- 会社概要（項目と内容の表） ---- */
.mt-dl { margin-top: 36px; }
.mt-dl-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--mt-line); }
.mt-dl-row:last-child { border-bottom: 1px solid var(--mt-line); }
.mt-dl dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--mt-soft); padding-top: 3px; }
.mt-dl dd { font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 2; letter-spacing: .04em; }
.mt-dl dd small { font-size: .8em; color: var(--mt-dim); }
.mt-dl dd a { color: var(--mt-soft); text-underline-offset: 4px; }

/* ---- お知らせ一覧 ---- */
.mt-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 36px); }
.mt-articles .mt-news-item { flex: none; padding: 0; border: 0; scroll-snap-align: none; }
.mt-articles .mt-news-meta { margin-top: 22px; }
.mt-articles .mt-news-name { margin-bottom: 0; }
.mt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(48px, 7vw, 84px); }
.mt-pager > a, .mt-pager > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--mt-line); border-radius: 50%; font-size: 14px; font-weight: 700; text-decoration: none; text-shadow: none; }
.mt-pager > a:hover { border-color: var(--mt-soft); }
.mt-pager .is-current { background: var(--mt-fg); border-color: var(--mt-fg); color: var(--mt-btn-fg); }

/* ---- お知らせ詳細 ---- */
.mt-art-meta { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--mt-soft); }
.mt-art-meta .mt-cat { padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; }
.mt-art-thumb { margin: 0 0 clamp(36px, 5vw, 60px); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #6b2fa0, #2a0f4f); }
.mt-art-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.mt-pn a { display: block; padding: 26px 30px; border: 1px solid var(--mt-line); border-radius: 14px; text-decoration: none; text-shadow: none; transition: background .25s, border-color .25s; }
.mt-pn a:hover { background: rgba(255, 255, 255, .05); border-color: var(--mt-soft); }
.mt-pn small { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .25em; color: var(--mt-soft); }
.mt-pn .next { text-align: right; }
.mt-pn-title { font-size: 15px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; }
.mt-back { display: flex; justify-content: center; margin-top: 48px; }

/* ---- フォーム（お問い合わせ・資料請求） ---- */
.mt-split { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mt-info { position: sticky; top: 120px; }
.mt-info h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.5; }
.mt-info dl { margin-top: 26px; }
.mt-info dt { margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: .25em; color: var(--mt-soft); }
.mt-info dd { margin-top: 6px; font-size: 14px; line-height: 1.9; letter-spacing: .04em; color: var(--mt-dim); }
.mt-info a { color: var(--mt-soft); text-underline-offset: 4px; }
.mt-form { display: grid; gap: 28px; }
.mt-field { display: grid; gap: 10px; }
.mt-field > label, .mt-legend { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.mt-req, .mt-opt { padding: 2px 9px; border-radius: 999px; font-size: 10px; letter-spacing: .1em; color: #fff; }
.mt-req { background: var(--mt-brand); }
.mt-opt { border: 1px solid var(--mt-line); color: var(--mt-dim); }
.mt-story :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  width: 100%; padding: 15px 18px; border: 1px solid var(--mt-line); border-radius: 10px; outline: none; background: rgba(255, 255, 255, .06); color: var(--mt-fg);
  font: inherit; font-size: 16px; letter-spacing: .04em; text-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.mt-story :is(input, select, textarea)::placeholder { color: rgba(244, 238, 251, .38); }
.mt-story :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):focus { border-color: var(--mt-soft); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(138, 63, 196, .38); }
.mt-story :is(input, select, textarea):user-invalid { border-color: #ff6b9d; }
.mt-story textarea { min-height: 220px; resize: vertical; line-height: 1.9; }
.mt-story select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d9a8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px; }
.mt-story select option { color: #1b0a29; background: #fff; }
.mt-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mt-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.8; letter-spacing: .04em; cursor: pointer; }
.mt-chips .mt-check { padding: 14px 16px; border: 1px solid var(--mt-line); border-radius: 10px; background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s; }
.mt-chips .mt-check:has(input:checked) { border-color: var(--mt-soft); background: rgba(138, 63, 196, .22); }
.mt-check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 3px 0 0; border: 1.5px solid var(--mt-dim); border-radius: 5px; background: transparent; cursor: pointer; }
.mt-check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.mt-check input:checked { background: var(--mt-brand); border-color: var(--mt-brand); }
.mt-check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.mt-check input:focus-visible { outline: 2px solid var(--mt-soft); outline-offset: 2px; }
.mt-check a { color: var(--mt-soft); text-underline-offset: 4px; }
.mt-hint { font-size: 12px; line-height: 1.8; letter-spacing: .04em; color: var(--mt-dim); }
.mt-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mt-story button.mt-btn { border: 0; cursor: pointer; font-family: inherit; margin-top: 0; }
.mt-form-note { min-height: 1.8em; font-size: 13px; line-height: 1.8; letter-spacing: .05em; color: var(--mt-soft); }

/* ---- お問い合わせ・資料請求の帯（下層ページの下） ---- */
.mt-cta { text-align: center; }
.mt-cta .mt-btns { margin-top: 32px; }

/* ---- プライバシーポリシー ---- */
.mt-policy { counter-reset: pol; }
.mt-policy h2::before { counter-increment: pol; content: counter(pol, decimal-leading-zero); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .25em; color: var(--mt-soft); }
.mt-policy h2 { margin-top: 2.2em; }
.mt-sample { margin-bottom: 36px; padding: 14px 18px; border: 1px dashed var(--mt-line); border-radius: 10px; font-size: 12px; line-height: 1.8; letter-spacing: .05em; color: var(--mt-dim); }

/* 下層ページの文字出現（トップのヒーローほど待たせない） */
.mt-subhero .mt-rv { transition-delay: .2s; }
.mt-subhero .mt-rv.d1 { transition-delay: .35s; }
.mt-subhero .mt-rv.d2 { transition-delay: .5s; }

@media (max-width: 990px) {
  .mt-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-split { grid-template-columns: 1fr; }
  .mt-info { position: static; }
}
@media (max-width: 768px) {
  .mt-greet { grid-template-columns: 1fr; gap: 20px; }
  .mt-dl-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .mt-articles { grid-template-columns: 1fr; }
  .mt-pn { grid-template-columns: 1fr; }
  .mt-pn .next { text-align: left; }
  .mt-subhero { min-height: 46vh; padding-top: 130px; }
}

/* =====================================================================
   文字の出現演出：ノイズ → 読める文字（全ページ共通）
   JS（splitText / decodeText）が、文字を .mt-ch に分けて .mt-dec を付け、各文字に is-noise（ノイズ中）→ is-done（確定）を付ける。
   --i = 何文字目か、--step = 1文字ごとの遅れ、--d = 要素ごとの開始の遅れ。見出しはゆっくり、本文（.mt-dec--body）は短く確定する。
   ===================================================================== */
.mt-dec { --d: 0s; --step: .05s; position: relative; }   /* position: relative は、見えない読み上げ用要素（.mt-sr）の位置の基準 */
.mt-dec.d1 { --d: .12s; } .mt-dec.d2 { --d: .24s; } .mt-dec.d3 { --d: .36s; }
.mt-sec--hero .mt-dec { --d: 1.4s; }
.mt-sec--hero .mt-dec.d1 { --d: 1.9s; } .mt-sec--hero .mt-dec.d2 { --d: 2.4s; }
.mt-subhero .mt-dec { --d: .2s; } .mt-subhero .mt-dec.d1 { --d: .35s; } .mt-subhero .mt-dec.d2 { --d: .5s; }
/* 要素全体は、ふわっと動かさない（変化するのは1文字ずつ） */
.mt-story .mt-rv.mt-dec, .mt-story .mt-sec--hero .mt-rv.mt-dec, .mt-story:not(.mt-ready) .mt-sec--hero .mt-rv.mt-dec { opacity: 1; transform: none; transition: none; }
.mt-wd { white-space: nowrap; }
.mt-ch { display: inline-block; opacity: 0; }
a.mt-ch { display: inline; }
.mt-ch.is-noise, .mt-ch.is-done { opacity: 1; }
.mt-ch.is-noise { --ns: calc(1.5px + .03em); text-align: center; overflow: visible; white-space: nowrap; color: var(--mt-fg); animation: mt-noise .14s steps(1, end) infinite;
                  text-shadow: var(--ns) 0 rgba(255, 47, 135, .9), calc(var(--ns) * -1) 0 rgba(39, 225, 255, .9); }
.mt-ch.is-done { animation: mt-settle .38s steps(1, end) backwards; }
@keyframes mt-noise {
  0%   { transform: translate(0, 0); opacity: 1; }
  20%  { transform: translate(calc(var(--ns) * -1), 1px) skewX(-8deg); opacity: .85; }
  40%  { transform: translate(var(--ns), -1px); opacity: 1; }
  60%  { transform: translate(calc(var(--ns) * -.7), 0) skewX(6deg); opacity: .7; }
  80%  { transform: translate(calc(var(--ns) * .7), 1px); opacity: 1; }
}
@keyframes mt-settle {   /* 確定した直後だけ、一瞬ちらついて静止（終わった後は、元の文字の見た目に戻る） */
  0%   { transform: translateX(-2px); text-shadow: 2px 0 rgba(255, 47, 135, .9), -2px 0 rgba(39, 225, 255, .9); }
  34%  { transform: translateX(1.5px); text-shadow: -2px 0 rgba(255, 47, 135, .8), 2px 0 rgba(39, 225, 255, .8); }
  67%  { transform: translateX(-1px); text-shadow: none; }
  100% { transform: none; text-shadow: none; }
}
.mt-dec--body .mt-ch.is-done { animation-duration: .24s; }
/* スクリーンリーダー用に残す元の文章（見えない） */
.mt-sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .mt-ch { opacity: 1; }
  .mt-ch.is-noise, .mt-ch.is-done { animation: none; }
}

/* =====================================================================
   メニューを開いたときのノイズ（JS runMenuNoise が .is-scr を付ける）
   ===================================================================== */
.mt-menu .is-scr { --ns: calc(1.5px + .03em); display: inline-block; white-space: nowrap; color: var(--mt-fg); animation: mt-noise .14s steps(1, end) infinite;
                   text-shadow: var(--ns) 0 rgba(255, 47, 135, .9), calc(var(--ns) * -1) 0 rgba(39, 225, 255, .9); }
.mt-menu .mt-menu-foot.is-scr { display: block; white-space: normal; }
@media (prefers-reduced-motion: reduce) { .mt-menu .is-scr { animation: none; } }

/* =====================================================================
   ページ遷移：ノイズの帯が画面を覆い、次のページで抜けていく（JS 「ページ遷移」）
   .is-on = 表示 / .is-cover = 帯が画面を覆う / .is-exit = 帯が反対側へ抜ける / .is-block = クリックを受け付けない / .no-tr = 動かさず即座に切り替える
   ===================================================================== */
.mt-curtain { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; visibility: hidden; pointer-events: none; --trs: 1; }
.mt-curtain.is-on { visibility: visible; }
.mt-curtain.is-block { pointer-events: auto; }
.mt-bar { position: relative; flex: 1 1 0; overflow: hidden; }
.mt-bar > i { position: absolute; inset: 0; background: linear-gradient(90deg, #1d0b36, #0a0514 55%, #14081f); transform: translateX(var(--from));
              transition: transform calc(.33s * var(--trs)) cubic-bezier(.7, 0, .2, 1); transition-delay: var(--dl, 0ms); will-change: transform; }
/* 帯の両端：ピンクとシアンのノイズの縁（帯が画面を覆いきると、枠の外に出て見えなくなる） */
.mt-bar > i::before, .mt-bar > i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; }
.mt-bar > i::before { left: -8px;  background: linear-gradient(90deg, #27e1ff 0 4px, #ff2f87 4px 8px); }
.mt-bar > i::after  { right: -8px; background: linear-gradient(90deg, #ff2f87 0 4px, #27e1ff 4px 8px); }
.mt-curtain.is-cover > .mt-bar > i { transform: none; }
.mt-curtain.is-exit > .mt-bar > i { transform: translateX(calc(var(--from) * -1)); }
.mt-curtain.no-tr > .mt-bar > i, .mt-curtain.no-tr .mt-curtain-logo { transition: none !important; }
.mt-curtain-logo { position: absolute; left: 50%; top: 50%; width: 92px; margin: -39px 0 0 -46px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.mt-curtain.is-cover .mt-curtain-logo { opacity: 1; transition: opacity .1s calc(.26s * var(--trs)); animation: mt-curtain-logo .5s steps(1, end) infinite; }
@keyframes mt-curtain-logo {
  0%   { transform: translate(0, 0);       filter: drop-shadow(4px 0 0 rgba(255, 47, 135, .85)) drop-shadow(-4px 0 0 rgba(39, 225, 255, .85)); }
  16%  { transform: translate(-5px, 1px);  filter: drop-shadow(-3px 0 0 rgba(255, 47, 135, .85)) drop-shadow(3px 0 0 rgba(39, 225, 255, .85)); }
  33%  { transform: translate(3px, -1px);  filter: none; }
  50%  { transform: translate(0, 0);       filter: drop-shadow(2px 0 0 rgba(255, 47, 135, .85)) drop-shadow(-2px 0 0 rgba(39, 225, 255, .85)); }
  66%  { transform: translate(5px, 0);     filter: drop-shadow(-4px 0 0 rgba(255, 47, 135, .85)) drop-shadow(4px 0 0 rgba(39, 225, 255, .85)); }
  83%  { transform: translate(-2px, 1px);  filter: none; }
}
/* 次のページの読み込み開始から、帯に引き継ぐまでの応急の覆い（<head> の小さなスクリプトが html.mt-enter を付ける）。JS が動かない場合は、3秒後に自動で外れる */
html.mt-enter::before { content: ""; position: fixed; inset: 0; z-index: 199; background: #0a0514; animation: mt-enter-fallback 0s 3s forwards; }
@keyframes mt-enter-fallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .mt-curtain { display: none; } html.mt-enter::before { display: none; } }

/* =====================================================================
   WordPress 用の追加
   ===================================================================== */
html, body { margin: 0; background: #07040d; }

/* ログイン中の管理バー（画面の上に32px／スマホは46px）に、固定ヘッダーが隠れないように */
.admin-bar .mt-header { top: 32px; }
.admin-bar .mt-menu { padding-top: 142px; }
@media (max-width: 782px) { .admin-bar .mt-header { top: 46px; } .admin-bar .mt-menu { padding-top: 156px; } }

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 投稿・固定ページの本文（編集画面で書いたもの）：画像・位置揃え・表・コード */
.mt-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.mt-prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.mt-prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.mt-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mt-prose .wp-caption, .mt-prose .wp-block-image { max-width: 100%; margin: 2.2em 0; }
.mt-prose .wp-caption-text, .mt-prose figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--mt-dim); }
.mt-prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .95em; }
.mt-prose th, .mt-prose td { padding: 14px 16px; border-bottom: 1px solid var(--mt-line); text-align: left; vertical-align: top; }
.mt-prose th { color: var(--mt-soft); font-weight: 700; white-space: nowrap; }
.mt-prose ol { margin: 1.4em 0; padding-left: 1.6em; list-style: decimal; }
.mt-prose hr { border: 0; border-top: 1px solid var(--mt-line); margin: 2.4em 0; }
.mt-prose::after { content: ""; display: block; clear: both; }
.mt-prose > :first-child { margin-top: 0; }

/* ページ送り：paginate_links の出力（現在のページ = .is-current、省略 = .dots） */
.mt-pager .dots { border-color: transparent; }

/* フォーム（お問い合わせ・資料請求）。Contact Form 7 などのプラグインが出力する部品を、デザインに合わせる */
.mt-formbox { display: grid; gap: 4px; min-width: 0; }
.mt-formbox > p, .mt-formbox .wpcf7 form p { margin: 0 0 26px; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.9; }
.mt-formbox .wpcf7-form-control-wrap { display: block; margin-top: 10px; }
.mt-formbox label { font-weight: 700; letter-spacing: .08em; }
.mt-story .mt-formbox :is(input[type="url"], input[type="number"], input[type="date"], input[type="password"]) {
  width: 100%; padding: 15px 18px; border: 1px solid var(--mt-line); border-radius: 10px; outline: none; background: rgba(255, 255, 255, .06); color: var(--mt-fg);
  font: inherit; font-size: 16px; letter-spacing: .04em; text-shadow: none; }
.mt-formbox .wpcf7-list-item { display: block; margin: 0 0 10px; }
.mt-formbox .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; letter-spacing: .04em; cursor: pointer; }
.mt-formbox input[type="checkbox"], .mt-formbox input[type="radio"] { width: 18px; height: 18px; margin-top: 4px; accent-color: #8a3fc4; flex: none; }
.mt-formbox .wpcf7-acceptance a, .mt-formbox a { color: var(--mt-soft); text-underline-offset: 4px; }
.mt-story .mt-formbox :is(.wpcf7-submit, input[type="submit"], button[type="submit"]) {
  display: inline-block; width: auto; padding: 18px 44px; border: 0; border-radius: 999px; background: var(--mt-fg); color: var(--mt-btn-fg); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-shadow: none; transition: transform .3s, background .3s; }
.mt-story .mt-formbox :is(.wpcf7-submit, input[type="submit"], button[type="submit"]):hover { transform: translateY(-3px); background: var(--mt-soft); }
.mt-formbox .wpcf7-spinner { margin: 0 0 0 12px; }
.mt-formbox .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: #ff9fc0; }
.mt-formbox .wpcf7 form .wpcf7-response-output { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--mt-line); border-radius: 10px; font-size: 13px; line-height: 1.8; }
.mt-formbox .wpcf7 form.sent .wpcf7-response-output { border-color: #27e1ff; }
.mt-formbox .wpcf7 form.invalid .wpcf7-response-output, .mt-formbox .wpcf7 form.failed .wpcf7-response-output, .mt-formbox .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #ff6b9d; }

/* 送信完了ページ（/thanks_1, /thanks_2 など）：文章を中央に、ボタンを下に */
.mt-thanks .mt-prose { text-align: center; }
.mt-thanks .mt-prose li { text-align: left; }
.mt-thanks .mt-btns { margin-top: 44px; }

/* フォームのチェックボックス・ラジオ：反転した画面でも、色が崩れない自前のデザイン */
.mt-formbox input[type="checkbox"], .mt-formbox input[type="radio"] {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 3px 0 0;
  border: 1.5px solid var(--mt-dim); background: transparent; cursor: pointer; vertical-align: middle; }
.mt-formbox input[type="checkbox"] { border-radius: 5px; }
.mt-formbox input[type="radio"] { border-radius: 50%; }
.mt-formbox input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.mt-formbox input[type="radio"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.mt-formbox input[type="checkbox"]:checked, .mt-formbox input[type="radio"]:checked { background: var(--mt-brand); border-color: var(--mt-brand); }
.mt-formbox input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.mt-formbox input[type="radio"]:checked::after { transform: scale(1); }
.mt-formbox input[type="checkbox"]:focus-visible, .mt-formbox input[type="radio"]:focus-visible { outline: 2px solid var(--mt-soft); outline-offset: 2px; }

/* =====================================================================
   アクセス：本社は分割せず大きく、営業所は開閉式のカード（parts/mt-access.php）
   ===================================================================== */
.mt-place-tag { font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--mt-soft); margin-bottom: 14px; }

/* 本社：左に住所、右に大きな地図 */
.mt-place--hq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.mt-place--hq .mt-place-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mt-place--hq h3 { font-size: clamp(19px, 2vw, 26px); }
.mt-place--hq p { margin-top: 14px; }
.mt-place--hq .mt-map { margin-top: 0; aspect-ratio: auto; min-height: clamp(280px, 30vw, 380px); }
.mt-place--hq .mt-map iframe { min-height: inherit; }

/* 営業所：見出し */
.mt-branches-head { display: flex; align-items: center; gap: 18px; margin: clamp(44px, 6vw, 72px) 0 20px; }
.mt-branches-head .mt-place-tag { margin: 0; }
.mt-branches-head .mt-branches-ja { font-size: 13px; letter-spacing: .2em; color: var(--mt-dim); }
.mt-branches-head::after { content: ""; flex: 1; border-top: 1px solid var(--mt-line); }

/* 営業所：カード（住所は常に見え、「地図を見る」で、カードの中に地図が開く） */
.mt-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mt-branch { border: 1px solid var(--mt-line); border-radius: 14px; background: color-mix(in srgb, var(--mt-bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
             transition: border-color .25s, background .25s; }
.mt-branch:hover, .mt-branch[open] { border-color: var(--mt-soft); }
.mt-branch > summary { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 22px 20px; cursor: pointer; }
.mt-branch > summary::-webkit-details-marker { display: none; }
.mt-branch > summary:focus-visible { outline: 2px solid var(--mt-soft); outline-offset: -2px; border-radius: 14px; }
.mt-branch-no { font-size: 11px; font-weight: 700; letter-spacing: .25em; color: var(--mt-soft); }
.mt-branch-name { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; letter-spacing: .04em; margin: 0; }
.mt-branch-addr { display: block; margin-top: 4px; min-height: 3.8em; font-size: 13.5px; line-height: 1.9; letter-spacing: .03em; color: var(--mt-dim); }   /* 住所が1行でも2行でも、カードの高さをそろえる */
.mt-branch-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 16px 8px 14px; border: 1px solid var(--mt-line); border-radius: 999px; font-size: 12px; letter-spacing: .12em; transition: background .25s, border-color .25s; }
.mt-branch:hover .mt-branch-toggle { background: rgba(255, 255, 255, .06); border-color: var(--mt-soft); }
.mt-branch-toggle i { position: relative; width: 10px; height: 10px; flex: none; }
.mt-branch-toggle i::before, .mt-branch-toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.mt-branch-toggle i::after { transform: rotate(90deg); }
.mt-branch[open] .mt-branch-toggle i::after { transform: rotate(0deg); }
.mt-branch-toggle .c, .mt-branch[open] .mt-branch-toggle .o { display: none; }
.mt-branch[open] .mt-branch-toggle .c { display: inline; }
.mt-branch-body { padding: 0 22px 22px; animation: mt-branch-open .35s cubic-bezier(.2, .7, .2, 1); }
.mt-branch-body .mt-map { margin-top: 0; aspect-ratio: 4 / 3; }
.mt-branch-body .mt-more { margin-top: 16px; }
@keyframes mt-branch-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 990px) { .mt-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .mt-place--hq { grid-template-columns: 1fr; gap: 24px; }
  .mt-place--hq .mt-map { min-height: 240px; }
  .mt-branches { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mt-branch-body { animation: none; } }

/* 営業所のスライダー（PC・スマホ共通）。カードを「円柱（ドラム）」のように並べて、くるっと回す。中央のカードの左右に、隣のカードがのぞき、3の次は1へ戻る。
   位置・角度・濃さは、js「営業所のスライダー」が、カードごとに transform / opacity を直接入れる（中央からの距離に応じて）。
   カードは同じマス（grid-area: 1 / 1）に重ねているので、高さは一番高いカードに自動でそろう。 */
.mt-slider-ui { display: none; }
.mt-branches.is-slider { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: stretch; position: relative; margin: 0 calc(-1 * var(--mt-gutter)); padding: 6px 0; overflow: hidden; perspective: 900px; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline: none; cursor: grab; }
.mt-branches.is-slider.is-drag { cursor: grabbing; }
.mt-branches.is-slider:focus-visible { outline: 1px solid rgba(217, 168, 255, .4); outline-offset: -1px; border-radius: 14px; }
.mt-branches.is-slider > .mt-branch { grid-area: 1 / 1; justify-self: center; position: relative; width: 76%; min-width: 0; will-change: transform, opacity;
                                       background: rgba(12, 7, 22, .94); -webkit-backdrop-filter: none; backdrop-filter: none; transition: border-color .4s; }
.mt-branches.is-slider > .mt-branch.is-active { border-color: var(--mt-soft); }
/* 裏側に回ったカード：中身（文字・地図）を隠して、背面のパネル（斜線の模様）にする。向きが反転して鏡文字になるのを避ける */
.mt-branches.is-slider > .mt-branch.is-back > * { opacity: 0; }                                  /* visibility だと、地図の部品が内側から上書きして透けるため、透明度で隠す */
.mt-branches.is-slider > .mt-branch.is-back::before { opacity: .55; animation: none; mix-blend-mode: normal; background: var(--mt-back-logo, none) center / 24% auto no-repeat; }   /* 背面には、ロゴマークをうっすら */
.mt-branches.is-slider > .mt-branch.is-back { border-color: rgba(185, 140, 245, .34); background: repeating-linear-gradient(135deg, rgba(185, 140, 245, .09) 0 2px, transparent 2px 15px), linear-gradient(160deg, rgba(48, 24, 84, .92), rgba(10, 6, 20, .96)); }
.mt-branches.is-slider > .mt-branch:not(.is-active) * { pointer-events: none; }                 /* 左右のカードは、タップで中央へ（中の地図やリンクは触れない） */
.mt-branches.is-slider img { -webkit-user-drag: none; }
.mt-branches.is-slider .mt-branch > summary { padding: 26px 22px 18px; cursor: inherit; pointer-events: none; }
.mt-branches.is-slider .mt-branch-toggle { display: none; }
.mt-branches.is-slider .mt-branch-name { padding-right: 84px; }
.mt-branches.is-slider .mt-branch-no { position: absolute; right: 20px; top: 12px; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(185, 140, 245, .55); }
.mt-branches.is-slider .mt-branch-no::after { content: "/" attr(data-total); margin-left: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mt-dim); -webkit-text-stroke: 0; }
.mt-branches.is-slider .mt-branch-body { animation: none; padding-bottom: 20px; }
.mt-branches.is-slider .mt-map .maplibregl-canvas-container, .mt-branches.is-slider .mt-map .maplibregl-canvas { touch-action: pan-y !important; }   /* 横のドラッグは、ブラウザに取られず、スライダーが受け取る（縦はページのスクロール） */

.mt-slider-ui:not([hidden]) { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mt-sl-arrow { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--mt-line); background: rgba(255, 255, 255, .05); color: var(--mt-fg); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .25s, border-color .25s, transform .2s; }
.mt-sl-arrow:active { transform: scale(.92); background: var(--mt-brand); border-color: var(--mt-brand); }
.mt-sl-arrow svg { width: 16px; height: 16px; display: block; }
.mt-sl-tabs { position: relative; flex: 1; min-width: 0; display: flex; padding: 4px; overflow: hidden; border: 1px solid var(--mt-line); border-radius: 999px; background: rgba(9, 5, 18, .55); }
.mt-sl-ind { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 999px; background: linear-gradient(135deg, #9a4fd8, #5b2c9c); box-shadow: inset 0 0 14px rgba(217, 168, 255, .35); transform: translateX(calc(var(--sp, 0) * 100%)); will-change: transform; }
.mt-sl-ind--b { transform: translateX(calc((var(--sp, 0) - var(--n, 3)) * 100%)); }              /* 3の次は1へ：右へ抜けたつまみが、左から戻ってくる */
.mt-sl-tab { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 10px 0; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; color: var(--mt-dim); background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .3s; }
.mt-sl-tab small { font-size: 9.5px; letter-spacing: .12em; margin-right: 5px; opacity: .7; }
.mt-sl-tab[aria-selected="true"] { color: #fff; }

@media (pointer: coarse), (max-width: 768px) {
  .mt-branches.is-slider .mt-map .maplibregl-cooperative-gesture-screen { display: none !important; }   /* 1本指のドラッグはスライダーに渡す（地図は2本指・＋−ボタンで操作） */
}
@media (hover: hover) {
  .mt-sl-arrow:hover { background: rgba(255, 255, 255, .12); border-color: var(--mt-soft); }
  .mt-sl-tab:hover { color: #fff; }
}
/* PC：カードを大きく。左右の隣のカードも、ほぼ全体が見える（円柱が深く、くっきり見えるよう、遠近を弱める） */
@media (min-width: 769px) {
  .mt-branches.is-slider { perspective: 1500px; padding: 12px 0; }
  .mt-branches.is-slider > .mt-branch { width: min(460px, 76%); }
  .mt-branches.is-slider .mt-branch > summary { padding: 30px 28px 20px; }
  .mt-branches.is-slider .mt-branch-name { font-size: 22px; padding-right: 110px; }
  .mt-branches.is-slider .mt-branch-addr { font-size: 14.5px; }
  .mt-branches.is-slider .mt-branch-no { right: 26px; top: 14px; font-size: 58px; }
  .mt-branches.is-slider .mt-branch-body { padding: 0 28px 28px; }
  .mt-branches.is-slider .mt-branch-body .mt-map { aspect-ratio: 3 / 2; }
  .mt-slider-ui:not([hidden]) { max-width: 540px; margin: 24px auto 0; }
}

/* 営業所のスライダー：回転中のノイズ。回る速さ（--nz：0〜1。JSが入れる）に応じて強まり、止まると消える。
   ・文字：ランダムな文字に化けて、止まると左から順に読める文字へ戻る（JS。色ずれは .mt-ch.is-noise の共通の見た目）
   ・カード：ピンクとシアンの帯が横にずれて走る／中身が左右に震える／薄い砂嵐（お知らせ画像のノイズと同じ動き）。「視差を減らす」設定の人には出さない */
@media (prefers-reduced-motion: no-preference) {
  .mt-branches.is-slider > .mt-branch { overflow: hidden; }
  .mt-branches.is-slider > .mt-branch::before, .mt-branches.is-slider > .mt-branch::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
  .mt-branches.is-slider > .mt-branch::before { background: rgba(255, 47, 135, .26); }
  .mt-branches.is-slider > .mt-branch::after { background: rgba(39, 225, 255, .22); }
  .mt-branches.is-slider.is-noisy > .mt-branch:not(.is-back)::before { opacity: calc(var(--nz, 0) * 1.15); animation: mt-img-sliceA .44s steps(1, end) infinite; }
  .mt-branches.is-slider.is-noisy > .mt-branch:not(.is-back)::after { opacity: calc(var(--nz, 0) * 1.15); animation: mt-img-sliceB .36s steps(1, end) infinite; }
  .mt-branches.is-slider.is-noisy > .mt-branch > summary, .mt-branches.is-slider.is-noisy > .mt-branch > .mt-branch-body { animation: mt-sl-jit .42s steps(1, end) infinite; }
  .mt-branches.is-slider.is-noisy .mt-branch-no { filter: drop-shadow(calc(var(--nz, 0) * 3px) 0 rgba(255, 47, 135, .9)) drop-shadow(calc(var(--nz, 0) * -3px) 0 rgba(39, 225, 255, .9)); }
  .mt-branches.is-slider::after { content: ""; position: absolute; inset: 0; z-index: 100; pointer-events: none; opacity: 0; mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.5 -.62'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"), repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }   /* 砂嵐の四辺は、境目が見えないようにフェード */
  .mt-branches.is-slider.is-noisy::after { opacity: calc(var(--nz, 0) * .42); animation: mt-sl-static .2s steps(1, end) infinite; }
  .mt-slider-ui.is-noisy .mt-sl-tab[aria-selected="true"] { text-shadow: calc(var(--nz, 0) * 2.5px) 0 rgba(255, 47, 135, .9), calc(var(--nz, 0) * -2.5px) 0 rgba(39, 225, 255, .9); }
  .mt-slider-ui.is-noisy .mt-sl-ind { filter: drop-shadow(calc(var(--nz, 0) * 3px) 0 rgba(255, 47, 135, .7)) drop-shadow(calc(var(--nz, 0) * -3px) 0 rgba(39, 225, 255, .7)); }
}
@keyframes mt-sl-jit {
  0%   { transform: translateX(0); }
  11%  { transform: translateX(calc(var(--nz, 0) * -7px)); }
  22%  { transform: translateX(calc(var(--nz, 0) * 6px)); }
  33%  { transform: translateX(0); }
  47%  { transform: translateX(calc(var(--nz, 0) * 8px)); }
  58%  { transform: translateX(calc(var(--nz, 0) * -4px)); }
  70%  { transform: translateX(0); }
  82%  { transform: translateX(calc(var(--nz, 0) * -6px)); }
  91%  { transform: translateX(calc(var(--nz, 0) * 5px)); }
}
@keyframes mt-sl-static {
  0%   { background-position: 0 0, 0 0; }
  20%  { background-position: -41px 23px, 0 1px; }
  40%  { background-position: 27px -57px, 0 2px; }
  60%  { background-position: -73px -12px, 0 0; }
  80%  { background-position: 52px 66px, 0 1px; }
}

/* =====================================================================
   アクセスの地図（ブランド色の地図：MapLibre + OpenFreeMap。js「アクセスの地図」）
   ===================================================================== */
.mt-map { position: relative; }
.mt-map .mt-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #090512; }   /* 地図ライブラリの標準CSS（position: relative）に負けないよう、.mt-map を付けて強める */
.mt-map.is-fallback .mt-map-canvas { display: none; }
.mt-map:not(.is-ready):not(.is-fallback) .mt-map-canvas::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid rgba(217, 168, 255, .25); border-top-color: var(--mt-soft); border-radius: 50%; animation: mt-spin-map .9s linear infinite; }
@keyframes mt-spin-map { to { transform: rotate(360deg); } }
.mt-map .maplibregl-canvas { outline: none; }
.mt-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(9, 5, 18, .75); border-radius: inherit; }   /* 周囲をなじませる */
.mt-map iframe { position: absolute; inset: 0; }

/* 地図の部品（ズームボタン・クレジット・操作の案内）を、ダークな配色に */
.mt-map .maplibregl-ctrl-group { background: rgba(20, 12, 36, .88); border: 1px solid var(--mt-line); border-radius: 10px; box-shadow: none; overflow: hidden; }
.mt-map .maplibregl-ctrl-group button { width: 34px; height: 34px; border-color: var(--mt-line); }
.mt-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--mt-line); }
.mt-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.1); }
.mt-map .maplibregl-ctrl-group button:hover { background: rgba(138, 63, 196, .35); }
.mt-map .maplibregl-ctrl-attrib, .mt-map .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(9, 5, 18, .78); color: #9a84d0; font-size: 10px; border-radius: 8px; margin: 0 8px 8px 0; box-shadow: none; }
.mt-map .maplibregl-ctrl-attrib.maplibregl-compact-show { background: rgba(9, 5, 18, .92); }
.mt-map .maplibregl-ctrl-attrib-inner { line-height: 1.6; }
.mt-map .maplibregl-ctrl-attrib a { color: #cbb8ff; }
.mt-map .maplibregl-ctrl-attrib-button { background-color: transparent; filter: invert(1); opacity: .8; }
.mt-map .maplibregl-cooperative-gesture-screen { background: rgba(9, 5, 18, .78); font: 700 13px/1.7 var(--mt-font, inherit); letter-spacing: .06em; }

/* ELSYSのロゴ入りのピン。マーカーの「下端中央」＝ピンの先端＝地図上の座標。名前のラベルは、位置に影響しないよう、下に浮かせてある */
.mt-pinmk { position: relative; width: 46px; height: 58px; pointer-events: none; }
.mt-pinmk-dot { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a2a86, #1b0f38 70%);
                border: 2px solid #b98cf5; box-shadow: 0 0 0 4px rgba(138, 63, 196, .28), 0 10px 26px rgba(0, 0, 0, .55), 0 0 24px rgba(138, 63, 196, .6); }
.mt-pinmk-dot img { width: 24px; height: auto; display: block; }
.mt-pinmk-dot::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; margin-left: -6px; background: #1b0f38; border-right: 2px solid #b98cf5; border-bottom: 2px solid #b98cf5; transform: rotate(45deg); z-index: -1; }
.mt-pinmk-ring { position: absolute; left: 50%; bottom: -4px; width: 20px; height: 8px; margin-left: -10px; border-radius: 50%; border: 2px solid rgba(185, 140, 245, .8); animation: mt-pin-ring 2.4s ease-out infinite; }
@keyframes mt-pin-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(3.6); opacity: 0; } }
.mt-pinmk-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(9, 5, 18, .88); border: 1px solid var(--mt-line); color: #e8dcff;
                  font-size: 11px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; text-shadow: none; }
.mt-pinmk-label:empty { display: none; }

/* ピン位置の調整モード（URLに ?pin=edit を付けたときだけ） */
.mt-pinmk.is-edit { pointer-events: auto; cursor: grab; }
.mt-pinmk.is-edit:active { cursor: grabbing; }
.mt-pinedit { position: absolute; left: 10px; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: calc(100% - 20px); padding: 10px 12px; border-radius: 12px; background: rgba(9, 5, 18, .94); border: 1px solid var(--mt-soft);
              font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: #e8dcff; text-shadow: none; }
.mt-pinedit b { font-size: 11px; letter-spacing: .15em; color: var(--mt-soft); }
.mt-pinedit code { font: 700 13px/1.4 ui-monospace, Menlo, monospace; color: #fff; user-select: all; }
.mt-pinedit small { color: #9a84d0; font-size: 11px; }
.mt-pinedit button { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mt-line); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.mt-pinedit button:hover { background: var(--mt-brand); border-color: var(--mt-brand); }
@media (prefers-reduced-motion: reduce) { .mt-pinmk-ring { animation: none; opacity: .6; } .mt-map-canvas::after { animation: none; } }
