/* ============================================================
   welcome.css — ようこそ画面（ツール選択ポータル）
   色・形状はデザイントークン（theme.css / base.css）を参照。
   ============================================================ */

/* レイアウトはエディターと同じ .app（base.css）に委譲。body はそのまま。 */
/* ヒーロー（中央）：ヘッダーとフッターの間を埋めて中央寄せ */
.welcome-hero {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 16px;
  box-sizing: border-box;
  text-align: center;
}
.welcome-hero > * { width: 100%; max-width: 760px; }

/* テーマ・言語の切り替え（ヒーロー上部・右寄せ） */
.welcome-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}
.w-select {
  appearance: none;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  border-radius: var(--btn-radius-sm);
  font-size: var(--btn-font-sm);
  font-weight: 600;
  padding: 6px 26px 6px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237d7f85' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 11px;
  transition: border-color .14s ease;
}
.w-select:hover { border-color: var(--brand-border); }
.welcome-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}
.welcome-brand img {
  width: 64px; height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.welcome-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: .02em;
}
.welcome-subtitle {
  margin: 10px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.welcome-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--brand-border);
}
.tool-card img {
  width: 88px; height: 88px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.tool-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-ink);
}
.tool-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 2.6em;
}
.tool-open {
  margin-top: 4px;
  padding: 8px 22px;
  border-radius: var(--btn-radius);
  background: var(--button-primary-bg);
  color: #fff;
  font-weight: var(--btn-weight);
  font-size: var(--btn-font);
}
.tool-card:hover .tool-open { background: var(--button-primary-bg-hover); }

.welcome-foot {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .welcome-tools { grid-template-columns: 1fr; }
  .welcome-title { font-size: 26px; }
}
