/* =========================================================
   S-Design Portfolio
   ========================================================= */
:root {
  --bg: #070b14;
  --bg-2: #0c1220;
  --bg-3: #131c2e;
  --ink: #e9eef5;
  --ink-2: #bcc6d4;
  --muted: #7f8a9c;
  --accent: #6ec6f5;
  --accent-2: #2f7de1;
  --silver: #cfd6e0;
  --grad: linear-gradient(120deg, #a6e4ff 0%, #5fb4f2 45%, #2563d9 100%);
  --grad-silver: linear-gradient(120deg, #f5f7fa 0%, #aeb8c6 45%, #e3e8ef 70%, #9aa5b5 100%);
  --line: rgba(214, 226, 244, 0.14);
  --line-2: rgba(214, 226, 244, 0.28);

  --serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --mincho: "Shippori Mincho", "Yu Mincho", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;

  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4.5vw, 72px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.is-locked { overflow: hidden; }


img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
i { font-style: italic; }
::selection { background: rgba(95, 180, 242, .45); color: #fff; -webkit-text-fill-color: #fff; }

.section { padding: clamp(80px, 10vw, 150px) var(--gutter); position: relative; }

/* split text helpers (JSで生成) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-char { display: inline-block; will-change: transform; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 10000;
  display: grid; place-items: center;
  pointer-events: all;
}
.loader__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg);
  z-index: -1;
}
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.loader__logo span { display: inline-block; }
.loader__logo span:nth-child(2) { color: var(--accent); margin: 0 0.05em; }
.loader__sub {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.loader__bar {
  width: min(240px, 60vw);
  height: 1px;
  margin: 28px auto 0;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-2);
}
.loader.is-done { pointer-events: none; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: transform .7s var(--ease), background-color .5s;
}
.header.is-scrolled { background: linear-gradient(to bottom, rgba(7, 11, 20, .85), rgba(7, 11, 20, 0)); }
.header.is-hidden { transform: translateY(-100%); }
.header__logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative; z-index: 2;
}
.header__logo i { color: var(--accent); font-style: normal; margin: 0 2px; }
.header__nav { display: flex; gap: 36px; margin-left: auto; }
.header__nav a {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.1em;
  position: relative;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  position: relative; z-index: 2;
  display: none; align-items: center; gap: 10px;
  height: 44px;
  padding: 0 4px;
}
.burger__text {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  overflow: hidden;
  height: 1.4em; line-height: 1.4em;
}
.burger__lines { position: relative; width: 26px; height: 9px; }
.burger__lines i {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink);
  transition: transform .6s var(--ease), top .6s var(--ease), width .6s var(--ease);
}
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 8px; width: 60%; left: auto; }
.burger:hover .burger__lines i:nth-child(2) { width: 100%; }
.is-menu-open .burger__lines i:nth-child(1) { top: 4px; transform: rotate(20deg); }
.is-menu-open .burger__lines i:nth-child(2) { top: 4px; width: 100%; transform: rotate(-20deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__nav { display: none; }
  .header__logo { font-size: 20px; }
  .burger { display: flex; }
}

/* =========================================================
   Fullscreen menu
   ========================================================= */
.menu {
  position: fixed; inset: 0;
  z-index: 800;
  visibility: hidden;
  pointer-events: none;
}
.is-menu-open .menu { visibility: visible; pointer-events: auto; }
.menu__bg {
  position: absolute; inset: 0;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
}
.is-menu-open .menu__bg { clip-path: inset(0 0 0 0); }
.menu__inner {
  position: relative;
  height: 100%;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu__list { list-style: none; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  padding: clamp(10px, 1.8vh, 22px) 0;
  transform: translateY(105%);
  transition: transform .9s var(--ease), color .4s;
}
.is-menu-open .menu__list a { transform: translateY(0); }
.is-menu-open .menu__list li:nth-child(1) a { transition-delay: .25s; }
.is-menu-open .menu__list li:nth-child(2) a { transition-delay: .31s; }
.is-menu-open .menu__list li:nth-child(3) a { transition-delay: .37s; }
.is-menu-open .menu__list li:nth-child(4) a { transition-delay: .43s; }
.is-menu-open .menu__list li:nth-child(5) a { transition-delay: .49s; }
.menu__list small { font-family: var(--serif); font-size: 12px; color: var(--accent); width: 2em; }
.menu__list span {
  font-family: var(--mincho);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.05;
  transition: transform .6s var(--ease-out), font-style .3s;
}
.menu__list em { font-style: normal; font-family: var(--mincho); font-size: 13px; color: var(--muted); margin-left: auto; letter-spacing: .2em; }
.menu__list a:hover span { font-style: italic; color: var(--silver); transform: translateX(16px); }
.menu__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .6s .6s;
}
.is-menu-open .menu__foot { opacity: 1; }
.menu__foot a { color: var(--ink); border-bottom: 1px solid var(--line-2); }

@media (min-width: 901px) { .menu { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__wall {
  position: absolute; inset: -10% -6%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  transform: rotate(-8deg) scale(1.1);
  opacity: .5;
}
.hero__col { display: flex; flex-direction: column; gap: 18px; will-change: transform; transform: translateZ(0); }
.hero__col img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top;
  border-radius: 2px;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, .92) 70%),
    linear-gradient(to bottom, rgba(7, 11, 20, .4), var(--bg) 96%);
}
.hero__content { position: relative; z-index: 2; max-width: 1200px; }
.hero__eyebrow {
  font-family: var(--mincho);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: .24em;
  color: var(--accent);
  margin-bottom: clamp(16px, 2.5vw, 32px);
}
.hero__title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 1.45;
  letter-spacing: 0.06em;
}
.hero__title .line { display: block; }
.hero__title .line--indent { padding-left: 2em; }
.hero__title i { color: var(--silver); font-weight: 300; }
.hero__lead {
  margin-top: clamp(24px, 3.5vw, 48px);
  max-width: 34em;
  font-family: var(--mincho);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 2.1;
  color: var(--ink-2);
}
.hero__lead span { display: inline-block; }
.hero__stats {
  position: relative; z-index: 2;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.hero__stats li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 4px; }
.hero__stats strong { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.hero__stats span { font-family: var(--mincho); font-size: 14px; color: var(--accent); }
.hero__stats em { grid-column: 1 / -1; font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.hero__scroll {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .3em;
  writing-mode: vertical-rl;
}
.hero__scroll i {
  display: block; width: 1px; height: 72px;
  background: var(--line-2);
  position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--grad);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}
@media (max-width: 700px) {
  .hero__wall { grid-template-columns: repeat(3, 1fr); inset: -10% -30%; }
  .hero__col:nth-child(4) { display: none; }
  .hero__title .line--indent { padding-left: 1em; }
  .hero__scroll { display: none; }
  .hero__stats { gap: 20px 28px; }
}

/* =========================================================
   Section head
   ========================================================= */
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
  margin-bottom: clamp(48px, 7vw, 104px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section__num { grid-column: 1 / -1; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 30px); color: var(--accent); letter-spacing: .2em; }
.section__title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.section__title i { color: var(--silver); }
.section__jp { font-family: var(--mincho); font-size: 14px; letter-spacing: .24em; color: var(--muted); padding-bottom: .8em; }
@media (max-width: 700px) {
  .section__head { grid-template-columns: 1fr; }
  .section__jp { padding-bottom: 0; }
}

/* =========================================================
   Selected works
   ========================================================= */
.selected__list { display: flex; flex-direction: column; gap: clamp(96px, 14vw, 200px); }
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  cursor: pointer;
}
.feature__stage {
  grid-column: 1 / 9;
  position: relative;
  padding: 0 12% 6% 0;
}
.feature__pc { padding: 0 6%; }
.feature:hover .laptop__screen img { transform: scale(1.03); }

/* laptop mock（共通） */
.laptop { position: relative; width: 100%; }
.laptop__lid {
  position: relative;
  padding: 3.2% 3.2% 4%;
  border-radius: 3.2% 3.2% 0 0 / 5% 5% 0 0;
  background: linear-gradient(180deg, #1c2333, #0b0f18);
  box-shadow: inset 0 0 0 1px rgba(214, 226, 244, .22), 0 30px 60px rgba(0, 0, 0, .45);
}
.laptop__lid::before {
  content: ""; position: absolute; top: 1.4%; left: 50%;
  width: .6%; aspect-ratio: 1; border-radius: 50%;
  background: #2b3448; transform: translateX(-50%);
}
.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
}
.laptop__screen img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 1.4s var(--ease-out);
}
.laptop--full .laptop__screen { aspect-ratio: 16 / 10; }
.laptop--full .laptop__screen img { height: auto; transition: none; }
.feature:hover .laptop--full .laptop__screen img { transform: none; }
.md__pc .laptop__screen { touch-action: pan-y; }
.laptop__base {
  position: relative;
  width: 114%; margin-left: -7%;
  height: 0; padding-bottom: 3.4%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #eef2f7 0%, #c3cbd6 35%, #8c96a6 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
}
.laptop__base::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 14%; height: 45%;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #9aa4b3, #c4ccd7);
  transform: translateX(-50%);
}

/* phone mock（共通） */
.phone {
  width: 100%;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(145deg, #e4e9f0, #8b95a5 40%, #cdd4de 70%, #6d7787);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
}
.phone__screen::before {
  content: ""; position: absolute; top: 7px; left: 50%; z-index: 2;
  width: 30%; height: 14px; border-radius: 999px;
  background: #070b14;
  transform: translateX(-50%);
}
.phone__scroll { transition: opacity .5s; }
.phone__scroll.is-rewind { opacity: 0; }
.phone__scroll img { display: block; width: 100%; height: auto; }

.feature__phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 25%;
  z-index: 2;
}
.feature__info { grid-column: 9 / 13; padding-left: 16px; }
.feature:nth-child(even) .feature__stage { grid-column: 5 / 13; order: 2; padding: 0 0 6% 12%; }
.feature:nth-child(even) .feature__info { grid-column: 1 / 5; order: 1; text-align: right; padding: 0 16px 0 0; }
.feature:nth-child(even) .feature__phone { right: auto; left: 0; }
.feature__num { font-family: var(--serif); font-size: clamp(48px, 5vw, 80px); font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(110, 198, 245, .6); }
.feature__client { margin-top: 20px; font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.feature__title { margin-top: 10px; font-family: var(--mincho); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; }
.feature__desc { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 2; }
.feature__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feature:nth-child(even) .feature__btns { justify-content: flex-end; }
.feature__more, .feature__btns .btn--site { padding: 13px 22px; font-size: 12px; }
@media (max-width: 900px) { .feature:nth-child(even) .feature__btns { justify-content: flex-start; } }
@media (max-width: 900px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature__stage, .feature:nth-child(even) .feature__stage { grid-column: 1; order: 1; padding: 0 14% 10% 0; }
  .feature__info, .feature:nth-child(even) .feature__info { grid-column: 1; order: 2; text-align: left; margin-top: 16px; padding: 0; }
  .feature__phone, .feature:nth-child(even) .feature__phone { width: 30%; right: 0; left: auto; }
  .phone { padding: 4px; border-radius: 18px; }
  .phone__screen { border-radius: 14px; }
  .phone__screen::before { height: 8px; top: 4px; }
}

/* =========================================================
   Archive grid
   ========================================================= */
.filter { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.filter__btn {
  position: relative;
  padding: 10px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: .06em;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s;
}
.filter__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.filter__btn sup { font-size: 10px; margin-left: 4px; color: var(--accent); vertical-align: super; }
.filter__btn:hover { border-color: var(--ink); }
.filter__btn.is-active { color: var(--bg); border-color: var(--ink); }
.filter__btn.is-active::before { transform: translateY(0); }
.filter__btn.is-active sup { color: #123a7a; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 36px);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid { gap: 32px 12px; }
  .card__no { display: none; }
  .card__body { padding-top: 10px; }
  .card__client { font-size: 10px; letter-spacing: .06em; }
  .card__title { font-size: 13px; }
  .card__cat { top: 8px; left: 8px; font-size: 11px; padding: 1px 8px; }
  .filter__btn { padding: 7px 14px; font-size: 12px; }
}

.card { cursor: pointer; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.card--lp .card__media, .card--hp .card__media {
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(95, 180, 242, .22), transparent 65%),
    linear-gradient(180deg, #111a2b, #0a0f1a);
}
.card .laptop { width: 80%; transform: translateY(-2%); transition: transform 1s var(--ease-out); }
.card:hover .laptop { transform: translateY(-5%) scale(1.03); }
.card__media > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), filter .8s;
  filter: brightness(.88) saturate(.92);
}
.card:hover .card__media > img { transform: scale(1.08); filter: brightness(1) saturate(1); }
.card--banner .card__media > img { object-position: center top; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(110, 198, 245, 0);
  transition: border-color .6s, inset .6s var(--ease-out);
}
.card:hover .card__media::after { border-color: rgba(110, 198, 245, .7); inset: 12px; }
.card__cat {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 3px 12px;
  background: rgba(7, 11, 20, .72);
  font-family: var(--mincho); font-size: 11px; letter-spacing: .08em;
  border-radius: 999px;
}
.card__body { display: flex; gap: 16px; padding-top: 18px; }
.card__no { font-family: var(--serif); font-size: 14px; color: var(--accent); padding-top: 2px; min-width: 2.2em; }
.card__client { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.card__title { font-family: var(--mincho); font-weight: 500; font-size: 16px; line-height: 1.6; margin-top: 4px; }
.card.is-hide { display: none; }

.more { text-align: center; margin-top: clamp(56px, 6vw, 88px); }
.more[hidden] { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 40px;
  border-radius: 999px;
  font-family: var(--mincho); font-size: 14px; letter-spacing: .1em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn--line { border: 1px solid var(--line-2); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  border-radius: inherit;
  transform: scale(0, 1); transform-origin: left;
  transition: transform .6s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scale(1, 1); }
.btn i { font-style: normal; font-size: 20px; }

/* =========================================================
   Banner masonry
   ========================================================= */
.masonry { columns: 3; column-gap: clamp(14px, 2vw, 28px); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }
.bn {
  break-inside: avoid;
  margin-bottom: clamp(14px, 2vw, 28px);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-3);
}
.bn img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.bn:hover img { transform: scale(1.05); }
.bn figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(7, 11, 20, .85), transparent);
  font-size: 12px; letter-spacing: .08em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s, transform .6s var(--ease-out);
}
.bn:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .bn figcaption { opacity: 1; transform: none; } }

/* =========================================================
   About
   ========================================================= */
.about__body { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__visual { position: sticky; top: 120px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-3); border-radius: 4px; box-shadow: 0 0 0 1px rgba(214, 226, 244, .18), 0 40px 80px rgba(0, 0, 0, .4); }
.about__visual img { width: 100%; height: 100%; object-fit: cover; }

.about__since {
  position: absolute; left: 28px; bottom: 24px; z-index: 1;
  font-family: var(--mincho); font-size: 13px; letter-spacing: .14em; line-height: 1.3; color: var(--ink-2);
}
.about__since i { font-family: var(--serif); font-style: normal; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: 0; color: var(--silver); margin-right: 4px; }
.about__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.2; }
.about__name small { font-family: var(--mincho); font-size: 14px; color: var(--muted); margin-left: 16px; letter-spacing: .2em; }
.about__catch { margin: 32px 0; font-family: var(--mincho); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.7; color: var(--silver); }
.about__text > p:not(.about__name):not(.about__catch) { color: var(--ink-2); font-size: 14px; line-height: 2.2; margin-bottom: 1.4em; }
.about__skills { margin-top: 48px; border-top: 1px solid var(--line); }
.about__skills div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.about__skills dt { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.about__skills dd { font-size: 13px; color: var(--ink-2); line-height: 2; }
@media (max-width: 900px) {
  .about__body { grid-template-columns: 1fr; }
  .about__visual { position: relative; top: 0; aspect-ratio: 1 / 1; max-width: 340px; }
  .about__skills div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact__title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 76px);
  line-height: 1.3;
  letter-spacing: .1em;
  margin-top: 16px;
}
.contact__title i { color: var(--silver); }
.contact__lead { margin-top: 28px; font-family: var(--mincho); font-size: clamp(14px, 1.3vw, 17px); color: var(--ink-2); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 20px;
  margin-top: 44px;
  padding: 18px clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .04em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease), border-color .6s;
  max-width: 100%;
}
.contact__mail::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .7s var(--ease);
}
.contact__mail:hover { color: var(--bg); border-color: var(--accent); }
.contact__mail:hover::before { transform: translateY(0); }
.contact__mail i { font-style: normal; transition: transform .6s var(--ease); }
.contact__mail:hover i { transform: translateX(8px); }
.contact__copy {
  display: block; margin: 20px auto 0;
  font-size: 12px; letter-spacing: .16em; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .3s;
}
.contact__copy:hover { color: var(--accent); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.footer__logo { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.footer__logo i { color: var(--accent); font-style: normal; }
.footer__top { font-family: var(--mincho); font-size: 13px; letter-spacing: .1em; color: var(--ink); }

/* =========================================================
   Modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 9200; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__bg { position: absolute; inset: 0; background: rgba(3, 6, 12, .88); opacity: 0; transition: opacity .6s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(1100px, 100%);
  background: var(--bg-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .9s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal--image .modal__panel { width: 100%; background: transparent; display: grid; place-items: center; transform: scale(.96); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s; }
.modal--image.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: sticky; top: 20px; float: right;
  margin: 20px 20px 0 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(7, 11, 20, .6);
  z-index: 3;
  transition: transform .6s var(--ease), border-color .3s;
}
.modal__close:hover { transform: rotate(90deg); border-color: var(--accent); }
.modal__close i { position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--ink); }
.modal__close i:first-child { transform: rotate(45deg); }
.modal__close i:last-child { transform: rotate(-45deg); }
.modal--image .modal__close { position: fixed; top: 20px; right: 20px; margin: 0; }

.md { padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px) 80px; clear: both; }
.md__cat { font-family: var(--mincho); font-size: 13px; color: var(--accent); letter-spacing: .14em; }
.md__client { margin-top: 12px; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.md__title { margin-top: 8px; font-family: var(--mincho); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; }
.md__visual {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start;
}
.md__visual--single { grid-template-columns: 1fr; justify-items: center; }
.md__pc { padding: 0 6% 20px; }
.md__phone { width: 240px; max-width: 70vw; }
.md__phone--ec { width: 300px; }
.md__screen { touch-action: pan-y; }
.md__hint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; letter-spacing: .1em; }
.md__rows { margin-top: 48px; border-top: 1px solid var(--line); }
.md__row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.md__row dt { font-family: var(--mincho); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.md__row dd { font-size: 14px; line-height: 2.1; color: var(--ink-2); }
.md__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.md__tags span { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 14px; font-size: 12px; }
.md__link { margin-top: 40px; }
.md__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.md__nav button { font-family: var(--mincho); font-size: 13px; letter-spacing: .06em; transition: color .3s; }
.md__nav button:hover { color: var(--accent); }
.md__img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.md__imgcap { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
  .md__visual { grid-template-columns: 1fr; justify-items: center; }
  .md__pc { width: 100%; }
  .md__row { grid-template-columns: 1fr; gap: 6px; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 9600;
  transform: translate(-50%, 20px);
  padding: 12px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: .08em;
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { display: none; }
}

/* focus */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* =========================================================
   Blue / Silver accents
   ========================================================= */
.grad-text, .hero__stats strong, .section__num, .feature__num, .about__since i {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section__title, .contact__title { color: #e3e9f1; text-shadow: 0 0 30px rgba(110, 198, 245, .18); }
.about__name { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .line--indent { overflow: hidden; padding-bottom: .08em; }
.line__in { display: inline-block; padding-right: .1em; }
.feature__num { -webkit-text-stroke: 0; opacity: .9; }
.header__logo i, .footer__logo i, .loader__logo span:nth-child(2) { color: var(--accent); }
.filter__btn::before { background: var(--grad-silver); }
.hero__veil {
  /* 青系グラデの透過（暗さは従来と同じ55%〜92%） */
  background:
    radial-gradient(ellipse at 80% 10%, rgba(95, 180, 242, .28), transparent 55%),
    linear-gradient(120deg, rgba(37, 99, 217, .30) 0%, rgba(14, 40, 104, .10) 45%, rgba(47, 125, 225, .22) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(8, 24, 60, .55) 0%, rgba(5, 13, 34, .92) 70%),
    linear-gradient(to bottom, rgba(6, 16, 40, .4), var(--bg) 96%);
}
.contact { background: radial-gradient(ellipse at 50% 0%, rgba(47, 125, 225, .14), transparent 60%); }

/* =========================================================
   Brand logo
   ========================================================= */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: auto; height: 26px; }
.brand span { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; color: var(--ink); }
.footer__logo.brand img { height: 22px; }
.footer__logo.brand span { font-size: 18px; }
.loader__logo { display: flex; align-items: center; justify-content: center; }
.loader__logo .loader__mark { margin-right: .3em; }
.loader__logo .loader__mark img { height: .9em; width: auto; }
/* ロゴマークを外したので、ハイフン（2番目）を青に */
@media (max-width: 900px) { .brand img { height: 22px; } .brand span { font-size: 18px; } }

/* =========================================================
   Gradient button
   ========================================================= */
.btn--grad {
  padding: 14px 30px;
  font-size: 13px;
  border: 1px solid rgba(110, 198, 245, .5);
  color: var(--ink);
  background: rgba(47, 125, 225, .08);
}
.btn--grad::before { background: var(--grad); }
.btn--grad i { font-size: 16px; transition: transform .5s var(--ease); }
.btn--grad:hover i, .feature:hover .btn--grad i { transform: translateX(6px); }
.feature:hover .btn--grad { color: var(--bg); }
.feature:hover .btn--grad::before { transform: scale(1, 1); }

/* =========================================================
   Skills / Stack / Can do
   ========================================================= */
.skills, .stack, .cando { margin-top: clamp(72px, 9vw, 128px); }
.skills__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.skills__title { font-family: var(--mincho); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: .1em; color: #e3e9f1; }
.skills__note { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.skills__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 80px); }
.skills__cat { font-family: var(--mincho); font-size: 13px; letter-spacing: .16em; color: var(--accent); margin-bottom: 16px; }
.bars { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 40px 128px 1fr 52px; align-items: center; gap: 12px; }
.bar__icon, .chip img { display: grid; place-items: center; }
.bar__icon { width: 40px; height: 40px; border-radius: 10px; background: #f3f6fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.bar__icon img { width: 24px; height: 24px; }
.bar__name { font-size: 13px; color: var(--ink); letter-spacing: .04em; }
.bar__track { position: relative; height: 8px; border-radius: 999px; background: rgba(214, 226, 244, .1); overflow: hidden; }
.bar__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(var(--v)); box-shadow: 0 0 12px rgba(95, 180, 242, .5); }
.bar__years { text-align: right; font-size: 12px; color: var(--ink-2); }
.bar__years b { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-right: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.stack__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(214, 226, 244, .06), rgba(214, 226, 244, .01));
  font-size: 13px; color: var(--ink);
  transition: border-color .4s, transform .4s var(--ease-out);
}
.chip:hover { border-color: rgba(110, 198, 245, .7); transform: translateY(-2px); }
.chip img { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #f3f6fa; }

.cando__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cando__item { padding: clamp(24px, 3vw, 36px); background: var(--bg); transition: background-color .5s; }
.cando__item:hover { background: var(--bg-2); }
.cando__no { font-family: var(--serif); font-size: 15px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cando__item h4 { margin-top: 10px; font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .06em; color: #e3e9f1; }
.cando__item p { margin-top: 10px; font-size: 13px; line-height: 2; color: var(--ink-2); }
@media (max-width: 900px) {
  .skills__cols { grid-template-columns: 1fr; }
  .cando__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bar { grid-template-columns: 34px 96px 1fr 44px; gap: 10px; }
  .bar__icon { width: 34px; height: 34px; border-radius: 8px; }
  .bar__icon img { width: 20px; height: 20px; }
  .bar__name { font-size: 12px; }
  .cando__list { grid-template-columns: 1fr; }
}
.contact { min-height: calc(100svh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* 実際のページを見る（グラデーション） */
.btn--site {
  padding: 14px 26px;
  font-size: 13px;
  color: #06101f;
  background: var(--grad);
  border: 0;
  box-shadow: 0 10px 30px rgba(47, 125, 225, .35);
  font-weight: 500;
}
.btn--site::before { background: var(--grad-silver); }
.btn--site:hover { color: #06101f; }
.btn--site i { transition: transform .5s var(--ease); }
.btn--site:hover i { transform: translate(3px, -3px); }
.feature:hover .btn--line.feature__more { border-color: rgba(110, 198, 245, .7); }
.card__site {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #06101f;
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  transition: filter .3s, transform .3s var(--ease-out);
}
.card__site:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ご連絡先：アドレスはマウスで選択・コピーできる */
.contact__address {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: .04em;
  color: #e3e9f1;
  user-select: all; -webkit-user-select: all;
  cursor: text;
}
.contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.contact__btns .btn { padding: 14px 28px; font-size: 13px; }
/* 本文はすべてマウスで選択可能 */
body { -webkit-user-select: text; user-select: text; }
.feature__client:empty, .card__client:empty, .md__client:empty { display: none; }

/* 詳細のモック：触ってもページのスクロールを妨げない */
.md__visual .phone__scroll { pointer-events: none; }
.md__pc .laptop__screen, .md__screen { cursor: default; }

/* ---------------- Viewer（モックを拡大してスクロールで見る） ---------------- */
.card--lp .card__media, .feature .laptop, .feature .phone, .md__visual .laptop, .md__visual .phone { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; z-index: 9400; visibility: hidden; pointer-events: none; display: grid; place-items: center; }
.viewer.is-open { visibility: visible; pointer-events: auto; }
.viewer__bg { position: absolute; inset: 0; background: rgba(4, 7, 13, .9); }
.viewer__frame {
  position: relative; display: flex; flex-direction: column;
  width: min(1180px, 94vw); height: min(92vh, 1100px);
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.viewer--sp .viewer__frame { width: min(430px, 100vw); }
.viewer__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #e9edf2; color: #2a3140; flex: none; }
.viewer__dots { display: flex; gap: 6px; }
.viewer__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.viewer__dots i:nth-child(2) { background: #febc2e; }
.viewer__dots i:nth-child(3) { background: #28c840; }
.viewer__title { flex: 1; min-width: 0; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
.viewer__open { font-size: 12px; color: #2563d9; white-space: nowrap; }
.viewer__close { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .08); flex: none; }
.viewer__close i { position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: #2a3140; }
.viewer__close i:first-child { transform: rotate(45deg); }
.viewer__close i:last-child { transform: rotate(-45deg); }
.viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; }
.viewer__scroll img { display: block; width: 100%; height: auto; }
.viewer__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(10, 14, 22, .7); color: #fff; font-size: 12px; letter-spacing: .06em; pointer-events: none; animation: viewerHint 3.2s ease forwards; }
@keyframes viewerHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 767px) {
  .viewer__frame, .viewer--sp .viewer__frame { width: 100vw; height: 100dvh; border-radius: 0; }
  .viewer__open { display: none; }
}

/* 詳細・ビューアを開いている間は背面のアニメーションを止めて軽くする */
html.is-overlay main *, html.is-overlay .header * { animation-play-state: paused !important; }

/* ヘッダー：濃い色の帯で常に上に固定（PC・スマホ共通） */
.header, .header.is-scrolled { background: rgba(6, 10, 18, .96); border-bottom: 1px solid rgba(214, 226, 244, .1); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.header.is-hidden { transform: none; }
.header__nav a { font-family: var(--serif); font-size: 16px; letter-spacing: .14em; }
.menu__list span { font-family: var(--serif); letter-spacing: .06em; }

/* 開発スタック：カテゴリごとに箱で区切る */
.stack__groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: stretch; }
.stack__group {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(110, 198, 245, .07), rgba(214, 226, 244, .015) 60%);
  transition: border-color .4s;
}
.stack__group:hover { border-color: rgba(110, 198, 245, .35); }
.stack__group .skills__cat {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.stack__group .skills__cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(110, 198, 245, .8); }
.stack__group .chips { gap: 8px; }
@media (min-width: 1100px) { .stack__groups { grid-template-columns: repeat(3, 1fr); } }

/* 実績一覧のバナー：LPのモックと大きさの印象をそろえる（枠いっぱいに敷き詰めず、余白をとって収める） */
.card--banner .card__media {
  display: grid; place-items: center;
  padding: 9% 11%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(95, 180, 242, .22), transparent 65%),
    linear-gradient(180deg, #111a2b, #0a0f1a);
}
.card--banner .card__media > img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: none;
}
.card--banner:hover .card__media > img { transform: translateY(-3%) scale(1.03); }

/* PC：文字がかかる左側は濃く、右側は薄くして作品画像を見せる */
@media (min-width: 900px) {
  .hero__wall { opacity: .75; }
  .hero__veil {
    background:
      radial-gradient(ellipse at 85% 10%, rgba(95, 180, 242, .25), transparent 55%),
      linear-gradient(90deg, rgba(5, 13, 34, .94) 0%, rgba(6, 18, 46, .9) 42%, rgba(10, 30, 76, .62) 64%, rgba(18, 52, 120, .30) 84%, rgba(30, 80, 170, .18) 100%),
      linear-gradient(to bottom, rgba(6, 16, 40, .25) 0%, transparent 30%, transparent 70%, var(--bg) 97%);
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__veil {
    background:
      radial-gradient(ellipse at 85% 10%, rgba(95, 180, 242, .25), transparent 55%),
      linear-gradient(90deg, rgba(5, 13, 34, .94) 0%, rgba(6, 18, 46, .9) 58%, rgba(10, 30, 76, .6) 76%, rgba(18, 52, 120, .3) 92%, rgba(30, 80, 170, .2) 100%),
      linear-gradient(to bottom, rgba(6, 16, 40, .25) 0%, transparent 30%, transparent 70%, var(--bg) 97%);
  }
}

/* プロフィール：経歴（年表） */
.career { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.career__label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; font-family: var(--serif); font-size: 24px; letter-spacing: .08em; color: #e3e9f1; }
.career__label small { font-family: var(--mincho); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.career__list { list-style: none; position: relative; padding-left: 30px; }
.career__list::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 14px; width: 1px; background: linear-gradient(to bottom, rgba(110, 198, 245, .25), var(--accent)); }
.career__item { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; padding-bottom: 26px; }
.career__item:last-child { padding-bottom: 0; }
.career__item::before { content: ""; position: absolute; left: -30px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(110, 198, 245, .7); }
.career__item.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(110, 198, 245, .15), 0 0 16px rgba(110, 198, 245, .9); }
.career__year { font-family: var(--serif); font-size: 28px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.career__year small { font-size: 14px; margin-left: 6px; letter-spacing: .04em; }
.career__item h4 { font-family: var(--mincho); font-weight: 500; font-size: 16px; letter-spacing: .06em; color: #e3e9f1; line-height: 1.6; }
.career__item h4 + p { margin-top: 4px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 640px) {
  .career__item { grid-template-columns: 1fr; gap: 6px; }
  .career__year { font-size: 24px; }
}

/* クリックできる場所だけポインタ表示（余白はクリック対象外） */
.card, .feature { cursor: default; }
.card--banner .card__media { cursor: zoom-in; }
.card__title, .card__client { cursor: text; }


/* 詳細画面：軽量化（スライドをやめてフェード、モックは静止画） */
.modal__panel { transform: none; opacity: 0; transition: opacity .3s ease; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__bg { transition: opacity .3s; }
.md__screen { overflow: hidden; }
.md__spimg { display: block; width: 100%; height: auto; }
.md__pc .laptop__screen img { display: block; width: 100%; height: auto; }
.md__viewwrap { margin-top: 18px; text-align: center; }
.md__viewall { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(110, 198, 245, .5); color: var(--ink); font-size: 13px; letter-spacing: .1em; transition: background-color .3s, border-color .3s; }
.md__viewall:hover { background: rgba(110, 198, 245, .12); border-color: var(--accent); }
.footer__logo.brand img { height: 30px; }

/* バナーの拡大：画像1枚を画面内に収めて表示 */
.viewer--banner .viewer__frame { width: auto; max-width: 94vw; height: auto; max-height: 92vh; }
.viewer--banner .viewer__scroll { flex: none; overflow: hidden; display: grid; place-items: center; background: #0b1324; }
.viewer--banner .viewer__scroll img { width: auto; max-width: min(1100px, 94vw); max-height: calc(92vh - 50px); }
.viewer--banner .viewer__hint, .viewer--banner .viewer__open { display: none; }

/* FV：説明文と実績を大きく・グラデ系に、PCでは少し中央寄りに */
.hero__lead {
  font-size: clamp(16px, 1.55vw, 22px);
  letter-spacing: .08em;
  background: linear-gradient(90deg, #eef3f9 0%, #cfe9fb 45%, #6ec6f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats {
  gap: clamp(14px, 2vw, 24px);
  border-top: 0;
  padding-top: 0;
  max-width: none;
  position: relative;
}
.hero__stats::before {
  content: ""; position: absolute; left: 0; top: calc(-1 * clamp(20px, 3vh, 32px)); width: min(760px, 100%); height: 1px;
  background: linear-gradient(90deg, rgba(110, 198, 245, .7), rgba(37, 99, 217, .35) 50%, transparent);
}
.hero__stats li {
  padding: clamp(14px, 1.6vw, 20px) clamp(20px, 2.4vw, 32px);
  border-radius: 14px;
  border: 1px solid rgba(110, 198, 245, .28);
  background: linear-gradient(135deg, rgba(110, 198, 245, .16), rgba(37, 99, 217, .06) 60%, rgba(7, 11, 20, .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(7, 20, 60, .35);
}
.hero__stats strong { font-size: clamp(40px, 4.6vw, 68px); }
.hero__stats span { font-size: clamp(14px, 1.2vw, 17px); }
.hero__stats em { font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) {
  .hero__content, .hero__stats { margin-left: clamp(0px, 7vw, 140px); }
}

/* プロフィール写真はスクロールについてこない（固定解除） */
.about__visual { position: relative; top: auto; align-self: start; }

/* FVの透過：「上質なデザインで。」の右端までは濃く、それより右は薄く（青系） */
@media (min-width: 900px) {
  .hero__veil {
    background:
      radial-gradient(ellipse at 88% 10%, rgba(95, 180, 242, .22), transparent 55%),
      linear-gradient(90deg,
        rgba(5, 13, 34, .94) 0%,
        rgba(6, 18, 46, .9) min(68%, 1060px),
        rgba(14, 40, 100, .38) calc(min(68%, 1060px) + 160px),
        rgba(20, 56, 128, .18) 90%,
        rgba(30, 80, 170, .12) 100%),
      linear-gradient(to bottom, rgba(6, 16, 40, .25) 0%, transparent 30%, transparent 70%, var(--bg) 97%);
  }
}

/* 実績カード：「詳細を見る」ボタン（タイトルは選択・コピー用の通常テキスト） */
.card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.card__actions .card__site { margin-top: 0; }
.card__detail { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(110, 198, 245, .45); font-size: 12px; letter-spacing: .06em; color: var(--ink); cursor: pointer; transition: background-color .3s, border-color .3s; }
.card__detail:hover { background: rgba(110, 198, 245, .12); border-color: var(--accent); }

/* スマホ：FVの透過を薄く、プロフィール写真は中央配置 */
@media (max-width: 899px) {
  .hero__veil {
    background:
      radial-gradient(ellipse at 80% 10%, rgba(95, 180, 242, .22), transparent 55%),
      radial-gradient(ellipse at 30% 45%, rgba(8, 24, 60, .3) 0%, rgba(5, 13, 34, .58) 75%),
      linear-gradient(to bottom, rgba(6, 16, 40, .2), var(--bg) 97%);
  }
  .about__visual { margin-left: auto; margin-right: auto; justify-self: center; }
}

/* スマホ・アプリ内ブラウザ：常時アニメの合成レイヤーを作らない */
html.is-lite .hero__col { will-change: transform; }
@keyframes heroWallUp { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes heroWallDown { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }

/* フッター：ページ上部へ（ボタン） */
.footer__top {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(110, 198, 245, .45);
  background: linear-gradient(135deg, rgba(110, 198, 245, .12), rgba(37, 99, 217, .05));
  font-size: 13px; letter-spacing: .1em; color: var(--ink);
  transition: border-color .3s, background-color .3s, transform .3s;
}
.footer__top i {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-style: normal; font-size: 14px;
  transition: transform .3s;
}
.footer__top:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer__top:hover i { transform: translateY(-2px); }
/* ページ上部へ：四角いボタン */
.footer__top { border-radius: 6px; padding: 8px 8px 8px 18px; }
.footer__top i { border-radius: 4px; }
/* ページ上部へ：シンプルな四角いボタン（矢印なし） */
.footer__top { gap: 0; padding: 10px 22px; border-radius: 4px; border: 1px solid rgba(214, 226, 244, .3); background: transparent; }
.footer__top:hover { border-color: var(--accent); background: rgba(110, 198, 245, .08); transform: none; }

/* 実績カード：詳細はカード内でその場で開閉 */
.card__more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.card__more .md__row { display: block; padding: 0; border: 0; }
.card__more dt { font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 4px; }
.card__more dd { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.card__more .md__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__more .md__tags span { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.card__more[hidden] { display: none !important; }

/* ---------------- 選ばれる理由 ---------------- */
.reasons__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reasons__item {
  position: relative; padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(110, 198, 245, .08), rgba(214, 226, 244, .015) 60%);
}
.reasons__no { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reasons__item h3 { margin-top: 14px; font-family: var(--mincho); font-weight: 500; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; letter-spacing: .06em; color: #e3e9f1; }
.reasons__item h3 + p { margin-top: 12px; font-size: 14px; line-height: 2; color: var(--ink-2); }

/* ---------------- 対応範囲 ---------------- */
.service .skills__head { margin-top: 8px; }
.service__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: clamp(56px, 7vw, 88px); background: var(--line); border: 1px solid var(--line); }
.service__item { padding: clamp(20px, 2.4vw, 30px); background: var(--bg); }
.service__item h4 { font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .06em; color: #e3e9f1; padding-left: 14px; position: relative; }
.service__item h4::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(110, 198, 245, .8); }
.service__item p { margin-top: 10px; font-size: 13px; line-height: 2; color: var(--ink-2); }

/* ---------------- 制作の流れ ---------------- */
.flow__list { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: flow; }
.flow__item { position: relative; padding: 22px 18px 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(214, 226, 244, .02); }
.flow__item:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 1px; background: var(--accent); opacity: .6; }
.flow__no { font-family: var(--serif); font-size: 26px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow__item h4 { margin-top: 12px; font-family: var(--mincho); font-weight: 500; font-size: 15px; line-height: 1.6; letter-spacing: .04em; color: #e3e9f1; }
.flow__item p { margin-top: 8px; font-size: 12px; line-height: 1.9; color: var(--ink-2); }

/* ---------------- 実績のあとの相談導線 ---------------- */
.cta-band {
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(110, 198, 245, .3); border-radius: 14px;
  background: linear-gradient(120deg, rgba(110, 198, 245, .12), rgba(37, 99, 217, .05) 60%, transparent);
}
.cta-band__text { font-family: var(--mincho); font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .08em; color: #e3e9f1; }

@media (max-width: 1100px) {
  .flow__list { grid-template-columns: repeat(3, 1fr); }
  .flow__item:nth-child(3n)::after { display: none; }
}
@media (max-width: 900px) {
  .service__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reasons__list, .service__list { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: 1fr; gap: 10px; }
  .flow__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 16px 16px 18px; }
  .flow__item .flow__no { grid-row: 1 / span 2; }
  .flow__item h4 { margin-top: 0; }
  .flow__item:not(:last-child)::after { display: none; }
  .cta-band { justify-content: center; text-align: center; }
}
.flow__item .flow__no { margin-top: 0; font-size: 26px; line-height: 1; color: transparent; }

/* 経歴：職務経歴書PDFへのリンク */
.career__doc { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 11px 20px; border: 1px solid rgba(110, 198, 245, .45); border-radius: 4px; font-size: 13px; letter-spacing: .08em; color: var(--ink); transition: background-color .3s, border-color .3s; }
.career__doc:hover { border-color: var(--accent); background: rgba(110, 198, 245, .1); }
.career__doc i { font-style: normal; color: var(--accent); }

/* 制作の流れ：図解（アイコン＋つなぐ矢印） */
.flow__list { gap: 22px; }
.flow__item { text-align: center; padding: 26px 16px 24px; background: linear-gradient(170deg, rgba(110, 198, 245, .07), rgba(214, 226, 244, .015) 65%); }
.flow__icon {
  width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(110, 198, 245, .35);
  background: radial-gradient(circle at 50% 35%, rgba(110, 198, 245, .18), rgba(7, 11, 20, .2) 70%);
  box-shadow: 0 0 24px rgba(95, 180, 242, .18);
}
.flow__icon svg { width: 40px; height: 40px; }
.flow__item .flow__no { font-size: 13px; letter-spacing: .18em; }
.flow__item h4 { margin-top: 6px; }
.flow__item:not(:last-child)::after {
  content: ""; position: absolute; top: 64px; right: -20px; width: 18px; height: 18px; background: none;
  border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg) scale(.6); opacity: .9;
}
@media (max-width: 1100px) {
  .flow__item:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {
  .flow__list { gap: 26px; }
  .flow__item { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 16px 16px 18px; }
  .flow__icon { width: 60px; height: 60px; margin: 0; grid-row: 1 / span 3; }
  .flow__icon svg { width: 32px; height: 32px; }
  .flow__item .flow__no { grid-row: auto; }
  .flow__item h4 { margin-top: 2px; }
  .flow__item:not(:last-child)::after { display: block; top: auto; bottom: -22px; right: auto; left: 42px; transform: rotate(135deg) scale(.6); }
}

/* 見出し：番号＋英字ラベル（参考: shu design / MooT） */
.section__num { display: flex; align-items: center; gap: 14px; }
.section__en { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-style: italic; font-size: .8em; letter-spacing: .14em; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); }
.section__en::before { content: ""; width: 36px; height: 1px; background: var(--grad); }
.contact .section__num { justify-content: center; }

/* 選ばれる理由：写真＋本文の左右交互（参考: shu design SERVICE / trend-booster） */
.reasons__list { grid-template-columns: 1fr; gap: clamp(40px, 6vw, 80px); }
.reasons__item {
  display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: 0; border: 0; border-radius: 0; background: none;
}
.reasons__item:nth-child(even) .reasons__img { order: 2; }
.reasons__img { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--bg-3); box-shadow: 0 0 0 1px rgba(214, 226, 244, .12), 0 30px 70px rgba(0, 0, 0, .45); }
.reasons__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reasons__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(37, 99, 217, .18), transparent 55%); pointer-events: none; }
.reasons__body { position: relative; }
.reasons__no { font-size: clamp(64px, 7vw, 110px); line-height: .9; opacity: .9; }
.reasons__item h3 { margin-top: 10px; font-size: clamp(20px, 2vw, 28px); }
.reasons__item h3 + p { margin-top: 16px; font-size: 14.5px; }

/* 対応範囲：実績画像付きカード */
.service__item { display: flex; flex-direction: column; }
.service__img { margin: 0 0 16px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--bg-3); box-shadow: 0 0 0 1px rgba(214, 226, 244, .1); }
.service__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .8s var(--ease-out); }
.service__item:hover .service__img img { transform: scale(1.04); }

@media (max-width: 760px) {
  .reasons__item { grid-template-columns: 1fr; gap: 18px; }
  .reasons__item:nth-child(even) .reasons__img { order: 0; }
  .reasons__no { font-size: 56px; }
}

/* 対応範囲：フリー素材（Unsplash）に紺のトーンを重ねて世界観に合わせる */
.service__img { position: relative; }
.service__img img { object-position: center; filter: saturate(.75) brightness(.85); }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(37, 99, 217, .28), rgba(7, 11, 20, .35)); mix-blend-mode: multiply; pointer-events: none; }
.is-menu-open .menu__list li:nth-child(6) a { transition-delay: .55s; }
.is-menu-open .menu__list li:nth-child(7) a { transition-delay: .61s; }

/* ---------------- 料金の目安 ---------------- */
.price__note { margin-top: 14px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.price__note strong { font-size: 17px; color: #e3e9f1; }
.price__single { list-style: none; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price__single li { padding: 20px 22px; background: var(--bg); }
.price__single h4 { font-family: var(--mincho); font-weight: 500; font-size: 15px; letter-spacing: .06em; color: #e3e9f1; padding-left: 14px; position: relative; }
.price__single h4::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(110, 198, 245, .8); }
.price__single p { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price__single p strong { font-family: var(--serif); font-size: 24px; line-height: 1; color: #e3e9f1; }
.price__single p span { font-size: 12px; color: var(--ink-2); }
.price__pack { margin-top: 26px; padding: clamp(24px, 3vw, 38px); border: 1px solid rgba(110, 198, 245, .35); border-radius: 14px; background: linear-gradient(160deg, rgba(110, 198, 245, .10), rgba(214, 226, 244, .02) 60%); }
.price__pack-label { font-family: var(--serif); font-style: italic; letter-spacing: .18em; font-size: 12px; color: var(--accent); }
.price__pack h4 { margin-top: 8px; font-family: var(--mincho); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: .08em; color: #e3e9f1; }
.price__pack-desc { margin-top: 10px; font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.price__pack-img { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 10px; border: 1px solid rgba(201, 162, 75, .45); }
.price__list { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.price__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.price__list strong { font-family: var(--serif); font-size: 19px; color: #e3e9f1; white-space: nowrap; }
.price__total { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.price__total-usual { font-size: 15px; color: var(--muted); }
.price__total-arrow { color: var(--accent); }
.price__total-price { font-family: var(--serif); font-size: clamp(36px, 4vw, 50px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price__tax { font-size: 13px; color: var(--ink-2); }
.price__pack-note { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--muted); }
@media (max-width: 640px) {
  .price__single { grid-template-columns: 1fr; }
  .price__list li { font-size: 13px; }
}
