/* =============================================
   東央技研 upgrade.css — v2.0 全機能統合版
   ============================================= */

/* ★ #075 スマートナビ縮小 */
#header.header--shrink {
  height: 52px !important;
  background: rgba(6,15,24,0.96) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
  border-bottom-color: rgba(125,211,252,0.15) !important;
}
#header.header--shrink #header-logo img { height: 36px !important; }
#header.header--shrink #header-nav { gap: 22px !important; }
#header.header--shrink #header-nav a { font-size: 13px !important; }
#header.header--shrink #header-nav .nav-cta { padding: 8px 18px !important; font-size: 12px !important; }
@media (max-width:1024px) {
  #header.header--shrink { height: 46px !important; padding: 0 20px !important; }
  #header.header--shrink #header-logo img { height: 32px !important; }
}
@media (max-width:768px) {
  #header.header--shrink { height: 44px !important; padding: 0 16px !important; }
  #header.header--shrink #header-logo img { height: 28px !important; }
}

/* ★ #038 保険バッジ */
.insurance-badges { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.ins-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:4px;
  background:rgba(125,211,252,0.08); border:1px solid rgba(125,211,252,0.15);
  color:rgba(125,211,252,0.7); font-size:10px; font-weight:700; letter-spacing:.04em; white-space:nowrap;
}

/* ★ #073 マイクロアニメーション強化 */
.card,.service-card,.svc-card,.info-card,.side-card,.stat-item,.acc-item,.form-card,.card-sec {
  transition:opacity .6s ease,transform .6s ease,box-shadow .35s,border-color .35s !important;
}
.card:hover,.svc-card:hover,.info-card:hover,.side-card:hover { transform:translateY(-6px) !important; }
.btn-main:hover,.btn-hero-primary:hover,.cta-btn-main:hover,.btn-submit:not([disabled]):hover,.btn-request:hover {
  transform:translateY(-2px) scale(1.02) !important;
}
.form-input:focus,.form-select:focus,.form-textarea:focus,
.fg input:focus,.fg select:focus,.fg textarea:focus,
.ag input:focus,.ag select:focus,.ag textarea:focus {
  border-color:var(--blue) !important;
  box-shadow:0 0 0 3px rgba(26,115,232,.12),0 4px 12px rgba(26,115,232,.08) !important;
}

/* ===== #011 ウィザードフォーム ===== */
.wizard-progress { display:flex; gap:0; margin-bottom:32px; }
.wizard-step-indicator {
  flex:1; text-align:center; padding:14px 8px;
  font-size:11px; font-weight:700; color:var(--sub);
  border-bottom:3px solid #dce8f0; transition:color .3s,border-color .3s;
}
.wizard-step-indicator.active { color:var(--blue); border-bottom-color:var(--blue); }
.wizard-step-indicator.done { color:#10b981; border-bottom-color:#10b981; }
.wizard-step-indicator .step-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%;
  background:#dce8f0; color:var(--sub);
  font-size:11px; font-weight:900; margin-right:6px; transition:background .3s,color .3s;
}
.wizard-step-indicator.active .step-num { background:var(--blue); color:#fff; }
.wizard-step-indicator.done .step-num { background:#10b981; color:#fff; }
.wizard-panel { display:none; animation:wizFade .35s ease; }
.wizard-panel.active { display:block; }
@keyframes wizFade { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:none} }
.wizard-nav { display:flex; justify-content:space-between; margin-top:24px; gap:12px; }
.wizard-btn {
  padding:13px 36px; border-radius:6px; font-size:14px; font-weight:700;
  font-family:inherit; cursor:pointer; border:none; transition:all .2s;
}
.wizard-btn-next { background:linear-gradient(90deg,var(--blue),var(--blue-mid)); color:#fff; }
.wizard-btn-next:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(26,115,232,.3); }
.wizard-btn-prev { background:#f0f4f8; color:var(--sub); }
.wizard-btn-prev:hover { background:#e2eaf2; }

/* ===== #049 FAQ ===== */
.faq-search { width:100%; padding:14px 18px 14px 44px; border:1.5px solid #dce8f0; border-radius:10px; font-size:14px; font-family:inherit; color:var(--text); background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center; outline:none; margin-bottom:20px; transition:border-color .2s; }
.faq-search:focus { border-color:var(--blue); }
.faq-filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px; }
.faq-filter-btn { padding:7px 18px; border-radius:20px; border:1.5px solid rgba(26,115,232,0.15); background:#fff; color:var(--sub); font-size:12px; font-weight:700; cursor:pointer; font-family:inherit; transition:all .2s; }
.faq-filter-btn.active,.faq-filter-btn:hover { background:var(--blue); color:#fff; border-color:var(--blue); }
.faq-list { display:flex; flex-direction:column; gap:12px; }
.faq-item { background:#fff; border-radius:12px; border:1px solid rgba(26,115,232,0.1); box-shadow:0 2px 12px rgba(26,115,232,0.05); overflow:hidden; transition:box-shadow .3s,border-color .3s; }
.faq-item:hover { box-shadow:0 6px 24px rgba(26,115,232,0.1); border-color:rgba(26,115,232,0.18); }
.faq-question { width:100%; display:flex; align-items:center; gap:14px; padding:20px 24px; background:none; border:none; cursor:pointer; text-align:left; font-family:inherit; }
.faq-q-icon { width:32px; height:32px; border-radius:8px; flex-shrink:0; background:linear-gradient(135deg,var(--blue-light),#dceefa); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:900; color:var(--blue); }
.faq-q-text { flex:1; font-size:14px; font-weight:800; color:var(--text); line-height:1.5; }
.faq-arrow { font-size:14px; color:var(--blue); transition:transform .3s; flex-shrink:0; }
.faq-item.open .faq-arrow { transform:rotate(180deg); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .4s ease; }
.faq-item.open .faq-answer { max-height:500px; }
.faq-a-inner { padding:0 24px 20px 70px; font-size:13px; color:var(--sub); line-height:2; }

/* ===== #009 / #002 カルキュレーター ===== */
.calc-card { background:#fff; border-radius:16px; border:1px solid rgba(26,115,232,0.1); box-shadow:0 4px 28px rgba(26,115,232,0.08); padding:48px 40px; margin-bottom:40px; }
.calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 28px; margin-bottom:32px; }
.calc-group { display:flex; flex-direction:column; gap:7px; }
.calc-group.full { grid-column:1/-1; }
.calc-label { font-size:12px; font-weight:700; color:var(--text); }
.calc-input,.calc-select { width:100%; padding:13px 16px; border:1.5px solid #dce8f0; border-radius:8px; font-size:14px; font-family:inherit; color:var(--text); background:#fafcff; outline:none; transition:border-color .2s,box-shadow .2s; }
.calc-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a6ea8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.calc-btn { display:inline-flex; align-items:center; gap:10px; padding:16px 40px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); color:#fff; font-size:15px; font-weight:700; border:none; border-radius:6px; cursor:pointer; font-family:inherit; transition:transform .2s,box-shadow .2s; }
.calc-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(26,115,232,.35); }
.calc-result { display:none; margin-top:32px; padding:32px; background:linear-gradient(135deg,#020c14,#061a2e); border-radius:14px; border:1px solid rgba(125,211,252,0.15); }
.calc-result.show { display:block; }
.calc-result-label { font-size:10px; font-weight:700; letter-spacing:.2em; color:rgba(125,211,252,0.5); text-transform:uppercase; margin-bottom:8px; }
.calc-result-range { font-size:clamp(28px,4vw,40px); font-weight:900; color:#7dd3fc; line-height:1.2; margin-bottom:12px; }
.calc-result-note { font-size:12px; color:rgba(255,255,255,0.5); line-height:1.8; }
.calc-result-cta { margin-top:20px; display:inline-flex; align-items:center; gap:8px; padding:13px 28px; background:rgba(125,211,252,0.1); border:1px solid rgba(125,211,252,0.25); border-radius:6px; color:#7dd3fc; font-size:13px; font-weight:700; text-decoration:none; transition:background .3s; }
.calc-result-cta:hover { background:rgba(125,211,252,0.18); }

/* ===== #087 安全・保険 ===== */
.safety-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-bottom:48px; }
.safety-card { background:#fff; border-radius:14px; padding:32px 28px; border:1px solid rgba(26,115,232,0.1); box-shadow:0 3px 18px rgba(26,115,232,0.06); transition:transform .3s,box-shadow .3s; }
.safety-card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(26,115,232,0.12); }
.safety-icon { width:48px; height:48px; border-radius:12px; background:linear-gradient(135deg,var(--blue),var(--blue-mid)); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.safety-icon svg { width:22px; height:22px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.safety-card h3 { font-size:16px; font-weight:900; color:var(--text); margin-bottom:10px; }
.safety-card p { font-size:13px; color:var(--sub); line-height:1.9; }

/* ===== #048 ホワイトペーパーDL ===== */
.wp-cta-banner { background:linear-gradient(135deg,var(--blue-light),#d6ecfa); border-radius:14px; padding:32px 36px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; border:1px solid rgba(26,115,232,0.12); margin:40px 0; }
.wp-cta-banner-text h3 { font-size:16px; font-weight:900; color:var(--text); margin-bottom:6px; }
.wp-cta-banner-text p { font-size:13px; color:var(--sub); line-height:1.7; }
.wp-cta-btn { display:inline-flex; align-items:center; gap:8px; padding:13px 28px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); color:#fff; font-size:14px; font-weight:700; border:none; border-radius:6px; cursor:pointer; font-family:inherit; text-decoration:none; transition:transform .2s; white-space:nowrap; }
.wp-cta-btn:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(26,115,232,.3); }
.wp-modal-overlay { position:fixed; inset:0; z-index:99999; background:rgba(6,21,32,0.75); backdrop-filter:blur(5px); display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .3s; }
.wp-modal-overlay.open { opacity:1; pointer-events:all; }
.wp-modal { background:#fff; border-radius:20px; max-width:440px; width:100%; padding:40px 32px; text-align:center; }
.wp-modal h3 { font-size:18px; font-weight:900; color:var(--text); margin-bottom:8px; }
.wp-modal p { font-size:13px; color:var(--sub); line-height:1.8; margin-bottom:20px; }
.wp-modal input { width:100%; padding:12px 16px; border:1.5px solid #dce8f0; border-radius:8px; font-size:14px; margin-bottom:10px; font-family:inherit; outline:none; box-sizing:border-box; }
.wp-modal input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(26,115,232,.1); }
.wp-modal-btn { width:100%; padding:14px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); color:#fff; font-size:14px; font-weight:700; border:none; border-radius:6px; cursor:pointer; font-family:inherit; }

/* ===== #016 カレンダー予約 ===== */
.booking-card { background:#fff; border-radius:16px; border:1px solid rgba(26,115,232,0.1); box-shadow:0 4px 28px rgba(26,115,232,0.08); overflow:hidden; }
.booking-card-header { padding:20px 28px; border-bottom:1px solid #eef3f8; display:flex; align-items:center; gap:14px; background:linear-gradient(90deg,#f8fbff,#fff); }
.booking-card-header h3 { font-size:15px; font-weight:900; color:var(--text); }
.booking-card iframe { width:100%; height:600px; border:0; }
.booking-placeholder { padding:48px 32px; text-align:center; }
.booking-placeholder p { font-size:13px; color:var(--sub); line-height:1.8; margin-bottom:16px; }

/* ===== #033 簡易チャット ===== */
#chat-toggle {
  display:none; /* デフォルト非表示。#001 AIチャットボット導入後はこちらをOFF */
  position:fixed; bottom:100px; right:20px; z-index:9996;
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--blue-mid));
  border:none; cursor:pointer;
  box-shadow:0 4px 16px rgba(26,115,232,0.4);
  align-items:center; justify-content:center;
}
#chat-toggle svg { width:24px; height:24px; stroke:#fff; fill:none; stroke-width:2; }
#chat-panel {
  position:fixed; bottom:100px; right:20px; z-index:9996;
  width:340px; max-height:480px;
  background:#fff; border-radius:16px;
  box-shadow:0 12px 48px rgba(0,0,0,0.2);
  border:1px solid rgba(26,115,232,0.1);
  transform:translateY(20px) scale(0.95); opacity:0; pointer-events:none;
  transition:all .3s cubic-bezier(.34,1.56,.64,1);
  display:flex; flex-direction:column; overflow:hidden;
}
#chat-panel.open { transform:none; opacity:1; pointer-events:all; }
.chat-header { padding:16px 20px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); color:#fff; display:flex; align-items:center; justify-content:space-between; }
.chat-header h4 { font-size:14px; font-weight:800; }
#chat-close { background:none; border:none; color:rgba(255,255,255,0.7); cursor:pointer; font-size:18px; }
.chat-body { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; min-height:200px; }
.chat-msg { max-width:80%; padding:10px 14px; border-radius:12px; font-size:13px; line-height:1.6; }
.chat-msg-bot { background:var(--blue-light); color:var(--text); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-msg-user { background:var(--blue); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.chat-input-area { padding:12px; border-top:1px solid #eef3f8; display:flex; gap:8px; }
.chat-input-area input { flex:1; padding:10px 14px; border:1.5px solid #dce8f0; border-radius:8px; font-size:13px; font-family:inherit; outline:none; }
.chat-input-area button { padding:10px 16px; background:var(--blue); color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; font-size:13px; }

/* ===== #063 3Dスキャン ===== */
.coming-soon-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 16px; border-radius:20px;
  background:linear-gradient(90deg,rgba(245,158,11,0.1),rgba(245,158,11,0.05));
  border:1px solid rgba(245,158,11,0.3);
  color:#b45309; font-size:12px; font-weight:700;
}
.scan-features { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:32px 0; }
.scan-feature { text-align:center; padding:28px 20px; background:#fff; border-radius:14px; border:1px solid rgba(26,115,232,0.1); }
.scan-feature-icon { font-size:32px; margin-bottom:12px; }
.scan-feature h4 { font-size:14px; font-weight:900; color:var(--text); margin-bottom:6px; }
.scan-feature p { font-size:12px; color:var(--sub); line-height:1.8; }

/* ===== #085 LP ===== */
.lp-hero { min-height:60vh; display:flex; align-items:center; background:linear-gradient(135deg,#020c14,#061a2e,#0a2840); position:relative; overflow:hidden; padding:120px 20px 80px; }
.lp-hero-inner { max-width:700px; margin:0 auto; text-align:center; position:relative; z-index:2; }
.lp-hero h1 { font-size:clamp(28px,5vw,48px); font-weight:900; color:#fff; line-height:1.4; margin-bottom:20px; }
.lp-hero h1 span { color:#7dd3fc; }
.lp-hero p { font-size:15px; color:rgba(255,255,255,0.6); line-height:2; margin-bottom:36px; }

/* ===== #045 ブログ ===== */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.blog-card { background:#fff; border-radius:14px; overflow:hidden; border:1px solid rgba(26,115,232,0.1); box-shadow:0 2px 16px rgba(26,115,232,0.06); transition:transform .3s,box-shadow .3s; }
.blog-card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(26,115,232,0.12); }
.blog-card-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,var(--blue-light),#d6ecfa); display:flex; align-items:center; justify-content:center; }
.blog-card-thumb img { width:100%; height:100%; object-fit:cover; }
.blog-card-body { padding:20px 24px; }
.blog-card-cat { font-size:10px; font-weight:700; color:var(--blue); letter-spacing:.1em; text-transform:uppercase; margin-bottom:8px; }
.blog-card-title { font-size:15px; font-weight:900; color:var(--text); line-height:1.5; margin-bottom:8px; }
.blog-card-title a { color:inherit; text-decoration:none; }
.blog-card-title a:hover { color:var(--blue); }
.blog-card-date { font-size:11px; color:var(--sub); }
.blog-pagination { display:flex; justify-content:center; gap:6px; margin-top:40px; }
.blog-pagination a,.blog-pagination span { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; font-size:13px; font-weight:700; text-decoration:none; border:1px solid #dce8f0; color:var(--sub); transition:all .2s; }
.blog-pagination span,.blog-pagination a:hover { background:var(--blue); color:#fff; border-color:var(--blue); }

/* ===== レスポンシブ ===== */
@media (max-width:768px) {
  .calc-grid { grid-template-columns:1fr; }
  .calc-card { padding:32px 20px; }
  .safety-grid { grid-template-columns:1fr; }
  .faq-a-inner { padding-left:24px; }
  .wizard-progress { overflow-x:auto; }
  .wizard-step-indicator { font-size:10px; padding:8px 4px; min-width:0; }
  .wp-cta-banner { flex-direction:column; align-items:flex-start; }
  .scan-features { grid-template-columns:1fr; }
  .blog-grid { grid-template-columns:1fr; }
  #chat-panel { width:calc(100vw - 40px); right:20px; bottom:80px; }
  .booking-card iframe { height:400px; }
}
