/* ============================================================
   brand.css — tiptiphives ブランドテーマ（style.css の後に読み込む）
   ガイド: color-guideline_logo / tiptiphives_handover.md
   ヘッダーは body.theme-blue / body.theme-light で切替
   ============================================================ */
:root {
  --brand-blue: #1B4F8A;      /* Deep Blue（ヘッダー/見出し） */
  --brand-link: #2460A7;      /* リンク・アクセント */
  --brand-link-hover: #3A78CC;
  --navy: #0C3D6B;
  --amber: #F5A800;           /* Accent（下線・アクセント） */
  --amber-light: #FFC842;
  --amber-dark: #BA7517;
  --btn: #2F6FC4;             /* ボタン＝プライマリを少し明るく */
  --btn-hover: #245A99;       /* hover は少し濃く */
  --ink: #1A1A1A;             /* Dark（フッター/本文） */
  --sub: #888888;             /* サブテキスト */
  --lgray: #F0F0F0;           /* Light Gray */

  /* 既存 style.css 変数をブランド値へ上書き */
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1A1A1A;
  --muted: #888888;
  --primary: #2460A7;
  --primary-dark: #3A78CC;
  --primary-soft: #eaf1fb;
  --border: #e3e8ef;
  --radius: 3px;             /* 角丸は控えめに 3px */
  --shadow: none;            /* フラットデザイン：影なし */
}

/* 角丸は 3px に統一（カードはカット形状なので別） */
.btn, .btn-ghost, .btn-icon, .note, .prose, .card, .tool-card, .bcard,
.hexchip, .alert, .bseg, .demo-box, .swatch-card, .bbanner,
.bfield input, .bfield textarea, .bfield select { border-radius: 3px; }

/* ============================================================
   フラットデザイン：シャドーは一切使わない（サイト共通方針）
   ============================================================ */
*, *::before, *::after { box-shadow: none !important; }
.bcard, .bcard:hover,
.bcard-cut, .bcard-facet, .bcard-cut:hover, .bcard-facet:hover,
.bcard-ribbon, .bcard-ribbon:hover { filter: none !important; }

/* カード上の絵文字アイコン（六角アクセント無し版） */
.card-emoji { font-size: 1.7rem; line-height: 1; }

/* ---------- フォント ---------- */
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: #ffffff;
  color: var(--ink);
}
h1, h2, h3, .brand, .hero h1, .tool-card h3, .prose h1, .prose h2 {
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}
/* 日本語見出しは Noto を主に（Outfitはラテン部分に効く） */
.hero h1, .prose h2 { letter-spacing: .01em; }

a { color: var(--brand-link); }
a:hover { color: var(--brand-link-hover); }

/* ---------- ヘッダー & ロゴ ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.2rem; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 33px; display: block; flex: none; }
.brand__name { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: .005em; }
.brand__name span { color: inherit; } /* style.css の span 色付けを無効化 */
.brand__tag {
  font-family: "Outfit", sans-serif; font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; line-height: 1;
}

/* バリアント①：ディープブルー・ヘッダー */
body.theme-blue .site-header {
  background: var(--brand-blue);
  border-bottom: none;
}
body.theme-blue .brand { color: #ffffff; }
body.theme-blue .brand__name { color: #ffffff; }
body.theme-blue .brand__tag { background: var(--amber); color: var(--ink); }
body.theme-blue .nav a { color: rgba(255,255,255,.82); }
body.theme-blue .nav a:hover { color: #ffffff; }

/* バリアント②：白ベース・ヘッダー */
body.theme-light .site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
body.theme-light .brand { color: var(--brand-blue); }
body.theme-light .brand__name { color: var(--brand-blue); }
body.theme-light .brand__tag { background: var(--brand-blue); color: #ffffff; }
body.theme-light .nav a { color: var(--brand-blue); }
body.theme-light .nav a:hover { color: var(--brand-link-hover); }

/* ---------- ハンバーガーメニュー（タブレット以下） ---------- */
.nav-toggle {
  display: none; background: transparent; border: 1px solid; border-radius: 3px;
  width: 42px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
body.theme-blue .nav-toggle { color: #fff; border-color: rgba(255,255,255,.55); }
body.theme-light .nav-toggle { color: var(--brand-blue); border-color: var(--border); }

/* ナビ共通 */
.nav a { font-size: .8rem; }
.nav-has-sub { position: relative; }
.nav-has-sub > a::after { content: "▾"; margin-left: 4px; font-size: .85em; opacity: .85; }
.nav-sub { display: none; }

/* PC：「PDFツール」ホバーでドロップダウン */
@media (min-width: 961px) {
  .nav { display: flex; align-items: stretch; height: 60px; }
  .nav > a, .nav-has-sub > a { display: flex; align-items: center; }
  .nav-has-sub { display: flex; align-items: center; }
  .nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 168px;
    background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 6px 0; z-index: 60;
  }
  .nav-has-sub:hover .nav-sub { display: block; }
  .nav-sub a { display: block; margin: 0 !important; padding: 9px 16px; font-size: .8rem; white-space: nowrap; color: var(--brand-blue) !important; }
  .nav-sub a:hover { background: var(--primary-soft); }
}

/* タブレット以下：ハンバーガー（サブメニューは展開表示） */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header .container { position: relative; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0;
  }
  .nav.is-open { display: flex; }
  .nav a { margin: 0 !important; padding: 13px 22px; font-size: .8rem; }
  .nav-has-sub { display: block; }
  .nav-sub { display: block; }
  .nav-sub a { padding-left: 40px; }
  body.theme-blue .nav { background: var(--brand-blue); }
  body.theme-blue .nav a { color: #fff; border-top: 1px solid rgba(255,255,255,.10); }
  body.theme-light .nav { background: #fff; border: 1px solid var(--border); }
  body.theme-light .nav a { border-top: 1px solid var(--border); }
}

/* ---------- ヒーロー ---------- */
.hero h1 { color: var(--brand-blue); }
.hero .tagline {
  font-family: "Outfit", sans-serif; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-dark); font-size: .82rem; margin: 0 0 6px;
}
.hero h1::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--amber); margin: 14px auto 0;
}

/* ---------- ボタン（プライマリ＝ブルーを少し明るく） ---------- */
.btn {
  background: var(--btn); color: #ffffff; font-weight: 700;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}
.btn:hover { background: var(--btn-hover); color: #ffffff; }
.btn:disabled { background: #a9c2e6; color: #eef2fb; }
.btn-ghost {
  border: 1px solid var(--brand-blue); color: var(--brand-blue); background: #fff;
}
.btn-ghost:hover { background: var(--primary-soft); }

/* ---------- カード ---------- */
.tool-card { border: 1px solid var(--border); }
.tool-card:hover { border-color: var(--amber); }
.tool-card h3 { color: var(--brand-blue); }

/* セクション見出し（左寄せ・六角バレット） */
.section-title {
  font-family: "Outfit","Noto Sans JP",sans-serif; color: var(--brand-blue);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; flex: none; width: 14px; height: 15px; background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* セクション見出し（中央・両脇に六角形）— トップのセクション用 */
.brand-heading {
  text-align: center; font-family: "Outfit","Noto Sans JP",sans-serif; font-weight: 700;
  color: var(--brand-blue); font-size: 1.5rem; line-height: 1.3; margin: 10px 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.brand-heading::before, .brand-heading::after {
  content: ""; flex: none; width: 13px; height: 14px; background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* note / prose アクセント */
.note { background: #fff8e8; border-color: #f6e2b0; color: #7a5a12; }
.prose h2 { border-left-color: var(--amber); color: var(--brand-blue); }

/* ---------- フッター（ダーク・フラット） ---------- */
.site-footer { background: var(--ink); color: #ffffff; border-top: none; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--amber-light); }

/* ============================================================
   ブランド・コンポーネント（ハニカム＝六角形モチーフ）
   シンプル＋ロゴらしさ。本番採用するものをここから選ぶ。
   ============================================================ */

/* 六角形ユーティリティ（ロゴと同じ pointy-top） */
.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }

/* 六角形アイコンバッジ */
.hexicon {
  width: 54px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(140deg, var(--brand-link) 0%, var(--brand-link-hover) 100%);
  color: #fff; font-size: 1.5rem; flex: none;
}
.hexicon--amber { background: linear-gradient(140deg, var(--amber) 0%, var(--amber-light) 100%); color: var(--ink); }
.hexicon--navy  { background: linear-gradient(140deg, var(--navy) 0%, var(--brand-link) 100%); color: #fff; }

/* ブランドカード①：六角アイコン＋上アンバーライン（hoverで浮く） */
.bcard {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 10px 26px rgba(27,79,138,.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  overflow: hidden;
}
.bcard::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.bcard:hover { transform: translateY(-3px); border-color: var(--amber);
  box-shadow: 0 6px 14px rgba(0,0,0,.07), 0 18px 40px rgba(27,79,138,.1); text-decoration: none; }
.bcard:hover::before { transform: scaleX(1); }
.bcard h3 { margin: 14px 0 6px; color: var(--brand-blue); font-family: "Outfit","Noto Sans JP",sans-serif; }
.bcard p { margin: 0; color: var(--sub); font-size: .92rem; }
/* 右上のうっすらハニカム透かし */
.bcard__watermark {
  position: absolute; right: -14px; top: -10px; width: 70px; height: 78px; opacity: .06; pointer-events: none;
}

/* ブランドカード②：六角形を左に大きく置いた横型 */
.bcard-row { display: flex; gap: 16px; align-items: center; }

/* ============================================================
   カード形状バリエーション（角を削る＝ロゴの六角形に呼応）
   ※既存 .bcard は残し、こちらを追加提案
   ============================================================ */

/* 共通：ファセット（角斜めカット）カード。stacked-clip で1.5pxの枠線を表現 */
.bcard-cut, .bcard-facet {
  --cut: 10px; display: flex; color: var(--text);
  background: var(--border);                         /* 枠線の色（下地） */
  padding: 1.5px;                                    /* この padding が枠線の太さになる（全辺均一） */
  filter: drop-shadow(0 8px 20px rgba(27,79,138,.10));
  transition: filter .15s ease, background .15s ease, transform .15s ease;
}
.bcard-cut__inner { background: #fff; padding: 22px; flex: 1; min-width: 0; }
.bcard-cut h3, .bcard-facet h3 { margin: 14px 0 6px; color: var(--brand-blue); font-family: "Outfit","Noto Sans JP",sans-serif; }
.bcard-cut p, .bcard-facet p { margin: 0; color: var(--sub); font-size: .92rem; }
.bcard-cut:hover, .bcard-facet:hover {
  background: var(--amber); transform: translateY(-3px); text-decoration: none;
  filter: drop-shadow(0 14px 30px rgba(27,79,138,.16));
}

/* 形①：右上の角だけ斜めカット */
.bcard-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.bcard-cut .bcard-cut__inner { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* 形②：左上＋右下の対角2か所を斜めカット（よりハニカム的） */
.bcard-facet { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.bcard-facet .bcard-cut__inner { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* 形③：角丸カード＋アンバーの「折り返し角」（ドッグイヤー） */
.bcard-ribbon {
  position: relative; display: block; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 10px 26px rgba(27,79,138,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bcard-ribbon:hover { transform: translateY(-3px); border-color: var(--amber); text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.07), 0 18px 40px rgba(27,79,138,.1); }
.bcard-ribbon::before { content: ""; position: absolute; top: 0; right: 0;
  border-top: 30px solid var(--amber); border-left: 30px solid transparent; }
.bcard-ribbon h3 { margin: 14px 0 6px; color: var(--brand-blue); font-family: "Outfit","Noto Sans JP",sans-serif; }
.bcard-ribbon p { margin: 0; color: var(--sub); font-size: .92rem; }

/* 六角チップ（タグ） */
.hexchip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600;
  color: var(--brand-blue); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px;
}
.hexchip::before { content: ""; width: 11px; height: 12px; flex: none; background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.hexchip--ink { color: #fff; background: var(--ink); }
.hexchip--ink::before { background: var(--amber-light); }

/* 六角形バレットのリスト */
.hexlist { list-style: none; padding: 0; margin: 0; }
.hexlist li { position: relative; padding: 6px 0 6px 26px; }
.hexlist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 13px;
  background: var(--amber); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }

/* アラート/ノート（情報=青 / 成功=緑 / 注意=アンバー） */
.alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid; border-radius: 10px;
  padding: 12px 14px; font-size: .9rem; }
.alert__hex { width: 18px; height: 20px; flex: none; margin-top: 1px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.alert--info { background: var(--primary-soft); border-color: #bcd5f3; color: #14385f; }
.alert--info .alert__hex { background: var(--brand-link); }
.alert--ok { background: #e9f7ee; border-color: #b6e3c5; color: #14633a; }
.alert--ok .alert__hex { background: #16a34a; }
.alert--warn { background: #fff8e8; border-color: #f6e2b0; color: #7a5a12; }
.alert--warn .alert__hex { background: var(--amber); }

/* フォーム要素 */
.bform { display: grid; gap: 14px; max-width: 420px; }
.bfield label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--brand-blue); }
.bfield input[type="text"], .bfield input[type="email"], .bfield textarea, .bfield select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 1rem;
  font-family: inherit; background: #fff; transition: border-color .12s, box-shadow .12s;
}
.bfield input:focus, .bfield textarea:focus, .bfield select:focus {
  outline: none; border-color: var(--brand-link); box-shadow: 0 0 0 3px rgba(36,96,167,.15);
}
.bcheck { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.bcheck input { accent-color: var(--amber); width: 17px; height: 17px; }

/* セグメント / タブ */
.bseg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.bseg button { border: none; background: #fff; color: var(--sub); padding: 9px 16px; cursor: pointer;
  font-weight: 600; font-size: .9rem; font-family: inherit; }
.bseg button + button { border-left: 1px solid var(--border); }
.bseg button.is-active { background: var(--brand-blue); color: #fff; }

/* 統計ハイライト */
.bstats { display: flex; gap: 28px; flex-wrap: wrap; }
.bstat__num { font-family: "Outfit",sans-serif; font-weight: 700; font-size: 2rem; color: var(--brand-blue); line-height: 1; }
.bstat__num em { color: var(--amber); font-style: normal; }
.bstat__label { color: var(--sub); font-size: .85rem; margin-top: 4px; }

/* ハニカム区切り線 */
.hex-divider { display: flex; justify-content: center; gap: 8px; margin: 30px 0; }
.hex-divider span { width: 14px; height: 15px; background: var(--border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.hex-divider span:nth-child(2) { background: var(--amber); }

/* バナー（ダーク背景 ＋ ハニカム） */
.bbanner { position: relative; overflow: hidden; background: var(--brand-blue); color: #fff;
  border-radius: 16px; padding: 30px 28px; }
.bbanner h3 { color: #fff; font-family: "Outfit","Noto Sans JP",sans-serif; margin: 0 0 6px; }
.bbanner p { color: rgba(255,255,255,.85); margin: 0 0 16px; }
.bbanner .btn { box-shadow: 0 4px 14px rgba(245,168,0,.35); }
.bbanner__deco { position: absolute; right: -20px; bottom: -28px; width: 150px; height: 165px; opacity: .12; }

/* ---------- セクションのバンド（区切り＋余白） ---------- */
.band { padding: 52px 0; }
.band--soft { background: #f2f6fb; }              /* 薄いブルーグレーの背景（フラット） */
.band--tools { padding-top: 52px; padding-bottom: 56px; }
.hero { padding-top: 56px; padding-bottom: 56px; }
.brand-heading + .features, .brand-heading + .tool-grid { margin-top: 26px; }

/* ---------- 特徴セクション（3つの訴求・フラット＋六角形） ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; margin: 36px 0;
}
.feature { text-align: center; padding: 6px 10px; }
.feature__hex {
  width: 66px; height: 73px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-blue); color: #fff; font-size: 1.8rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.feature__hex--amber { background: var(--amber); color: var(--ink); }
.feature h3 { font-family: "Outfit","Noto Sans JP",sans-serif; color: var(--brand-blue); margin: 0 0 8px; font-size: 1.12rem; }
.feature p { color: var(--sub); font-size: .92rem; margin: 0; line-height: 1.75; }

/* ---------- ブランド見本（テストページ用） ---------- */
.swatches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; margin: 18px 0; }
.swatch-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.swatch-chip { height: 64px; }
.swatch-meta { padding: 8px 10px; font-size: .78rem; }
.swatch-meta b { display: block; font-size: .82rem; }
.swatch-meta code { color: var(--sub); }
.demo-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
