/* 中岡写真館：かんたん質問 c5（2026-11-26。c5＝上へ戻るボタンをチャットのボタンの左横へ／c4 は JS だけの直し。c2＝確認用サイトの帯の上に開く／c3＝押したあと読み込む間の表示）。色はサイトの金茶 #80683d・こげ茶 #372820・生成り #f4f2ee */
:root{--nk-chat-b:84px;--nk-chat-pt:142px;--nk-chat-pvb:0px}
.nk-chat-launch{position:fixed;right:14px;bottom:var(--nk-chat-b);z-index:9990;display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:56px;margin:0;padding:0;border:0;border-radius:50%;background:#80683d;color:#fff;cursor:pointer;box-shadow:0 2px 8px rgba(55,40,32,.28);font-family:inherit;line-height:1;-webkit-tap-highlight-color:transparent;transition:bottom .22s ease-out,background-color .16s ease}
.nk-chat-launch svg{width:24px;height:24px;fill:currentColor}
.nk-chat-launch-l{display:none}
.nk-chat-launch-s{display:block;margin-top:3px;font-size:10px;font-weight:700;letter-spacing:.06em}
.nk-chat-launch:hover{background:#60491f}
.nk-chat-launch[aria-busy="true"]{opacity:.75;cursor:progress}
.nk-chat-launch:focus-visible{outline:3px solid #372820;outline-offset:3px}
html.nk-chat-on #pagetop:not(.hide){bottom:var(--nk-chat-pt)!important;right:var(--nk-chat-ptr,82px)!important}
html.nk-chat-open .nk-chat-launch{display:none}

.nk-chat-shade{position:fixed;inset:0;z-index:9991;background:rgba(36,26,20,.38);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility 0s linear .18s}
.nk-chat-shade.is-on{opacity:1;visibility:visible;transition:opacity .18s ease}

.nk-chat-panel{position:fixed;left:0;right:0;bottom:var(--nk-chat-pvb,0px);z-index:9992;display:flex;flex-direction:column;height:min(calc(82vh - var(--nk-chat-pvb,0px)),640px);height:min(calc(82dvh - var(--nk-chat-pvb,0px)),640px);background:#fff;color:#372820;border-radius:12px 12px 0 0;box-shadow:0 -4px 18px rgba(55,40,32,.18);font-size:15px;line-height:1.7;letter-spacing:.02em;transform:translateY(24px);opacity:0;transition:transform .2s ease-out,opacity .2s ease-out}
.nk-chat-panel.is-in{transform:none;opacity:1}
.nk-chat-panel[hidden]{display:none}
.nk-chat-panel *{box-sizing:border-box}

.nk-chat-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;padding:10px 8px 10px 18px;border-bottom:1px solid #e2dacb}
.nk-chat-title{margin:0;font-size:16px;font-weight:700;letter-spacing:.06em}
.nk-chat-title-en{display:block;font-family:Caveat,"Segoe Script",cursive;font-weight:500;font-size:15px;line-height:1.1;color:#80683d;letter-spacing:.04em}
.nk-chat-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:#372820;cursor:pointer;border-radius:4px}
.nk-chat-close svg{width:22px;height:22px;fill:currentColor}
.nk-chat-close:focus-visible{outline:2px solid #80683d;outline-offset:1px}

.nk-chat-log{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 14px 8px;background:#f4f2ee;position:relative}
.nk-chat-msg{max-width:88%;margin:0 0 10px;padding:10px 14px;border-radius:2px 12px 12px 12px;background:#fff;border:1px solid #e2dacb;word-break:normal;overflow-wrap:anywhere}
.nk-chat-me{margin-left:auto;border-radius:12px 2px 12px 12px;background:#80683d;border-color:#80683d;color:#fff;font-weight:600}
.nk-chat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.nk-chat-chip{min-height:44px;margin:0;padding:8px 14px;border:1px solid #80683d;border-radius:22px;background:#fff;color:#5d4720;font:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;text-align:left}
.nk-chat-chip:hover{background:#f7f1e6}
.nk-chat-chip.is-sub{border-color:#cbbd9f;color:#6b5a45;font-weight:400}
.nk-chat-qs{display:flex;flex-direction:column;margin:0 0 14px;border:1px solid #e2dacb;background:#fff}
.nk-chat-q{display:block;width:100%;min-height:44px;margin:0;padding:11px 34px 11px 14px;border:0;border-top:1px solid #eee7da;background:#fff;color:#372820;font:inherit;font-size:14px;line-height:1.55;text-align:left;cursor:pointer;position:relative}
.nk-chat-q:first-child{border-top:0}
.nk-chat-q::after{content:"";position:absolute;right:15px;top:50%;width:7px;height:7px;margin-top:-4px;border-top:1.5px solid #80683d;border-right:1.5px solid #80683d;transform:rotate(45deg)}
.nk-chat-q:hover{background:#f7f1e6}
.nk-chat-links{margin:-2px 0 12px}
.nk-chat-link{display:inline-block;padding:4px 0;color:#6e5426;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.nk-chat-chip:focus-visible,.nk-chat-q:focus-visible,.nk-chat-link:focus-visible,.nk-chat-act:focus-visible,.nk-chat-go:focus-visible,.nk-chat-input:focus-visible{outline:2px solid #372820;outline-offset:2px}

.nk-chat-foot{flex:0 0 auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e2dacb;background:#fff}
.nk-chat-form{display:flex;gap:6px;margin:0 0 10px}
.nk-chat-input{flex:1 1 auto;min-width:0;height:44px;margin:0;padding:0 12px;border:1px solid #b9ab92;border-radius:4px;background:#fff;color:#372820;font:inherit;font-size:16px}
.nk-chat-input::placeholder{color:#8a7b66}
.nk-chat-go{flex:0 0 44px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:4px;background:#80683d;color:#fff;cursor:pointer}
.nk-chat-go svg{width:20px;height:20px;fill:currentColor}
.nk-chat-acts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.nk-chat-act{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 4px;border-radius:4px;background:#f4f2ee;color:#372820;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;text-align:center;white-space:nowrap}
.nk-chat-act svg{flex:0 0 auto;width:18px;height:18px;fill:#80683d}
.nk-chat-act.line{background:#06c755;color:#fff}
.nk-chat-act.line svg{fill:#fff}
.nk-chat-act.visit{background:#80683d;color:#fff}
.nk-chat-act.visit svg{fill:#fff}
.nk-chat-act:hover{opacity:.88}
.nk-chat-note{margin:8px 0 0;font-size:12px;line-height:1.4;color:#6b5a45;text-align:center}

@media (min-width:871px){
  .nk-chat-launch{right:24px;flex-direction:row;width:auto;height:52px;padding:0 20px 0 16px;border-radius:26px;gap:8px}
  .nk-chat-launch svg{width:22px;height:22px}
  .nk-chat-launch-l{display:block;font-size:14px;font-weight:700;letter-spacing:.06em}
  .nk-chat-launch-s{display:none}
  .nk-chat-shade{background:transparent}
  .nk-chat-panel{left:auto;right:24px;bottom:calc(24px + var(--nk-chat-pvb,0px));width:380px;height:min(640px,calc(100vh - 140px - var(--nk-chat-pvb,0px)));border-radius:10px;box-shadow:0 8px 28px rgba(55,40,32,.22)}
}
@media (max-width:359px){
  .nk-chat-act{font-size:12px;gap:3px}
  .nk-chat-act svg{width:16px;height:16px}
}
@media (prefers-reduced-motion:reduce){
  .nk-chat-launch,.nk-chat-panel,.nk-chat-shade{transition:none}
}
@media print{.nk-chat-launch,.nk-chat-panel,.nk-chat-shade{display:none!important}}
