/*
Theme Name: FEELCRAFT
Theme URI: https://feelcraft.com
Description: FEELCRAFTコーポレートサイトテーマ - v4デザイン完全移植版
Version: 1.0
Author: FEELCRAFT
Author URI: https://feelcraft.com
*/

:root {
  --navy: #1B2A4A;
  --navy-mid: #2C4070;
  --burgundy: #8B1A2F;
  --burgundy-light: #A52238;
  --bg: #F7F5F2;
  --bg2: #EEECEA;
  --white: #FFFFFF;
  --text: #1B2A4A;
  --text-muted: #5A6A8A;
  --text-light: #8A9AB8;
  --border: rgba(27,42,74,0.1);
  --border-mid: rgba(27,42,74,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--navy);
  text-decoration: none;
}
.nav-hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
}

/* ===== DRAWER ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,0.4);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 75%;
  max-width: 280px;
  height: 100svh;
  background: var(--white);
  z-index: 300;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.drawer.open { right: 0; }

.drawer-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}
.drawer-links {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.drawer-links a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.drawer-links a:active { background: var(--bg2); }
.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  opacity: 0.06;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  width: fit-content;
  opacity: 0;
  animation: fadeUp .6s ease .1s forwards;
}
.hero-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .6s ease .2s forwards;
}
.hero-title .ac { color: #C4485C; }
.hero-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .6s ease .3s forwards;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeUp .6s ease .4s forwards;
}
.btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: opacity .2s;
}
.btn-white:active { opacity: .85; }
.btn-outline-white {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  border-radius: 6px;
}
.btn-outline-white:active { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ===== SECTION BASE ===== */
.sec { padding: 64px 24px; }
.sec-bg2 { background: var(--white); }
.sec-bg3 { background: var(--bg2); }
.sec-navy { background: var(--navy); }

.sec-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.sec-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}
.divider-line {
  width: 36px;
  height: 2px;
  background: var(--burgundy);
  margin: 12px 0 32px;
}

/* ===== PROBLEM ===== */
.emotion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.chip {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.problem-card {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px 20px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2;
}
.problem-card strong { color: var(--navy); font-weight: 700; }

/* ===== HOW ===== */
.steps { margin-top: 8px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--border-mid);
  line-height: 1;
  padding-top: 2px;
}
.step-phase {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--burgundy);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}
.badge-free {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(139,26,47,0.35);
  border-radius: 100px;
  font-size: 11px;
  color: var(--burgundy);
  margin-top: 10px;
  font-weight: 500;
}

/* ===== PRICING ===== */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.p-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
}
.p-card.featured {
  border-color: var(--burgundy);
  background: #FDF9FA;
}
.p-phase {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.p-card.featured .p-phase { color: var(--burgundy); }
.p-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.p-price {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.p-price strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
}
.p-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-checks li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.p-checks li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%238B1A2F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.pricing-note {
  margin-top: 20px;
  padding: 18px 16px;
  background: var(--bg2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== WORKS ===== */
.works-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg2);
  border-radius: 8px;
  border-left: 3px solid var(--burgundy);
}

/* スライドコンテナ：左右パディングを section から引き継がず全幅に */
.works-slider-wrap {
  margin: 0 -24px;
  position: relative;
}

.works-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 24px 20px;
}
.works-slider::-webkit-scrollbar { display: none; }

/* ドット */
.works-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 24px 4px;
}
.works-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: background .2s, width .2s;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.works-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--burgundy);
}

.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 80vw;
  max-width: 300px;
}

.work-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* ダミービジュアル */
.work-visual-a {
  background: linear-gradient(135deg, #1B2A4A 0%, #2C4070 100%);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.work-visual-b {
  background: linear-gradient(135deg, #F7F5F2 0%, #EEECEA 100%);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.work-visual-c {
  background: linear-gradient(135deg, #8B1A2F 0%, #4A0D1A 100%);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.work-visual-d {
  background: linear-gradient(135deg, #1B2A4A 0%, #8B1A2F 100%);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}

.work-visual-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 0 8px;
}
.work-visual-label-dark {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(27,42,74,0.4);
  text-align: center;
  padding: 0 8px;
}
.work-visual-icon {
  font-size: 26px;
  opacity: 0.6;
}

.work-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 24px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
.work-badge.poc {
  background: rgba(139,26,47,0.12);
  color: var(--burgundy);
  border: 1px solid rgba(139,26,47,0.3);
}
.work-badge.design {
  background: rgba(27,42,74,0.1);
  color: var(--navy);
  border: 1px solid rgba(27,42,74,0.2);
}

.work-card-body { padding: 18px 16px; }

.work-industry {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 10px;
}
.work-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tag {
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ===== ABOUT ===== */
.about-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--bg2);
  border-radius: 12px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 3px;
}
.about-role {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.about-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 24px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ===== CTA ===== */
.cta-sec {
  background: var(--navy);
  padding: 72px 24px;
  text-align: center;
}
.cta-sec .sec-eyebrow { color: rgba(255,255,255,0.4); }
.cta-sec .sec-title { color: #fff; }
.cta-sec .sec-body { color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.cta-sec .divider-line {
  background: rgba(255,255,255,0.2);
  margin-left: auto;
  margin-right: auto;
}
.btn-burgundy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: background .2s;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.btn-burgundy:active { background: var(--burgundy-light); }
.cta-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===== COMPANY ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table td {
  padding: 16px 0;
  font-size: 14px;
  vertical-align: top;
  line-height: 1.7;
}
.company-table td:first-child {
  color: var(--text-light);
  width: 80px;
  min-width: 80px;
  font-size: 12px;
  padding-right: 16px;
}
.company-table td:last-child { color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.site-footer p {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin: 0;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form {
  margin-top: 24px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.contact-form label .required {
  color: #C4485C;
  margin-left: 4px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  background: rgba(255,255,255,0.1);
  transition: border-color .2s, background .2s;
  margin-bottom: 16px;
}
.contact-form textarea {
  height: 160px;
  padding: 16px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.contact-form .btn-burgundy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  background: var(--burgundy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.contact-form .btn-burgundy:active {
  background: var(--burgundy-light);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay1 { transition-delay: .1s; }
.delay2 { transition-delay: .2s; }
.delay3 { transition-delay: .3s; }

@media (min-width: 600px) {
  .hero-title { font-size: 52px; }
  .hero-btns { flex-direction: row; }
  .btn-white, .btn-outline-white { flex: 1; }
}

/* ===== NEWS ===== */
.news-sec { background: var(--white); }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity .15s;
}
.news-item:first-child { padding-top: 0; }
.news-item:active { opacity: .7; }
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-item-date {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.news-item-cat {
  height: 20px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(139,26,47,0.08);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.news-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}

/* ===== LINE SECTION ===== */
.line-sec {
  background: var(--bg2);
  padding: 64px 24px;
}
.line-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.line-card-top {
  background: #06C755;
  padding: 28px 24px 24px;
  text-align: center;
}
.line-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
}
.line-card-top h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}
.line-card-top p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.line-card-body {
  padding: 24px;
}
.line-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.line-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.line-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #06C755;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.line-step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.line-step-text strong {
  color: var(--navy);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  width: 100%;
  transition: background .2s;
}
.btn-line:active { background: #05B34B; }
.line-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
}

/* ===== FLOATING BUTTONS ===== */
.floats {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* LINE浮きボタン */
.float-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  background: #06C755;
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
  transition: transform .15s;
}
.float-line:active { transform: scale(.96); }

/* チャットボタン */
.float-chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,42,74,0.3);
  transition: transform .15s;
  flex-shrink: 0;
}
.float-chat-btn:active { transform: scale(.94); }
.float-chat-btn svg { width: 22px; height: 22px; }

/* チャットバッジ */
.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--burgundy);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.float-chat-wrap { position: relative; }

/* ===== CHAT DRAWER ===== */
.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 16px;
  width: calc(100vw - 32px);
  max-width: 340px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(27,42,74,0.15);
  z-index: 490;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.chat-header {
  background: var(--navy);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.chat-header-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.chat-header-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-notice {
  background: rgba(139,26,47,0.06);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--burgundy);
  line-height: 1.5;
}
.chat-notice-icon { font-size: 14px; flex-shrink: 0; }
.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg);
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.chat-bubble.bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingPulse 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingPulse {
  0%,60%,100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.chat-quick {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.chat-quick-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 12px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.chat-quick-btn:active { background: var(--bg2); }
.chat-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-coming {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 4px 0;
}