/* ============================================================
   wireframe.css — ワイヤーブロックの見た目（グレースケール）
   このCSSはビルダー内プレビューと、エクスポートHTMLの両方で使う。
   エクスポート時は <style> としてインライン埋め込みされる。
   すべてのスタイルは .wf スコープ配下に閉じる（ビルダーUIと干渉させない）。
   ============================================================ */

.wf {
  --wf-bg:        #ffffff;
  --wf-bg-alt:    #f4f5f7;
  --wf-bg-dark:   #2b2f36;
  --wf-box:       #e3e6ea;   /* プレースホルダ画像/図形 */
  --wf-box-2:     #d3d8de;
  --wf-line:      #c7ccd3;   /* 罫線 */
  --wf-ink:       #3a4049;   /* 見出しテキスト */
  --wf-ink-soft:  #8a929c;   /* 本文テキスト */
  --wf-ink-onDark:#c9ced5;
  --wf-accent:    #b8bec6;   /* ボタン枠など */

  --wf-container: 1200px;
  --wf-gutter:    24px;
  --wf-radius:    8px;

  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--wf-ink);
  background: var(--wf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wf *,
.wf *::before,
.wf *::after { box-sizing: border-box; }

/* ---------- レイアウト ---------- */
.wf-section { padding: 72px var(--wf-gutter); }
.wf-section--tight { padding: 40px var(--wf-gutter); }
.wf-section--alt  { background: var(--wf-bg-alt); }
.wf-section--dark { background: var(--wf-bg-dark); color: var(--wf-ink-onDark); }
.wf-container { max-width: var(--wf-container); margin-inline: auto; width: 100%; }
.wf-narrow { max-width: 760px; margin-inline: auto; }

.wf-grid { display: grid; gap: 28px; }
.wf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.wf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.wf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wf-flex { display: flex; gap: 16px; }
.wf-flex--between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wf-flex--center { display: flex; align-items: center; gap: 16px; }
.wf-wrap { flex-wrap: wrap; }
.wf-center { text-align: center; }
.wf-center .wf-actions,
.wf-center .wf-eyebrow { justify-content: center; }
.wf-mt-s { margin-top: 12px; }
.wf-mt-m { margin-top: 24px; }
.wf-mt-l { margin-top: 40px; }

/* ---------- タイポグラフィ ---------- */
.wf h1, .wf h2, .wf h3, .wf h4, .wf p { margin: 0; }
.wf-display { font-size: 44px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.wf-h2 { font-size: 32px; font-weight: 700; line-height: 1.25; }
.wf-h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.wf-h4 { font-size: 17px; font-weight: 700; }
.wf-lead { font-size: 18px; color: var(--wf-ink-soft); }
.wf-text { font-size: 15px; color: var(--wf-ink-soft); }
.wf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wf-ink-soft);
}
.wf-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--wf-line); }
.wf-section--dark .wf-text,
.wf-section--dark .wf-lead { color: var(--wf-ink-onDark); }

/* ---------- プレースホルダ（画像・図形） ---------- */
.wf-ph {
  position: relative;
  background: var(--wf-box);
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius);
  overflow: hidden;
  min-height: 72px;
  display: flex; align-items: center; justify-content: center;
}
/* 中央に画像アイコン（Relume風のクリーンなグレー箱） */
.wf-ph::after {
  content: "";
  width: 15%; min-width: 28px; max-width: 48px; aspect-ratio: 1 / 1;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7adb6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='M21 15.5l-5-5L5.5 21'/%3E%3C/svg%3E");
}
.wf-ph--16x9 { aspect-ratio: 16 / 9; }
.wf-ph--4x3  { aspect-ratio: 4 / 3; }
.wf-ph--1x1  { aspect-ratio: 1 / 1; }
.wf-ph--tall { aspect-ratio: 3 / 4; }
.wf-ph--hero { aspect-ratio: 5 / 4; }

.wf-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--wf-box-2); border: 1px solid var(--wf-line); flex: none; position: relative; }
.wf-icon::after { content: ""; position: absolute; inset: 28%; border-radius: 3px; border: 1.6px solid #aab0b9; }
.wf-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--wf-box-2); border: 1px solid var(--wf-line); flex: none; }
.wf-logo { width: 116px; height: 32px; border-radius: 6px; background: var(--wf-box-2); border: 1px solid var(--wf-line); flex: none; }

/* ---------- ボタン ---------- */
.wf-actions { display: flex; gap: 12px; }
.wf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 116px; height: 44px; padding: 0 22px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--wf-ink); color: var(--wf-ink); background: transparent;
}
.wf-btn--fill { background: var(--wf-ink); color: #fff; }
.wf-btn--ghost { border-color: var(--wf-line); color: var(--wf-ink-soft); }
.wf-section--dark .wf-btn { border-color: var(--wf-ink-onDark); color: var(--wf-ink-onDark); }
.wf-section--dark .wf-btn--fill { background: #fff; color: var(--wf-bg-dark); border-color: #fff; }

/* ---------- 罫線・カード ---------- */
.wf-card { border: 1px solid var(--wf-line); border-radius: var(--wf-radius); padding: 24px; background: var(--wf-bg); }
.wf-divider { height: 1px; background: var(--wf-line); border: 0; margin: 0; }
.wf-stack > * + * { margin-top: 12px; }
.wf-stack-s > * + * { margin-top: 8px; }
.wf-tag { display: inline-block; width: fit-content; font-size: 12px; padding: 3px 10px; border: 1px solid var(--wf-line); border-radius: 999px; color: var(--wf-ink-soft); }

/* グリッド内のはみ出し防止＆カードの整列（高さ揃え） */
.wf-grid > * { min-width: 0; }
.wf-card { display: flex; flex-direction: column; height: 100%; }
.wf-card > .wf-ph:first-child { margin-bottom: 4px; }
.wf-split > * { min-width: 0; }

/* ---------- ナビ・フッター ---------- */
.wf-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--wf-gutter); border-bottom: 1px solid var(--wf-line); background: var(--wf-bg); }
.wf-nav__links { display: flex; gap: 28px; }
.wf-nav__link { width: 56px; height: 12px; border-radius: 4px; background: var(--wf-box); }
.wf-footer { background: var(--wf-bg-dark); color: var(--wf-ink-onDark); padding: 56px var(--wf-gutter) 32px; }
.wf-footer__col-title { width: 90px; height: 12px; background: #4a4f57; border-radius: 4px; margin-bottom: 16px; }
.wf-footer__link { width: 70px; height: 10px; background: #3c4047; border-radius: 4px; }

/* 数値・統計 */
.wf-stat__num { font-size: 40px; font-weight: 700; color: var(--wf-ink); }
.wf-section--dark .wf-stat__num { color: #fff; }

/* フォーム */
.wf-field { height: 46px; border: 1px solid var(--wf-line); border-radius: 6px; background: var(--wf-bg-alt); }
.wf-field--area { height: 120px; }
.wf-label { width: 80px; height: 10px; background: var(--wf-box); border-radius: 4px; margin-bottom: 8px; }

/* ============================================================
   レスポンシブ（エクスポート/プレビュー共通）
   ============================================================ */
@media (max-width: 900px) {
  .wf-section { padding: 56px 20px; }
  .wf-split { grid-template-columns: 1fr; gap: 32px; }
  .wf-grid--3, .wf-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .wf-display { font-size: 36px; }
  .wf-h2 { font-size: 27px; }
}
@media (max-width: 560px) {
  .wf-grid--2, .wf-grid--3, .wf-grid--4 { grid-template-columns: 1fr; }
  .wf-nav__links { display: none; }
  .wf-display { font-size: 30px; }
  .wf-actions { flex-direction: column; align-items: stretch; }
  .wf-btn { width: 100%; }
}
