/* ===== 背景全体 ===== */
.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(1200px 800px at 50% 110%, rgba(255,200,150,0.15), transparent 70%),
    url('../images/tokyoNight.png') center bottom / cover no-repeat;
  animation: fadeDawn 6s ease-in-out infinite alternate;
}


/* 夜明けの光（グロー効果） */
.dawn {
  position: absolute;
  left: 50%;
  bottom: -10vh;
  transform: translateX(-50%);
  width: 140vw;
  height: 70vh;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    closest-side,
    rgba(255,190,120,0.28),
    rgba(255,220,160,0.12) 45%,
    transparent 70%
  );
  filter: blur(20px) saturate(120%);
  opacity: 0.8;
}

/* 星空アニメーション用Canvas */
canvas.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== メインコンテンツ ===== */
.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  position: relative;
  z-index: 1;
}

/* 透明カード・中央寄せ */
.card {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  color: #fff;
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* 見出し */
.card h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

/* サブタイトル */
.card .sub {
  font-size: 1.1rem;
  color: #d0d6ff;
  margin-bottom: 20px;
}

/* ボタン */
.card .cta {
  display: inline-block;
  padding: 10px 28px;
  font-size: 1rem;
  background: #fff;
  color: #11197d;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.card .cta:hover {
  background: #dbe0ff;
}

/* フッター */
.card footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #c0c6f8;
}

/* SVGロゴ */
.mark svg {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: block;
}
.stroke-primary {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stroke-accent {
  stroke: rgba(255,255,255,0.3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* フェードアニメーション */
@keyframes fadeDawn {
  from { opacity: 0.9; }
  to   { opacity: 1; }
}

/* 都市ブロックを非表示にする */
.city { display: none !important; }

/* レスポンシブ調整 */
@media (max-width: 600px) {
  .card h1 { font-size: 2.2rem; }
  .card .sub { font-size: 1rem; }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.navbar .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

/* ナビの右端切れ対策（横スクロールと改行禁止） */
.navbar nav{
  display: block;
  overflow-x: auto;                  /* ← はみ出したら横スクロール */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navbar nav::-webkit-scrollbar{ display:none; }

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.navbar nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  transition: opacity 0.3s;
}

.navbar nav a:hover {
  opacity: 0.7;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: filter 1s ease;
}

/* ===== 背景動画 共通 ===== */
.video-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:#000; /* 読み込み時の下地 */
}
.video-bg video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none; /* ページ別で上書き可 */
}

/* 読みやすさのための薄いオーバーレイ（必要なら調整/削除OK） */
.video-bg::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1200px 800px at 50% 110%, rgba(0,0,0,.00), rgba(0,0,0,.25));
  pointer-events:none;
}

/* ページ別の色味（任意） */
.video-bg.about    video{ filter: saturate(1.08) brightness(1.02); }
.video-bg.services video{ filter: saturate(1.15) brightness(1.05); }
.video-bg.contact  video{ filter: saturate(1.05) brightness(1.06); }

/* モーション軽減：動画停止して下地色に */
@media (prefers-reduced-motion: reduce){
  .video-bg video{ display:none; }
  .video-bg{ background:#0b1770; }
}

/* 文章用の白系パネル（セクション追加用） */
.section{
  max-width: 900px;
  margin: 48px auto 0;
  padding: 28px 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  color: #fff;
  line-height: 1.8;
}
.section h2{
  margin-top:0; font-size:1.6rem;
}
