/* A3WORKS 配色は名刺に合わせる：黒地（リッチブラック）＋黄緑（CMYK 24/0/85/0 相当） */
:root {
  --ink: #18191b;
  --ink-2: #222327;
  --lime: #c1f526;
  --lime-dark: #8fb800;
  --paper: #ffffff;
  --soft: #f4f5f0;
  --text: #1f2023;
  --muted: #5d6066;
  --line: #e2e4dc;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(24, 25, 27, .96);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--lime); color: var(--ink);
  font-weight: 900; font-size: 18px; letter-spacing: -.02em;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #d9dbd4; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--lime); }
.nav .nav-cta { background: var(--lime); color: var(--ink); padding: 6px 14px; font-weight: 700; }
.nav .nav-cta:hover { color: var(--ink); background: #d4ff52; }

/* ファーストビュー */
.hero {
  background: var(--ink);
  color: #fff;
  border-top: 6px solid var(--lime);
  padding: 96px 0 104px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "A3"; position: absolute; right: -2vw; bottom: -6vw;
  font-size: 34vw; font-weight: 900; line-height: 1; color: rgba(193, 245, 38, .06);
  pointer-events: none;
}
.eyebrow { color: var(--lime); font-weight: 700; letter-spacing: .2em; font-size: 13px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.35; margin: 0 0 24px; font-weight: 900; letter-spacing: .01em; }
.lead { color: #c9cbc4; font-size: clamp(15px, 1.8vw, 18px); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn { display: inline-block; padding: 14px 26px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #d4ff52; }
.btn-ghost { border: 1px solid #5b5e55; color: #fff; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* セクション共通 */
.section { padding: 88px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(22px, 3vw, 30px); line-height: 1.5; margin: 0 0 36px; font-weight: 900; }
.section-title span {
  display: block; width: fit-content;
  font-size: 13px; letter-spacing: .14em; font-weight: 700;
  background: var(--ink); color: var(--lime); padding: 2px 10px; margin-bottom: 14px;
}
.section-title.light span { background: var(--lime); color: var(--ink); }
.section-title small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.section-lead { color: #c9cbc4; max-width: 760px; margin: -12px 0 40px; }

/* 3つのA */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 28px 26px; background: #fff; }
.tag { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 900; padding: 0 10px; margin: 0 0 12px; }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

.refs { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.refs-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--lime-dark); letter-spacing: .04em; }
.refs ul { list-style: none; padding: 0; margin: 0; }
.refs li { font-size: 13px; line-height: 1.6; margin: 0 0 6px; padding-left: 14px; position: relative; }
.refs li::before { content: "→"; position: absolute; left: 0; color: var(--lime-dark); }
.refs a { color: var(--text); text-decoration: underline; text-decoration-color: var(--lime-dark); text-underline-offset: 3px; }
.card p:last-child { margin: 0; }
.card > p:not(.tag) { color: var(--muted); font-size: 15px; }

/* 運営メディア */
.media-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.media-inner p { margin: 0; color: var(--muted); max-width: 640px; }
.btn-dark { background: var(--ink); color: var(--lime); white-space: nowrap; }
.btn-dark:hover { background: #000; }
.profile a { color: var(--text); text-decoration-color: var(--lime-dark); }

/* できること */
.works { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #33352f; border: 1px solid #33352f; }
.works li { background: var(--ink-2); padding: 22px 24px; }
.works strong { display: block; color: var(--lime); font-size: 17px; margin-bottom: 4px; }
.works span { color: #c9cbc4; font-size: 14px; }
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.target { border-left: 3px solid var(--lime); padding: 4px 0 4px 18px; }
.target h3 { margin: 0 0 6px; font-size: 17px; }
.target p { margin: 0; color: #c9cbc4; font-size: 14px; }
.note { margin: 40px 0 0; font-size: 13px; color: #9a9d94; }

/* 進め方 */
.flow { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow li { background: var(--soft); padding: 24px 22px; position: relative; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--lime-dark); border-right: 2px solid var(--lime-dark); transform: translateY(-50%) rotate(45deg);
}
.step { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--lime-dark); }
.flow h3 { margin: 0 0 8px; font-size: 18px; }
.flow li p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); margin: 0; }

/* 代表 */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin: 0 0 16px; }
.profile { margin: 0; background: #fff; border: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 88px 1fr; border-bottom: 1px solid var(--line); }
.profile div:last-child { border-bottom: 0; }
.profile dt { background: var(--ink); color: var(--lime); font-weight: 700; font-size: 13px; padding: 14px; }
.profile dd { margin: 0; padding: 14px 16px; font-size: 14px; }

/* ひとこと相談（2026-10-10 作り直し） */
.consult-intro { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.hoo-big { width: 180px; height: 180px; flex: none; border-radius: 50%; background: #2a2c27; padding: 10px; box-shadow: 0 0 0 4px var(--lime); }
.consult-intro .section-lead { margin: 0; }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.chat { background: #fff; color: var(--text); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--ink-2); color: #fff; border-bottom: 3px solid var(--lime); }
.chat-head .avatar { position: relative; flex: none; }
.chat-head .avatar img { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: block; }
.chat-head .online { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #2bd96b; border: 2px solid var(--ink-2); }
.chat-head strong { display: block; font-size: 18px; }
.chat-head small { color: #c9cbc4; font-size: 12px; }
.chat-log { padding: 18px 16px; height: 460px; overflow-y: auto; background: #eef1e8; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 94%; }
.msg.bot img { width: 48px; height: 48px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.msg .bubble { padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.75; }
.msg .bubble p { margin: 0; white-space: pre-wrap; }
.msg.bot .bubble { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg.me { align-self: flex-end; }
.msg.me .bubble { background: var(--lime); color: var(--ink); border-bottom-right-radius: 6px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: transform .12s, background .12s; }
.chip:hover:not(:disabled) { background: var(--lime); transform: translateY(-1px); }
.chip.ghost { border-style: dashed; color: var(--muted); border-color: #9a9d94; }
.chip.picked { background: var(--lime); }
.chip:disabled:not(.picked) { opacity: .35; cursor: default; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9d94; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-input { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-input textarea { flex: 1; font: inherit; font-size: 16px; line-height: 1.5; padding: 11px 16px; border: 2px solid var(--line); border-radius: 22px; resize: none; max-height: 140px; outline: none; }
.chat-input textarea:focus { border-color: var(--lime-dark); }
.chat-input button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--lime); display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.chat-input button:not(:disabled):hover { transform: scale(1.06); }
.chat-input button:disabled { background: #d8dad2; color: #fff; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-note { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--muted); background: #fff; }

/* LINEのカード */
.line-card { background: linear-gradient(160deg, #06c755 0%, #04a647 100%); color: #fff; border-radius: 18px; padding: 26px 24px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.line-badge { position: relative; width: 56px; height: 56px; margin: 0 auto 12px; }
.line-badge svg { position: relative; z-index: 1; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); animation: bob 2.4s ease-in-out infinite; }
.pulse { position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.55); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.line-card h3 { margin: 0 0 6px; font-size: 20px; }
.line-card p { margin: 0 0 16px; font-size: 14px; color: #eafff1; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #06a64a; font-weight: 900; font-size: 16px; padding: 14px 22px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .12s; }
.btn-line:hover { transform: translateY(-2px); }
.line-qr { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.line-qr img { background: #fff; padding: 8px; border-radius: 12px; }
.line-qr small { font-size: 12px; color: #eafff1; line-height: 1.6; }
.line-mail { margin: 16px 0 0 !important; font-size: 12.5px !important; }
.line-mail a { color: #fff; }

/* スマートフォンの画面の端に出るLINEボタン */
.line-fab { display: none; position: fixed; right: 14px; bottom: 16px; z-index: 30; align-items: center; gap: 6px; background: #06c755; color: #fff; text-decoration: none; padding: 12px 16px 12px 14px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.35); font-size: 14px; }
.line-fab .pulse { border-radius: 999px; background: rgba(6,199,85,.6); }
.line-fab svg, .line-fab b { position: relative; z-index: 1; }

/* お問い合わせ */
.contact-box {
  display: inline-block; border: 2px dashed #5b5e55; color: #c9cbc4;
  padding: 18px 28px; margin: 0;
}

/* フッター */
.site-footer { background: #0f1011; color: #9a9d94; padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.small-brand .mark { width: 30px; height: 30px; font-size: 14px; }
.small-brand .brand-name { color: #fff; font-size: 15px; }

/* スマートフォン */
.pc { display: inline; }
@media (max-width: 860px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; row-gap: 6px; }
  .nav { order: 3; width: 100%; gap: 0; justify-content: space-between; overflow-x: auto; border-top: 1px solid #2c2e2a; }
  .nav a { font-size: 13px; padding: 10px 6px; white-space: nowrap; }
  .nav .nav-cta { position: absolute; top: 10px; right: 16px; padding: 6px 12px; font-size: 13px; }
  .site-header .wrap { position: relative; }
  html { scroll-padding-top: 108px; }
  .cards, .targets, .works, .flow, .about { grid-template-columns: 1fr; }
  .media-inner { flex-direction: column; align-items: flex-start; }
  .consult-intro { flex-direction: column; text-align: center; gap: 16px; }
  .hoo-big { width: 140px; height: 140px; }
  .consult-intro .section-title span { margin-left: auto; margin-right: auto; }
  .consult-grid { grid-template-columns: 1fr; }
  .chat-log { height: 440px; padding: 14px 10px; }
  .msg.bot img { width: 42px; height: 42px; }
  .line-qr { display: none; }
  .line-fab { display: inline-flex; }
  body { padding-bottom: 70px; }
  .flow li:not(:last-child)::after { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .pc { display: none; }
  .wrap { padding: 0 16px; }
}

/* ホーム画面から全画面で開いたときの「更新」ボタン */
.reload-btn { position: fixed; left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 40; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 900; padding: 12px 18px 12px 14px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.35); cursor: pointer; }
.reload-btn:active { transform: scale(.96); }

/* ひとこと相談 第3版：答えのカード */
.msg .bubble { max-width: 100%; }
.chip.big { font-size: 14.5px; padding: 10px 16px; }
.chip-icon { margin-right: 6px; }
.chip.line { border-color: #06c755; color: #06a64a; }
.chip.line:hover:not(:disabled) { background: #06c755; color: #fff; }
.typing { display: flex; align-items: center; gap: 5px; padding: 14px 16px !important; }
.typing em { font-style: normal; font-size: 12px; color: #9a9d94; margin-left: 6px; }
.answer-empathy { font-weight: 700; margin: 0 0 10px !important; }
.answer-label { margin: 10px 0 6px !important; font-size: 12px; font-weight: 900; letter-spacing: .06em; color: var(--lime-dark); }
.answer-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.answer-steps li { counter-increment: st; position: relative; padding: 10px 12px 10px 44px; background: #f4f6ee; border-radius: 12px; font-size: 14px; line-height: 1.65; }
.answer-steps li::before { content: counter(st); position: absolute; left: 10px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.answer-point { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: #fffbe6; border: 1px dashed #e0c200; font-size: 13.5px; }
.answer-point b { display: block; font-size: 12px; color: #8a6d00; margin-bottom: 2px; }
.article-cards { display: grid; gap: 8px; }
.article-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .12s, transform .12s; }
.article-card:hover { border-color: var(--lime-dark); transform: translateY(-1px); }
.article-card img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #eef1e8; }
.article-text { display: grid; gap: 2px; min-width: 0; }
.article-text strong { font-size: 13.5px; line-height: 1.5; }
.article-text small { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.answer-service { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.7; }
.answer-service b { display: inline-block; background: var(--lime); color: var(--ink); font-size: 12px; padding: 1px 8px; border-radius: 6px; margin-bottom: 4px; }
.answer-service span { display: block; }
@media (max-width: 860px) {
  .article-card img { width: 80px; height: 54px; }
  .msg { max-width: 100%; }
}

/* 担当者への相談（チャット内の連絡先の欄） */
.contact-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f4f6ee; }
.contact-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.contact-form input, .contact-form select { font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus { outline: none; border-color: var(--lime-dark); }
.contact-form input.bad { border-color: #e5484d; background: #fff5f5; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { font: inherit; font-size: 14px; font-weight: 700; padding: 9px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--lime); }
.contact-send { font: inherit; font-size: 15px; font-weight: 900; padding: 13px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.contact-send:disabled { opacity: .6; cursor: wait; }
.contact-note { margin: 0 !important; font-size: 11.5px; color: var(--muted); }

/* 分類ボタンは2列に並べる（スマートフォンで縦に長くなりすぎないように） */
.chips:has(.chip.big) { display: grid; grid-template-columns: 1fr 1fr; }
.chips:has(.chip.big) .chip { text-align: left; }
.line-fab.hide { opacity: 0; pointer-events: none; transform: translateY(20px); }
.line-fab { transition: opacity .2s, transform .2s; }
.update-notice { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 100px); z-index: 45; font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.35); max-width: 92vw; }
.answer-prompt { margin-top: 12px; padding: 12px; border-radius: 12px; background: #eef6ff; border: 1px solid #b9d7f5; }
.answer-prompt b { display: block; font-size: 12px; color: #1d5fa3; margin-bottom: 4px; }
.answer-prompt p { margin: 0 0 8px !important; font-size: 13.5px; line-height: 1.7; }
.copy-btn { font: inherit; font-size: 13px; font-weight: 900; padding: 7px 14px; border-radius: 999px; border: 2px solid #1d5fa3; background: #fff; color: #1d5fa3; cursor: pointer; }
.copy-btn:active { background: #1d5fa3; color: #fff; }
