/*
 * クラウド画面 ページ全体のスタイル
 * ・配色はヘッダー/フッターの紺色系をベースに、クラウドを想起させるスカイシアンをアクセントとして追加
 * ・各クラウドのキーカラー（AWS/Azure/GCP）はパネル単位のアクセントとしてのみ使用
 * ・アコーディオン/ダイアログ部分は flexClickSliderDialogStyle.css に分離
 */

/* ここから配色定義 */
.cloud-page {
  --cloud-navy-deep: #000037; /* ヘッダー上端と同色 */
  --cloud-navy: #00007c; /* ヘッダー下端と同色 */
  --cloud-ink: #00093e; /* フッター上端と同色 */
  --cloud-sky: #3fd0ff; /* クラウドのアクセント色 */
  --cloud-sky-soft: #9be7ff;
  --cloud-indigo: #6a7dff;
  --cloud-text: #f1f1f1;
  --cloud-text-sub: #b8c4ff;
  --cloud-line: rgba(63, 208, 255, 0.28); /* 線・枠線用の半透明スカイ */

  /* 各クラウドのキーカラー */
  --aws: #ff9900;
  --azure: #2f9bff;
  --azure-light: #50e6ff;
  --gcp-blue: #4285f4;
  --gcp-red: #ea4335;
  --gcp-yellow: #fbbc04;
  --gcp-green: #34a853;

  background: var(--cloud-ink);
  color: var(--cloud-text);
}

/* 共通シンボル定義用のSVGは表示しない */
.cloud-symbol-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ここからステージ（見出し＋アコーディオンの領域） */
.cloud-stage {
  position: relative;
  z-index: 0; /* ステージ内の重なりをこの中に閉じ込め、ヘッダーのモーダル（z-index: 1 の領域）より下に表示する */
  overflow: hidden;
  padding-bottom: 4vh;
  background: linear-gradient(180deg, var(--cloud-navy-deep) 0%, var(--cloud-ink) 55%, #000014 100%);
}

/* 背景装飾SVG */
.cloud-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* グリッドの線（pattern 内の要素のため、クラスで直接指定する） */
.cloud-bg-grid-line {
  fill: none;
  stroke: rgba(63, 208, 255, 0.07);
  stroke-width: 1;
}

.cloud-bg-cloud {
  fill: none;
  stroke: var(--cloud-sky);
  stroke-width: 1.2;
  opacity: 0.22;
}

.cloud-bg-cloud.is-dashed {
  stroke-dasharray: 3 4;
  opacity: 0.3;
}

.cloud-bg-cloud.is-faint {
  stroke: var(--cloud-indigo);
  opacity: 0.25;
}

.cloud-bg-wire {
  fill: none;
  stroke: var(--cloud-line);
  stroke-width: 1.5;
}

/* データが流れているような破線アニメーション */
.cloud-bg-wire.is-flow {
  stroke: var(--cloud-sky);
  opacity: 0.45;
  stroke-dasharray: 6 14;
  animation: cloud-flow 2.4s linear infinite;
}

.cloud-bg-node {
  fill: var(--cloud-navy-deep);
  stroke: var(--cloud-sky);
  stroke-width: 2;
  opacity: 0.7;
}

/* ここからページ見出し */
.cloud-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding: 3.5vh 0 2.5vh;
}

.cloud-heading-text {
  text-align: center;
}

/* 英字タイトル：スカイ→インディゴのグラデーション文字 */
.cloud-heading-en {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 140px);
  font-weight: bold;
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* letter-spacing分の右余白と釣り合わせて中央に見せる */
  line-height: 1.1;
  background: linear-gradient(90deg, var(--cloud-sky-soft) 0%, var(--cloud-sky) 45%, var(--cloud-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cloud-heading-ja {
  margin: 0.6vh 0 0;
  padding: 0;
  font-size: clamp(13px, 1vw, 40px);
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--cloud-text-sub);
}

/* 見出し左右の装飾線（端にノードを持つ配線のイメージ） */
.cloud-heading-line {
  position: relative;
  width: 18vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cloud-sky) 100%);
}

.cloud-heading-line.is-right {
  background: linear-gradient(90deg, var(--cloud-sky) 0%, transparent 100%);
}

.cloud-heading-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.6vw;
  height: 0.6vw;
  min-width: 7px;
  min-height: 7px;
  border: 2px solid var(--cloud-sky);
  border-radius: 50%;
  background: var(--cloud-navy-deep);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(63, 208, 255, 0.8);
}

.cloud-heading-line.is-left::after {
  right: -0.3vw;
}

.cloud-heading-line.is-right::after {
  left: -0.3vw;
}

/* ここからパネル内イラスト（SVG線画） */
.cloud-panel-illust .illust-cloud {
  fill: rgba(63, 208, 255, 0.08);
  stroke: var(--cloud-sky);
  stroke-width: 1.5;
}

.cloud-panel-illust .illust-flow {
  fill: none;
  stroke: var(--cloud-sky);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  animation: cloud-flow-short 1.2s linear infinite;
}

/* AWS：積層サーバー */
.cloud-panel-illust .illust-face-top {
  fill: #0d1a5c;
  stroke: var(--aws);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.cloud-panel-illust .illust-face-side {
  fill: #070f3c;
  stroke: var(--aws);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.cloud-panel-illust .illust-led {
  fill: var(--cloud-sky);
}

.cloud-panel-illust .illust-led.is-blink {
  animation: cloud-blink 1.6s ease-in-out infinite;
}

/* Azure：ハブ＆スポーク */
.cloud-panel-illust .illust-ring {
  fill: none;
  stroke: var(--azure-light);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}

.cloud-panel-illust .illust-spoke {
  fill: none;
  stroke: var(--azure);
  stroke-width: 1.5;
}

.cloud-panel-illust .illust-hub {
  fill: #0d1a5c;
  stroke: var(--azure-light);
  stroke-width: 2;
}

.cloud-panel-illust .illust-node {
  fill: #070f3c;
  stroke: var(--azure);
  stroke-width: 2;
}

/* GCP：パイプラインと分析グラフ */
.cloud-panel-illust .illust-hex {
  fill: #0d1a5c;
  stroke-width: 2;
  stroke-linejoin: round;
}

.cloud-panel-illust .illust-axis {
  fill: none;
  stroke: var(--cloud-line);
  stroke-width: 1.5;
}

.cloud-panel-illust .illust-bar {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.85;
}

.cloud-panel-illust .illust-trend {
  fill: none;
  stroke: var(--cloud-sky);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.cloud-panel-illust .is-blue {
  stroke: var(--gcp-blue);
}

.cloud-panel-illust .is-red {
  stroke: var(--gcp-red);
}

.cloud-panel-illust .is-yellow {
  stroke: var(--gcp-yellow);
}

.cloud-panel-illust .is-green {
  stroke: var(--gcp-green);
}

/* ここからアニメーション定義 */
/* dasharray の1周期（6+14=20）分だけずらすことで継ぎ目なくループさせる */
@keyframes cloud-flow {
  to {
    stroke-dashoffset: -20;
  }
}

/* dasharray の1周期（3+4=7）分 */
@keyframes cloud-flow-short {
  to {
    stroke-dashoffset: -7;
  }
}

@keyframes cloud-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* 視差効果を減らす設定の利用者にはアニメーションを止める（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  .cloud-bg-wire.is-flow,
  .cloud-panel-illust .illust-flow,
  .cloud-panel-illust .illust-led.is-blink {
    animation: none;
  }
}
