/* ===== MIRAI BLUE — color / base ===== */
:root {
  --primary: #00A5FF;
  --secondary: #0070FF;
  --accent: #00E0FF;
  --navy: #070B14;
  --surface: #0F172A;
  --glass: rgba(26, 35, 51, 0.6);
  --text: #E6F0FF;
  --text-sub: #8AA3C2;
  --border: rgba(0, 165, 255, 0.25);
  --glow: 0 0 24px rgba(0, 165, 255, 0.35);
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-ja);
  background: var(--navy);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pc-only { display: inline; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.9em 2em; border-radius: 6px;
  font-size: 0.95rem; letter-spacing: 0.08em;
  border: 1px solid var(--border);
  transition: all 0.3s ease; cursor: pointer;
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; border: none; box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 0 36px rgba(0, 165, 255, 0.55); }
.btn-ghost { background: rgba(15, 23, 42, 0.5); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }
.btn-large { padding: 1.1em 3em; font-size: 1.05rem; }

.badge {
  display: inline-block; padding: 0.1em 0.9em; border-radius: 999px;
  background: var(--secondary); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 500;
}

/* ===== header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header.is-scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; }
.brand-text {
  font-family: var(--font-ja); font-size: 1.05rem; font-weight: 300;
  letter-spacing: 0.06em; line-height: 1.3; display: flex; flex-direction: column;
}
.brand-text small { font-size: 0.6rem; letter-spacing: 0.35em; color: var(--text-sub); font-family: var(--font-en); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-en); font-size: 0.82rem; letter-spacing: 0.18em;
  color: var(--text-sub); padding: 6px 2px; position: relative; transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; padding: 0.7em 1.6em; font-family: var(--font-en); font-size: 0.82rem; }

.menu-btn { display: none; }

/* ===== hero ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 32px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    url("../images/hero.jpg") right center / cover no-repeat,
    radial-gradient(ellipse at 70% 30%, #0d1e3f 0%, var(--navy) 60%);
  transform-origin: right center;
  animation: kenburns 36s ease-in-out infinite alternate;
  will-change: transform;
}
/* 右端（縦看板）を基準に拡大するため、右端は常に見切れない */
@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.07); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,20,0.9) 0%, rgba(7,11,20,0.62) 38%, rgba(7,11,20,0.22) 58%, rgba(7,11,20,0) 72%),
              linear-gradient(0deg, var(--navy) 0%, transparent 22%);
}
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.25; }
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,165,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,165,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); animation: glowPulse 7s ease-in-out infinite alternate; }
@keyframes glowPulse { from { opacity: 0.65; } to { opacity: 1; transform: scale(1.12); } }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.8);
  z-index: 200; pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: rgba(0, 112, 255, 0.22); top: -10%; right: 5%; }
.hero-glow-2 { width: 380px; height: 380px; background: rgba(0, 224, 255, 0.12); bottom: 0; left: 15%; }

.hero-inner {
  display: block;
  max-width: 1180px; margin: 0 auto; width: 100%; z-index: 1;
}
/* 文字は常に画像左側の「店舗が写っていない安全地帯」に収める。
   cover表示では店舗看板の左端 ≒ 100vw - 0.84×100vh に来るため、そこから余白を引いた幅を上限にする */
.hero-copy { max-width: min(640px, calc(100vw - 94vh)); }
.hero-title { white-space: normal; }
@media (min-width: 1440px) and (min-aspect-ratio: 8/5) { .hero-title { white-space: nowrap; } }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 300; letter-spacing: 0.12em; line-height: 1.55;
  text-shadow: 0 0 40px rgba(0, 165, 255, 0.35);
}
.hero-lead { margin-top: 28px; color: var(--text-sub); font-size: clamp(0.9rem, 1.4vw, 1.05rem); letter-spacing: 0.06em; }
.hero-services {
  display: flex; flex-wrap: wrap; margin-top: 40px;
}
.hero-services li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text);
  padding: 0 22px; border-right: 1px solid rgba(0,165,255,0.2);
}
.hero-services li:first-child { padding-left: 0; }
.hero-services li:last-child { border-right: none; }
.hero-services svg {
  width: 40px; height: 40px; fill: none;
  stroke: var(--primary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0,165,255,0.6));
  animation: iconFloat 4s ease-in-out infinite;
}
.hero-services li:nth-child(2) svg { animation-delay: 0.6s; }
.hero-services li:nth-child(3) svg { animation-delay: 1.2s; }
.hero-services li:nth-child(4) svg { animation-delay: 1.8s; }
.hero-services li:nth-child(5) svg { animation-delay: 2.4s; }
@keyframes iconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero-cta { margin-top: 48px; }

/* news bar */
.news-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 640px; margin: 64px 0 0; width: 100%;
  padding: 16px 28px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(10, 16, 30, 0.6); backdrop-filter: blur(8px);
  font-size: 0.85rem; z-index: 1;
}
.news-label { font-family: var(--font-en); letter-spacing: 0.2em; padding-right: 18px; border-right: 1px solid var(--border); }
.news-date { color: var(--text-sub); font-family: var(--font-en); }
.scroll-hint {
  position: absolute; right: 36px; bottom: 32px;
  font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-sub);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-line { width: 1px; height: 48px; background: var(--primary); animation: scrollPulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); opacity: 0; } }

/* ===== sections ===== */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy), #0a1122 50%, var(--navy)); }
#service {
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(7,11,20,0.72) 50%, var(--navy) 100%),
    url("../images/service-bg.jpg") center / cover no-repeat;
}
.section-label {
  font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.35em;
  color: var(--primary); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 300;
  letter-spacing: 0.1em; margin-bottom: 56px; line-height: 1.6;
}

/* vision */
#vision {
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(7,11,20,0.82) 30%, rgba(7,11,20,0.82) 70%, var(--navy) 100%),
    url("../images/city.jpg") no-repeat;
  background-size: auto, cover;
  background-position: center, center calc(50% + var(--py, 0px));
}
.vision-grid { display: grid; gap: 48px; }
.vision-text { color: var(--text-sub); max-width: 760px; font-size: 1rem; }
.vision-note {
  max-width: 760px; margin-top: -16px; padding: 26px 30px;
  border-left: 2px solid var(--primary);
  background:
    linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.75) 55%, rgba(15,23,42,0.45) 100%),
    url("../images/blueprint.jpg") right center / cover no-repeat;
  border-radius: 0 8px 8px 0; color: var(--text); font-size: 0.92rem;
  box-shadow: inset 0 0 40px rgba(0, 112, 255, 0.06);
}
.vision-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  padding: 32px 26px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--glass); backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.value-num { font-family: var(--font-en); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.2em; }
.value-card h3 { font-size: 1.05rem; font-weight: 500; margin: 12px 0 10px; letter-spacing: 0.08em; }
.value-card p { font-size: 0.88rem; color: var(--text-sub); }

/* service */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 40px 30px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--glass); backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--accent); }
.service-card svg {
  width: 46px; height: 46px; fill: none;
  stroke: var(--primary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0,165,255,0.55)); margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 12px; }
.service-card p { font-size: 0.88rem; color: var(--text-sub); }

/* flow */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow-steps li {
  position: relative; padding: 34px 24px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--glass);
}
.flow-steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 1.1rem; z-index: 1;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--primary); color: var(--accent);
  font-family: var(--font-en); box-shadow: var(--glow); margin-bottom: 16px;
}
.flow-steps h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 8px; }
.flow-steps p { font-size: 0.82rem; color: var(--text-sub); }

/* works */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--glass); transition: box-shadow 0.3s, border-color 0.3s; }
.work-card:hover { box-shadow: var(--glow); border-color: var(--accent); }
.work-card:hover .work-thumb { transform: scale(1.05); }
.work-thumb { transition: transform 0.6s ease; }
.work-thumb {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0,112,255,0.25), transparent 70%),
    linear-gradient(135deg, #0a1122, #0F172A);
  background-size: cover; background-position: center;
  font-family: var(--font-en); letter-spacing: 0.35em; color: var(--text-sub); font-size: 0.8rem;
  text-shadow: 0 0 8px rgba(7,11,20,0.9);
}
.work-thumb-web { background-image: linear-gradient(rgba(7,11,20,0.35), rgba(7,11,20,0.35)), url("../images/works-web.jpg"); }
.work-thumb-app { background-image: linear-gradient(rgba(7,11,20,0.35), rgba(7,11,20,0.35)), url("../images/works-app.jpg"); }

/* flow */
#flow {
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(7,11,20,0.88) 50%, var(--navy) 100%),
    url("../images/network.jpg") no-repeat;
  background-size: auto, cover;
  background-position: center, center calc(50% + var(--py, 0px));
}
.work-body { padding: 26px 28px 30px; }
.work-body h3 { font-size: 1rem; font-weight: 500; margin: 12px 0 8px; letter-spacing: 0.06em; }
.work-body p { font-size: 0.85rem; color: var(--text-sub); }

/* about */
.about-table { max-width: 760px; border-top: 1px solid var(--border); }
.about-table > div {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 22px 8px; border-bottom: 1px solid var(--border);
}
.about-table dt { color: var(--primary); font-size: 0.9rem; letter-spacing: 0.12em; }
.about-table dd { font-size: 0.95rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-photo {
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--glow); overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* contact */
.section-contact {
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(7,11,20,0.55) 55%, rgba(7,11,20,0.3) 100%),
    url("../images/contact-bg.jpg") no-repeat;
  background-size: auto, cover;
  background-position: center, center calc(50% + var(--py, 0px));
}
.section-contact .container { text-align: center; }
.contact-lead { color: var(--text-sub); margin: -28px 0 48px; }
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 26px; text-align: left; }
.contact-form .btn-large { justify-self: center; }
.form-note { text-align: center; }
.form-row { display: grid; gap: 10px; }
.form-row label { font-size: 0.88rem; letter-spacing: 0.08em; }
.req {
  font-size: 0.68rem; color: #ff6b81; border: 1px solid rgba(255,107,129,0.5);
  border-radius: 4px; padding: 0 0.5em; margin-left: 0.6em; vertical-align: middle;
}
input, textarea {
  width: 100%; padding: 0.9em 1.1em;
  background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: var(--font-ja); font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input::placeholder, textarea::placeholder { color: rgba(138, 163, 194, 0.5); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.form-note { font-size: 0.85rem; color: var(--accent); min-height: 1.5em; white-space: pre-line; }
.form-note.is-ok { color: #4ade80; }
.form-note.is-error { color: #f87171; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* 自動送信対策の入力欄。人の目にもスクリーンリーダーにも触れさせない */
.form-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: #050810; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; font-size: 0.85rem; color: var(--text-sub); }
.footer-nav a:hover { color: var(--text); }
.copyright { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.15em; color: var(--text-sub); }

/* ===== tablet ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid, .vision-values { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps li:not(:last-child)::after { display: none; }
}

/* ===== hero: 幅900px以下、または縦横比が狭い画面（4:3ノートPC等）は
   「上=店舗画像バナー / 下=無地に文字」の2段構成に切替 =====
   （coverで左側が切れて文字と看板が衝突するのを構造的に防ぐ） */
@media (max-width: 900px), (max-aspect-ratio: 13/10) {
  .hero { min-height: auto; padding: 72px 20px 72px; justify-content: flex-start; }
  .hero-bg::before {
    inset: 0 0 auto 0; height: 44vh;
    background-position: right center; background-size: cover;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(7,11,20,0.35) 0%, rgba(7,11,20,0.05) 20vh, rgba(7,11,20,0.2) 30vh, var(--navy) 44vh, var(--navy) 100%);
  }
  .hero-grid { mask-image: radial-gradient(ellipse at 50% 70%, black 20%, transparent 70%); }
  .hero-inner { padding-top: 42vh; }
  .hero-copy { max-width: 100%; }
  .hero-title { white-space: normal; font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .scroll-hint { display: none; }
}

/* ===== mobile ===== */
@media (max-width: 720px) {
  .pc-only { display: none; }
  .header { padding: 12px 20px; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 36px;
    background: rgba(7, 11, 20, 0.96); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 1rem; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; z-index: 110;
  }
  .menu-btn span { display: block; height: 1.5px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
  .menu-btn.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn.is-open span:nth-child(2) { opacity: 0; }
  .menu-btn.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-services { gap: 18px 0; }
  .hero-services li { padding: 0 14px; font-size: 0.72rem; }
  .hero-services svg { width: 32px; height: 32px; }
  .news-bar { margin-top: 44px; gap: 10px 14px; padding: 14px 18px; font-size: 0.78rem; }
  .scroll-hint { display: none; }

  .section { padding: 72px 0; }
  .service-grid, .vision-values, .works-grid, .flow-steps { grid-template-columns: 1fr; }
  .about-table > div { grid-template-columns: 1fr; gap: 4px; }
}
