/* ===========================================================
   AI real CG 公式サイト — 全ページ共通CSS
   デザイントークン / リセット / 共通パーツ / Header / Footer
   =========================================================== */
:root {
  --yellow: #f5c518;
  --yellow-soft: #fff7d6;
  --ink: #111;        /* 見出し・強調（LP準拠 #111） */
  --label: #666;      /* キッカー・ラベル */
  --body: #222;       /* 本文 */
  --muted: #666;      /* 補足テキスト */
  --bg-gray: #f7f7f7;
  --line: rgba(0,0,0,0.12);
  --border: #e5e5e5;  /* LP準拠の罫線 */
  --green: #22c55e;
  --red: #ef4444;
  --page-w: 1016px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: var(--body); background: #fff; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* キーボード操作時のフォーカス可視化（マウス時は出さない） */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* ページは画面幅100%（フルブリード）。中身は各セクション内側で中央寄せ */
.page {
  width: 100%;
  margin: 0;
  position: relative;
  background: #fff;
  overflow-x: hidden;
}

/* 共通ボタン（LP準拠：角丸6px・黄×黒・hover透過） */
.btn-primary {
  background: var(--yellow); color: #000;
  font-weight: 700; font-size: 14px; line-height: 20px;
  border: none; border-radius: 6px; padding: 14px 28px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-ghost {
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; line-height: 20px;
  border: 1px solid var(--border); border-radius: 6px; padding: 13px 29px; cursor: pointer;
  text-align: center; font-family: inherit; transition: background .2s;
}
.btn-ghost:hover { background: #f3f3f3; }

/* 大ボタン（LP準拠の存在感：大きめ＋強い影＋ホバーで浮く） */
.btn-lg { padding: 22px 36px; font-size: 16px; border-radius: 8px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.12);
  transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(0,0,0,0.26), 0 6px 14px rgba(0,0,0,0.14); opacity: 1; }
.btn-lg img { width: 18px; height: 18px; }

/* ボタン矢印（LP準拠：テキストは左、矢印はボタン右端に配置） */
.btn-primary .arrow, .btn-ghost .arrow { margin-left: auto; display: inline-flex; align-items: center; line-height: 1; }
.btn-primary .arrow svg, .btn-ghost .arrow svg { width: 14px; height: 14px; display: block; }
.btn-lg .arrow svg { width: 22px; height: 22px; }

/* ===========================================================
   Header（LP準拠：fixed・フロステッドガラス・スクロール影）
   ※幅は1016pxカラムに合わせて中央配置
   =========================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1150;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.header__inner { max-width: 1152px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.header__brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; line-height: 1; }
.header__brand-logo { height: 19px; width: auto; display: block; }
@media (max-width: 860px) {
  .header__brand-logo { height: 17px; }
}
.header__nav { display: flex; gap: 32px; align-items: center; margin-right: 16px; }
.header__navitem { position: relative; }
.header__navlink { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; color: #333; }
.header__navlink:hover { color: #000; }
.header__navcaret { width: 10px; height: 6px; color: #888; transition: transform .2s ease, color .2s ease; }
.header__navitem:hover .header__navcaret,
.header__navitem:focus-within .header__navcaret { transform: rotate(180deg); color: #333; }
/* ドロップダウン（PCのみ・ホバー/フォーカスで表示） */
.header__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 12px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease;
}
.header__navitem:hover .header__dropdown,
.header__navitem:focus-within .header__dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.header__dropdown-inner {
  min-width: 216px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.14); padding: 8px;
  transform: translateY(-6px); transition: transform .18s ease;
}
.header__navitem:hover .header__dropdown-inner,
.header__navitem:focus-within .header__dropdown-inner { transform: translateY(0); }
.header__dropdown a { display: block; padding: 11px 14px; font-size: 15px; font-weight: 600; color: #333; border-radius: 7px; white-space: nowrap; }
.header__dropdown a:hover { background: var(--bg-gray); color: #000; }
.header__right { display: flex; align-items: center; gap: 12px; }
.header__cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px;
  border-radius: 6px; background: var(--yellow); color: #000; font-weight: 700; white-space: nowrap;
  border: none; cursor: pointer; font-family: inherit; transition: opacity .2s;
}
.header__cta:hover { opacity: .85; }
.header__cta-arrow { display: inline-flex; align-items: center; line-height: 1; }
.header__cta-arrow svg { width: 14px; height: 14px; display: block; }

/* ヘッダーCTAの「簡単30秒！入力」吹き出し（LP準拠） */
.header__cta-wrap { position: relative; display: inline-flex; }
.header__cta-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: #111; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 11px;
  border-radius: 12px; line-height: 1.5; box-shadow: 0 3px 9px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.06); z-index: 2; }
.header__cta-badge .secs { color: var(--red); }
.header__cta-badge::after { content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-style: solid; border-width: 6px 5px 0 5px; border-color: #fff transparent transparent transparent; }
@media (max-width: 768px) {
  .header__cta-badge { display: none; }
}

/* ハンバーガー（モバイルのみ表示） */
.header__burger { display: none; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; z-index: 1101; }
.header__burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: #111; border-radius: 2px; transition: transform .3s, top .3s, opacity .2s, background .3s; }
.header__burger span:nth-child(1) { top: 13px; }
.header__burger span:nth-child(2) { top: 19px; }
.header__burger span:nth-child(3) { top: 25px; }
.header__burger.is-open span { background: #111; }
.header__burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* モバイルメニュー（全画面オーバーレイ・開いたら全項目を表示） */
.mobile-menu { position: fixed; inset: 0; background: rgba(17,17,17,0.92); color: #fff; z-index: 1100;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  overflow-y: auto; padding: 88px 16px 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__link { font-size: 22px; font-weight: 700; color: #fff; padding: 14px 24px; letter-spacing: .04em; }
.mobile-menu__link:hover { color: var(--yellow); }
/* 用途別・機能のグループ（全項目表示） */
.mobile-menu__group { display: flex; flex-direction: column; align-items: center; margin: 8px 0; }
.mobile-menu__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.mobile-menu__sublink { display: block; padding: 8px 24px; font-size: 18px; font-weight: 600; color: #fff; }
.mobile-menu__sublink:hover { color: var(--yellow); }
.mobile-menu__divider { width: 32px; height: 2px; background: var(--yellow); margin: 12px 0; }
.mobile-menu__cta-badge { background: #fff; color: #111; font-weight: 800; font-size: 13px; letter-spacing: .02em;
  padding: 7px 16px; border-radius: 20px; }
.mobile-menu__cta-badge .secs { color: var(--red); }
.mobile-menu__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--yellow); color: #000; padding: 14px 32px; border-radius: 6px; font-weight: 700; font-size: 15px;
  min-width: 240px; justify-content: center; }

/* 固定ヘッダー分のアンカーオフセット */
section[id] { scroll-margin-top: 72px; }

/* ===========================================================
   Footer（LP準拠：黒地・中央寄せのミニマル）
   =========================================================== */
.site-footer { background: #000; color: #888; padding: 32px 24px; text-align: center; font-size: 12px; }
.site-footer__links { margin-bottom: 12px; }
.site-footer__links a { color: #bbb; margin: 0 12px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { color: #888; }

/* ===========================================================
   レスポンシブ（共通） — タブレット ≤768 / モバイル ≤480
   =========================================================== */
@media (max-width: 768px) {
  /* ヘッダー：PCナビを隠してハンバーガー表示 */
  .header__nav { display: none; }
  .header__burger { display: block; }
  .header__inner { padding: 10px 16px; }
  .header__cta { padding: 8px 14px; font-size: 12px; }

  /* フッター */
  .site-footer { padding: 24px 18px; font-size: 11px; }
  .site-footer__links a { margin: 0 8px; display: inline-block; padding: 4px 0; }
}

@media (max-width: 480px) {
  /* CTAはモバイルメニュー側に集約 */
  .header__cta { display: none; }
}

/* ===========================================================
   CTA帯の無料トライアル訴求バッジ（ダーク帯：uc471 / finalcta 等で使用）
   =========================================================== */
.cta-trial {
  display: inline-flex; align-items: center; gap: 8px; margin: 24px auto 0; padding: 9px 20px;
  font-size: 14px; font-weight: 700; line-height: 1.5; color: #fff; white-space: nowrap;
  background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.55); border-radius: 999px;
}
.cta-trial b { color: var(--yellow); font-weight: 800; }
@media (max-width: 480px) {
  .cta-trial { font-size: 12px; padding: 8px 14px; white-space: normal; text-align: center; }
}
