/* Abad site base styles (modern, responsive) */
:root{
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: rgba(15,23,42,.08);
  --shadow: 0 12px 32px rgba(2,6,23,.06);
  --shadow-2: 0 18px 50px rgba(6,182,212,.12);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1120px;
  --pad: 24px;
  --accent: #0891b2; /* sync-g風 薄い青〜ティール */
  --accent-2: #06b6d4; /* cyan */
  --accent-3: #22d3ee; /* light cyan */
  --ease: cubic-bezier(.16,1,.3,1);
  --font-ja: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Inter", sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font-ja);
  color: var(--text);
  background: #f5f6f8;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Fixed background — 画像１(ネットワーク図)をベース */
.fixed-bg{
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: url("../img/bg-network.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
.fixed-bg::after{
  content:"";
  position:absolute;
  inset:0;
  /* ライトテーマ: 画像をそのまま見せる。ごく薄いアクセント光だけ */
  background:
    radial-gradient(closest-side at 25% 15%, rgba(6,182,212,.08), rgba(6,182,212,0) 55%),
    radial-gradient(closest-side at 82% 72%, rgba(6,182,212,.07), rgba(6,182,212,0) 55%);
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;
  height:auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(2,6,23,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  width:100%;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark{
  width: 76px;
  align-self: stretch;
  border-radius: 8px;
  padding: 15% 0;
  font-size: 0;
  color: transparent;
  background-image: url("../img/logo.png");
  background-size: 140%;
  background-origin: content-box;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.2;
}
.brand-text strong{
  font-size: 16px;
  letter-spacing: .02em;
}
.brand-text span{
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--font-en);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 28px;
}
.nav-links{
  display:flex;
  gap: 22px;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  opacity: .92;
  position:relative;
  padding: 8px 2px;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom: 4px;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
  border-radius: 999px;
}
.nav-links a:hover::after{ transform: scaleX(1); transform-origin:left; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  min-height: 44px;
}
.btn-primary{
  color:#fff;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(6,182,212,.25);
}
.btn-primary:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(6,182,212,.30);
}
.btn-ghost{
  background: rgba(6,182,212,.06);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,.14);
}
.btn-ghost:hover{
  background: rgba(6,182,212,.12);
  transform: translateY(-5px);
}
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15,23,42,.12);
}
.btn-outline:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(6,182,212,.10);
  border-color: rgba(6,182,212,.22);
}

.arrow{
  width: 14px;
  height: 14px;
  display:inline-block;
  position: relative;
}
.arrow::before{
  content:"";
  position:absolute;
  left: 0;
  top: 6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.arrow::after{
  content:"";
  position:absolute;
  right: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Mobile nav */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.8);
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 999px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top: 6px; }

.mobile-drawer{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.42);
  z-index: 1100;
  padding: 18px;
}
.mobile-drawer.is-open{ display:block; }
.drawer-panel{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 10px auto 0;
}
.drawer-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.drawer-close{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.8);
  font-size: 18px;
}
.drawer-links{
  list-style:none;
  padding:0;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.drawer-links a{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.65);
  font-weight: 800;
  min-height: 44px;
}

/* Hero */
.hero{
  position:relative;
  padding: 84px 0 44px;
  overflow:hidden;
}
.hero-bg{ display:none; }
.hero-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.eyebrow{
  display: inline-block;
  width: 80px;
  height: 80px;
  font-size: 0;
  color: transparent;
  background-image: url("../img/logo.png");
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: none;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}
.hero h1{
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.grad{
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.grad.grad-split{
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
}

.hero .rv,
.hero h1,
.hero p{
  color: var(--text);
  text-shadow: none;
}
.hero .eyebrow{
  background-image: url("../img/logo.png");
  background-size: cover;
  background-position: center;
}
.hero p{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
/* hero-card: sync-g風 歪な円＋ゆらゆら揺れ、枠なし、枠を大きく */
.hero-card{
  border-radius: 55% 45% 62% 38% / 48% 54% 46% 52%;
  border: none;
  overflow: hidden;
  position: relative;
  padding: 64px 56px;
  min-height: 560px;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  animation: heroBlobMorph 7s ease-in-out infinite;
}
@keyframes heroBlobMorph{
  0%,100%{ border-radius: 55% 45% 62% 38% / 48% 54% 46% 52%; }
  25%    { border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%; }
  50%    { border-radius: 62% 38% 48% 52% / 45% 58% 42% 55%; }
  75%    { border-radius: 45% 55% 38% 62% / 55% 42% 58% 45%; }
}
@keyframes heroBlobSway{
  0%,100%{ transform: scale(2.1) translate(0, 0) rotate(0deg); }
  33%    { transform: scale(2.1) translate(6px, -10px) rotate(2deg); }
  66%    { transform: scale(2.1) translate(-4px, 8px) rotate(-1.5deg); }
}
/* 写真レイヤー（揺らさず、枠の円だけが動く） */
.hero-card::before{
  content: "";
  position: absolute;
  inset: -24px;
  background-image: url("../img/hero-blob.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
  z-index: 0;
}
/* 薄いオーバーレイ（写真80%見える＋20%白いぼかし） */
.hero-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255,255,255,.32), rgba(255,255,255,.42));
  z-index: 1;
}
.hero-card > *{
  position: relative;
  z-index: 2;
}
.hero-card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
/* テキスト：写真に負けない見やすい色、デザイン重視 */
.hero-card .pill{
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-en);
  letter-spacing: .14em;
  color: #0f172a;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 0 12px rgba(255,255,255,.6);
}
.hero-card .tag{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(6,182,212,.25);
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(255,255,255,.9);
}
.mini-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card .mini-stats{
  margin: 16px 0 0;
}
.stat{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(2,6,23,.02);
}
.hero-card .stat{
  border: none;
  background: none;
  padding: 12px 0;
  box-shadow: none;
}
.stat strong{
  display:block;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}
.hero-card .stat strong{
  font-size: 24px;
  font-family: "Noto Sans JP", var(--font-ja);
  font-weight: 700;
  color: #0f172a;
  text-shadow: 0 2px 4px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.7);
}
.hero-card .stat span{
  font-size: 14px;
  color: #1e293b;
  text-shadow: 0 1px 3px rgba(255,255,255,.9);
}
.stat span{
  display:block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}
.hero-card-desc{
  margin-top: 20px;
  color: #1e293b !important;
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.5);
  background: rgba(255,255,255,.6);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(2px);
}

/* Sections */
.section{
  padding: 96px 0;
  position: relative;
}
.section > .container{
  position: relative;
  z-index: 1;
}
.section.soft{
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  border-radius: 56px;
  margin: 0 16px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(15,23,42,.06);
}
.section-title{
  text-align:center;
  margin-bottom: 44px;
}
.section-title .en{
  display:block;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title h2{
  margin:0;
  font-family: "Noto Sans JP", var(--font-ja);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.lead{
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Sections placed on fixed dark background */
.on-dark .section-title .en{
  color: rgba(255,255,255,.88);
}
.on-dark .section-title h2{
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 26px rgba(2,6,23,.35);
}
.on-dark .lead{
  color: rgba(226,232,240,.88);
  text-shadow: 0 10px 26px rgba(2,6,23,.35);
}

/* Cards */
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  padding: 28px 38px;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  min-height: 44px;
}
.card:hover{
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(2,6,23,.12);
  border-color: rgba(6,182,212,.18);
}
.card .kicker{
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3{
  margin: 16px 0 8px;
  font-family: "Noto Sans JP", var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Pricing（sync-g風: 枠を控えめに） */
#pricing .card{
  border-color: rgba(6,182,212,.08);
  box-shadow: 0 8px 24px rgba(2,6,23,.05);
}
#pricing .card:hover{
  border-color: rgba(6,182,212,.14);
  box-shadow: 0 14px 40px rgba(6,182,212,.08);
}
.price{
  display:flex;
  align-items:baseline;
  gap: 10px;
  margin-top: 14px;
}
.price strong{
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
}
.price span{
  font-size: 12px;
  color: var(--muted-2);
}
.list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.list li{ margin: 6px 0; }

/* オプション（Pricing内） */
.option-block{
  padding-top: 32px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.option-title{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.option-lead{
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.option-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.option-item{
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(6,182,212,.04);
  border: 1px solid rgba(6,182,212,.10);
}
.option-item h4{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-2);
}
.option-item p{
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
@media (max-width: 560px){
  .option-grid{ grid-template-columns: 1fr; }
}

/* Services: カードは動き無し、ボタンのみホバー */
#services .card{
  transition: none;
}
#services .card:hover{
  transform: none;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  border-color: rgba(15,23,42,.10);
}

/* Works */
.work-card{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.work-thumb{
  border-radius: 22px;
  overflow:hidden;
  aspect-ratio: 16/10;
  border: none;
  background: linear-gradient(135deg, rgba(6,182,212,.10), rgba(34,211,238,.10));
  background-size: cover;
  background-position: center;
  position:relative;
}
.work-thumb-blessed{
  background-image: url("../img/work-blessed.png");
}
.work-thumb-blessed-lp{
  background-image: url("../img/work-blessed-lp.png");
}
.work-thumb-zion{
  background-image: url("../img/work-zion.png");
}
.work-thumb-regi{
  background-image: url("../img/a1.png");
  background-size: cover;
  background-position: center;
}
.work-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.2);
  pointer-events:none;
}
.work-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.tag{
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.12);
  padding: 8px 12px;
  border-radius: 999px;
}

/* CTA */
.cta{
  margin: 0 16px 80px;
  border-radius: 56px;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(6,182,212,.45), rgba(6,182,212,0) 70%),
    radial-gradient(closest-side at 80% 35%, rgba(34,211,238,.45), rgba(34,211,238,0) 70%),
    radial-gradient(closest-side at 55% 85%, rgba(168,85,247,.35), rgba(168,85,247,0) 75%),
    linear-gradient(135deg, #0b1222, #111b33);
  color: #fff;
  overflow:hidden;
  position:relative;
}
.cta-inner{
  padding: 86px 0;
  text-align:center;
  position:relative;
  z-index:2;
}
.cta h2{
  margin: 0 0 14px;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cta p{
  margin: 0 auto 22px;
  max-width: 760px;
  opacity: .92;
}
.cta-bubbles{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.cta-bubbles span{
  position:absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  filter: blur(0px);
}
.cta-bubbles span:nth-child(1){
  width: 520px; height: 520px; top:-240px; right:-220px;
  animation: bubbleWave1 14s ease-in-out infinite;
}
.cta-bubbles span:nth-child(2){
  width: 360px; height: 360px; bottom:-180px; left:-160px;
  animation: bubbleWave2 10s ease-in-out infinite 1.5s;
}
.cta-bubbles span:nth-child(3){
  width: 180px; height: 180px; top: 20%; left: 60%; opacity:.08;
  animation: bubbleWave3 8s ease-in-out infinite 0.8s;
}
@keyframes bubbleWave1{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%    { transform: translate(12px,-18px) scale(1.03); }
  66%    { transform: translate(-8px,14px) scale(0.98); }
}
@keyframes bubbleWave2{
  0%,100%{ transform: translate(0,0) scale(1); }
  40%    { transform: translate(-15px,10px) scale(1.05); }
  70%    { transform: translate(10px,-12px) scale(0.97); }
}
@keyframes bubbleWave3{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%    { transform: translate(6px,-8px) scale(1.08); }
}
.btn-white{
  background: #fff;
  color: rgba(15,23,42,.88);
  border-color: rgba(255,255,255,.22);
  padding: 16px 22px;
  border-radius: 999px;
  min-height: 48px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn-white:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(2,6,23,.18);
}

/* Footer: sync-g風パーティクル背景＋洗練レイアウト */
.site-footer{
  background: transparent;
  color: #1e293b;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
/* Canvas粒子 — 背景画像の上に重ねる */
#footer-particles{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.site-footer .container{
  position: relative;
  z-index: 3;
}
/* 背景画像（ネットワーク図）をフッターにも表示 */
.site-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg-network.png");
  background-size: cover;
  background-position: center;
  opacity: .18;
  z-index: 0;
  pointer-events: none;
}
.site-footer::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,246,248,.92) 0%, rgba(235,238,244,.85) 50%, rgba(220,228,240,.9) 100%);
  z-index: 0;
  pointer-events: none;
}
/* フッター内レイアウト — 洗練、余白重視 */
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 100px;
}
.footer-logo-block{
  max-width: 460px;
}
.footer-logo-block .brand{
  margin-bottom: 20px;
}
.footer-msg{
  color: #475569;
  margin-top: 20px;
  line-height: 1.9;
  font-size: 14px;
  letter-spacing: .05em;
}
.site-footer .footer-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.site-footer .footer-nav a{
  display: block;
  padding: 8px 0;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  transition: color .3s;
}
.site-footer .footer-nav a:hover{
  color: var(--accent);
}
.footer-bottom{
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(30,41,59,.12);
  font-size: 12px;
  color: #64748b;
  text-align: center;
  font-family: var(--font-en);
  letter-spacing: .12em;
}
.site-footer .brand-text strong{
  color: #0f172a;
  font-size: 20px;
}
.site-footer .brand-text span{
  color: #475569;
  font-size: 12px;
  letter-spacing: .08em;
}

/* Reveal animations */
.rv{
  opacity: 0;
  transform: translateY(52px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.rv.in{
  opacity: 1;
  transform: translateY(0);
}

/* Split hero text animation */
.split{
  display: block;
}
.split .char{
  display: inline-block;
  opacity: 0;
  transform: translate3d(var(--tx, 0px), var(--ty, 1.35em), 0) rotate(var(--rot, 0deg));
  filter: blur(var(--blur, 10px));
  will-change: transform, opacity, filter;
}
.split.split-in .char{
  animation: charIn 1.35s cubic-bezier(.16,1,.3,1) both;
  animation-delay: var(--d, 0ms);
}
/* (Stagger is set via CSS variables per char in JS) */

@keyframes charIn{
  0%{
    opacity: 0;
    transform: translate3d(var(--tx, 0px), var(--ty, 1.6em), 0) rotate(var(--rot, 0deg));
    filter: blur(var(--blur, 14px));
  }
  65%{
    opacity: 1;
    transform: translate3d(0, -0.10em, 0) rotate(0deg);
    filter: blur(0px);
  }
  100%{
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .rv{ opacity:1; transform:none; transition:none; }
  .btn, .card{ transition:none; }
  .split .char{ opacity:1; transform:none; filter:none; transition:none; }
}

/* Page header (sub pages) */
.page-hero{
  padding: 64px 0 28px;
}
.breadcrumbs{
  color: var(--muted-2);
  font-size: 13px;
}
.page-hero h1{
  margin: 12px 0 10px;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.page-hero p{
  margin: 0;
  max-width: 840px;
  color: var(--muted);
}

/* Timeline */
.timeline{
  display:grid;
  gap: 14px;
}
.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}
.step-num{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-en);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  flex: 0 0 auto;
}
.step h3{ margin: 0 0 4px; font-size: 16px; }
.step p{ margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }

/* Contact */
.form{
  display:grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.field{
  display:grid;
  gap: 6px;
}
.field label{
  font-weight: 800;
  font-size: 13px;
}
.field input,
.field textarea,
.field select{
  width:100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.field textarea{ min-height: 160px; resize: vertical; }
.hint{
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.8;
}
.optional-flow-intro{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.optional-flow-intro strong{ color: var(--accent-2); }
.flow-step{ margin-bottom: 16px; }
.flow-step:last-child{ margin-bottom: 0; }
.flow-step label{ display: block; margin-bottom: 8px; }
.flow-options{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.flow-option{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.flow-option input{ width: auto; }

/* ===== 診断型お問い合わせフォーム ===== */
.diagnostic-form-wrapper{
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(2,6,23,.08);
  position: relative;
}
.diagnostic-progress{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.diagnostic-progress-bar{
  flex: 1;
  height: 6px;
  background: rgba(15,23,42,.08);
  border-radius: 999px;
  overflow: hidden;
}
.diagnostic-progress-bar::after{
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  border-radius: 999px;
  transition: width .4s var(--ease);
}
.diagnostic-progress-text{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 36px;
}
.diagnostic-back{
  margin-bottom: 20px;
}
.diagnostic-steps{ min-height: 280px; }
.diagnostic-step{
  animation: diagnosticFadeIn .4s var(--ease) forwards;
}
@keyframes diagnosticFadeIn{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}
.diagnostic-question{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.5;
}
.diagnostic-options{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diagnostic-option{
  display: block;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  border: 2px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.diagnostic-option:hover{
  border-color: var(--accent-2);
  background: rgba(6,182,212,.06);
  transform: translateY(-2px);
}
.diagnostic-option:active{ transform: translateY(0); }
.diagnostic-other-msg{
  text-align: center;
  padding: 24px 0;
}
.diagnostic-other-msg p{ margin-bottom: 20px; font-size: 16px; }
.diagnostic-other-msg .btn{ margin: 0 6px 8px; }
.diagnostic-recommend{
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.diagnostic-recommend strong{ color: var(--accent-2); }
.diagnostic-detail-form .field{ margin-bottom: 16px; }
.diagnostic-detail-form .form-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.required{ color: #dc2626; font-size: 12px; font-weight: 600; }
.diagnostic-complete{
  text-align: center;
  padding: 48px 24px;
}
.diagnostic-complete-msg{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--accent-2);
}
.diagnostic-complete-hint{
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}
@media (max-width: 480px){
  .diagnostic-form-wrapper{ padding: 24px 16px; }
  .diagnostic-option{ padding: 16px 18px; font-size: 15px; }
}

.note{
  background: rgba(6,182,212,.05);
  border: 1px solid rgba(6,182,212,.12);
  padding: 14px;
  border-radius: 16px;
  color: rgba(15,23,42,.80);
  line-height: 2;
  font-size: 14px;
}

/* ===== NETWORK DECO FIXED OVERLAY ===== */
.fixed-bg-net{
  /* network-deco overlay — bg-network.png が背景になったため非表示 */
  display: none;
}
@keyframes netDrift{
  0%,100%{ background-position: 62% 50%; }
  33%    { background-position: 60% 47%; }
  66%    { background-position: 64% 53%; }
}

/* ===== SECTION ORB (sync-g round image) ===== */
/* ===== SECTION ORB (sync-g floating blob) ===== */
.section-orb{
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 460px;
  border-radius: 55% 45% 62% 38% / 50% 55% 45% 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  /* soft glow ring */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 100px rgba(6,182,212,.22),
    0 0 50px rgba(6,182,212,.14);
  animation: orbMorph 14s ease-in-out infinite, orbFloat 10s ease-in-out infinite;
}
/* network-deco image fills the blob */
.section-orb::before{
  content:"";
  position: absolute;
  inset: -24px;
  background-image: url("../img/network-deco.png");
  background-size: 130%;
  background-position: center;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orbSpin 40s linear infinite alternate;
}
/* colour gradient overlay */
.section-orb::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(6,182,212,.30), transparent 60%),
    radial-gradient(ellipse at 70% 75%, rgba(6,182,212,.22), transparent 55%),
    linear-gradient(145deg, rgba(11,18,34,.05), rgba(11,18,34,.20));
}
/* Light-theme orb: frosted glass look for all sections */
.section-orb{
  /* override dark-theme glow for light background */
  box-shadow:
    0 0 0 1px rgba(6,182,212,.10),
    0 20px 80px rgba(6,182,212,.12),
    0 0 60px rgba(6,182,212,.10);
}
.section-orb::before{
  mix-blend-mode: normal;
  opacity: 0.40;
  filter: blur(3px) saturate(.9);
}
.section-orb::after{
  background:
    radial-gradient(ellipse at 40% 40%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(ellipse at 65% 70%, rgba(6,182,212,.12), transparent 55%),
    linear-gradient(145deg, rgba(255,255,255,.50), rgba(255,255,255,.12));
}
.section.soft .section-orb{
  box-shadow:
    0 0 0 1px rgba(6,182,212,.08),
    0 20px 80px rgba(6,182,212,.10),
    0 0 40px rgba(6,182,212,.08);
}
/* 各オーブがそれぞれの速さで揺れる（波のように） */
#pricing .section-orb{ animation-duration: 16s, 12s; }
#works .section-orb{ animation-duration: 12s, 10s; animation-delay: 0s, 2s; }
@keyframes orbMorph{
  0%,100%{ border-radius: 55% 45% 62% 38% / 50% 55% 45% 50%; }
  33%    { border-radius: 62% 38% 48% 52% / 45% 60% 40% 55%; }
  66%    { border-radius: 46% 54% 55% 45% / 58% 42% 58% 42%; }
}
@keyframes orbFloat{
  0%,100%{ transform: translateY(-50%); }
  50%    { transform: translateY(calc(-50% - 28px)); }
}
@keyframes orbSpin{
  0%  { background-position: 30% 40%; background-size: 130%; }
  100%{ background-position: 70% 60%; background-size: 145%; }
}

/* ===== PLAIN CARDS (sync-g風: 枠なし、有機的装飾) ===== */
.plain-section .card{
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 28px 24px 28px 32px;
  transition: transform .45s var(--ease);
  overflow: hidden;
}
/* 有機的な薄いグラデーション（sync-g風の丸い装飾） */
.plain-section .card::before{
  content: "";
  position: absolute;
  left: -20%;
  top: -30%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse at 30% 50%, rgba(6,182,212,.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.plain-section .card:hover{
  transform: translateX(10px);
}
.plain-section .card > *{
  position: relative;
  z-index: 1;
}
.plain-section .card .kicker{
  color: var(--muted);
  font-size: 11px;
}
.plain-section .card h3{
  font-family: "Noto Sans JP", var(--font-ja);
  font-weight: 700;
  font-size: 21px;
  margin: 12px 0 8px;
}
.plain-section .card p{
  font-size: 14px;
  line-height: 1.45;
}
.plain-section .grid-4,
.plain-section .grid-3,
.plain-section .grid-2{
  gap: 4px;
}
/* soft variant (About, Promise) */
.plain-section.soft .card::before{
  background: radial-gradient(ellipse at 30% 50%, rgba(6,182,212,.05), transparent 70%);
}

/* ===== Promise: 丸く歪な形、写真13/12/6、テキストは背景風（枠に収めない） ===== */
#promise.section.soft{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
.promise-blob-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
/* 丸く歪な形（平たい丸より球に近い有機的な形）、テキストはblob外にもはみ出しOK */
.blob-card{
  position: relative;
  border-radius: 65% 35% 55% 45% / 50% 50% 50% 50%;
  overflow: visible;
  min-height: 200px;
  border: none;
  box-shadow: none;
  animation: blobMorphRound 7s ease-in-out infinite;
  transition: transform .45s var(--ease);
}
@keyframes blobMorphRound{
  0%,100%{ border-radius: 65% 35% 55% 45% / 50% 50% 50% 50%; }
  25%    { border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
  50%    { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
  75%    { border-radius: 40% 60% 55% 45% / 50% 50% 50% 50%; }
}
.blob-card::before{
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  filter: none;
  z-index: 0;
}
.blob-card-13::before{ background-image: url("../img/blob-13.jpg"); background-position: 30% 50%; }
.blob-card-12::before{ background-image: url("../img/blob-12.jpg"); background-position: 50% 40%; }
.blob-card-23::before{ background-image: url("../img/blob-23.jpg"); background-position: 70% 50%; }
.blob-card::after{
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,.32), rgba(255,255,255,.42));
  z-index: 1;
}
/* テキストは背景風：blobの外にはみ出しOK、sync-gのように */
.blob-card-inner{
  position: relative;
  z-index: 2;
  padding: 28px 24px 36px;
  padding-left: 48px;
  min-height: auto;
  margin-left: -32px;
}
.promise-blob-grid .blob-card-inner{
  padding: 24px 20px 32px;
  padding-left: 48px;
  margin-left: -32px;
}
.blob-card .kicker{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-shadow: none;
  backdrop-filter: blur(4px);
}
.blob-card h3{
  font-family: "Noto Sans JP", var(--font-ja);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  color: #0f172a;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.6);
}
.blob-card p{
  font-size: 14px;
  line-height: 1.45;
  color: #1e293b;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.5);
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(2px);
}
.promise-blob-grid .blob-card:hover{
  transform: translateY(-8px);
}
/* About: ホバー時の動き廃止 */
.about-blob-grid .blob-card{
  transition: none;
}
.about-blob-grid .blob-card:hover{
  transform: none;
}

/* ===== About: ヒーローカード同様の歪な円＋写真、枠廃止 ===== */
#about.section.soft{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
.about-blob-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-blob{
  min-height: 180px;
}
/* 写真は後ろの円に合わせる（カード型廃止） */
.about-blob::before{
  background-size: cover;
  background-position: center;
  filter: none;
}
.about-blob-2::before{ background-image: url("../img/blob-2.jpg"); }
.about-blob-3::before{ background-image: url("../img/blob-3.jpg"); }
.about-blob-4::before{ background-image: url("../img/blob-5.jpg"); }
.about-blob-5::before{ background-image: url("../img/blob-22.jpg"); }
.about-blob .blob-card-inner{
  padding: 24px 20px 28px;
  padding-left: 48px;
  margin-left: -32px;
  min-height: 180px;
}

/* work-card in plain-section: no left-line, thumbnail stays visible */
.plain-section .work-card{
  border-left: none;
  padding: 0;
  gap: 14px;
  transition: transform .45s var(--ease);
}
/* Works: それぞれの枠にゆとりを持たせる */
#works .grid-2{
  gap: 32px 28px;
}
#works .work-card{
  padding: 24px 20px 28px;
  gap: 18px;
  border: none;
}
#works .section-title,
#works .section-title .en,
#works .section-title h2,
#works .section-title .lead{
  color: var(--text);
}
#works .work-thumb{
  margin-bottom: 4px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.plain-section .work-card:hover{
  transform: translateY(-12px);
  border-left: none;
}
.plain-section .work-card .work-thumb{
  border-radius: 22px;
  box-shadow: none;
  outline: none;
}
.plain-section .work-card .work-meta,
.plain-section .work-card h3,
.plain-section .work-card p{
  padding-left: 6px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card{
    min-height: 520px;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: 48px 40px;
  }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .about-blob-grid{ grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .promise-blob-grid{ grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blob-card{ min-height: 240px; }
  .blob-card-inner{ min-height: 240px; padding: 32px 24px; }
  .footer-inner{ flex-direction: column; gap: 40px; }
}
@media (max-width: 820px){
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .section.soft{ border-radius: 34px; margin: 0 10px; }
  .cta{ border-radius: 34px; margin: 0 10px 60px; }
}
@media (max-width: 560px){
  :root{ --pad: 18px; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .about-blob-grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
  .hero{ padding-top: 70px; }
  .section{ padding: 74px 0; }
  .section-orb{ width: 260px; height: 320px; right: -60px; }
  .fixed-bg-net{ background-size: 140% auto; background-position: 70% 50%; }
  /* hero-card: 見切れ防止 */
  .hero-card{ padding: 32px 28px; max-width: 440px; }
  .promise-blob-grid{ grid-template-columns: 1fr; }
  .hero-card .pill{ font-size: 11px; }
  .hero-card .hero-card-desc{ font-size: 12px; line-height: 1.9; margin-top: 10px; }
  .footer-inner{ flex-direction: column; gap: 32px; text-align: center; align-items: center; }
  .footer-logo-block{ text-align: center; }
  .site-footer .footer-nav{ align-items: center; }
}
