/* ご意見・お問い合わせ — Author: 井上康文
   ITに不慣れな人でも迷わない、明るくやさしい窓口。アプリのトークンに準拠。 */

.app-foot {
  margin-top: 10px;
  padding: 16px 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
}
/* 感想・ご要望ボタン + 公式SNS を横1列に */
.foot-actions { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.foot-feedback {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: var(--pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--primary-hv);
  font-weight: 700; font-size: .82rem; box-shadow: var(--shadow);
}
.foot-feedback svg { flex: 0 0 auto; }
.foot-feedback:active { transform: scale(.98); }
.foot-link { font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-link:active { opacity: .7; }
.foot-link:focus-visible { outline: 3px solid rgba(168, 79, 98, .28); outline-offset: 2px; border-radius: 4px; }

.foot-sns { display: flex; gap: 14px; }
.foot-sns a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); box-shadow: var(--shadow); }
.foot-sns a:active { transform: scale(.96); }
.foot-sns svg { width: 20px; height: 20px; }
.foot-sns a:focus-visible { outline: 3px solid rgba(168, 79, 98, .28); outline-offset: 2px; }

.fb-modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(251,250,248,.97);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(18px, env(safe-area-inset-top,0px)) 16px calc(24px + var(--safe-b));
}
.fb-modal[hidden] { display: none; }

.fb-card {
  position: relative; width: 100%; max-width: 33rem; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden;
}
.fb-close {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow);
}

.fb-hero {
  padding: 24px 22px 18px;
  background: linear-gradient(180deg, var(--primary-soft), #ffffff);
}
.fb-hero h2 { margin: 0 0 .3em; font-size: 1.4rem; font-weight: 700; letter-spacing: .01em; color: var(--text); max-width: 15em; text-wrap: balance; }
.fb-hero p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 24em; line-height: 1.7; }

.fb-body { padding: 18px 20px 22px; }
.fb-field { margin-top: 20px; }
.fb-field:first-child { margin-top: 0; }
.fb-lbl { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.fb-opt { font-weight: 600; color: var(--muted); font-size: .72rem; margin-left: 6px; background: var(--surface-warm); border: 1px solid var(--border); border-radius: var(--pill); padding: 1px 8px; }

.fb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-kind {
  font: inherit; padding: 14px 10px; min-height: 62px;
  border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface-warm); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.3;
}
.fb-kind svg { width: 25px; height: 25px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fb-kind b { font-weight: 700; font-size: .98rem; }
.fb-kind small { color: var(--muted); font-size: .75rem; }
.fb-kind.is-on { border-color: var(--primary); background: var(--primary-soft); }
.fb-kind.is-on svg { stroke: var(--primary); }
.fb-kind:active { transform: scale(.985); }

#fbText, #fbContact {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface-warm); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px; font-size: 16px;
}
#fbText { min-height: 128px; resize: vertical; line-height: 1.7; }
#fbContact { min-height: var(--btn-h); }
#fbText:focus, #fbContact:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff; }
.fb-hint { margin: 8px 3px 0; color: var(--muted); font-size: .8rem; }
.fb-hint.warm { color: var(--primary-hv); }

.fb-check {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px;
  background: var(--surface-warm); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; cursor: pointer;
}
.fb-check input { margin-top: 2px; width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.fb-check-t b { font-weight: 700; font-size: .92rem; }
.fb-check-t small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; line-height: 1.55; }
.fb-chip { display: inline-flex; margin-top: 8px; font-size: .74rem; color: #486b41; background: var(--secondary-soft); border-radius: var(--pill); padding: 4px 10px; }
.fb-chip:empty { display: none; }

/* スパム対策の隠しフィールド(人には見えない) */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-send {
  margin-top: 22px; width: 100%; min-height: 56px;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--primary); border: none; border-radius: 15px; letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(168,79,98,.28);
}
.fb-send:active { transform: translateY(1px); }
.fb-send:disabled { opacity: .6; }
.fb-fine { margin: 14px 4px 0; color: var(--muted); font-size: .76rem; text-align: center; }

.fb-thanks { display: none; text-align: center; padding: 40px 24px 34px; }
.fb-thanks .fb-mark { width: 88px; height: 88px; margin: 0 auto 16px; display: block; }
.fb-thanks h2 { margin: 0 0 .35em; font-size: 1.3rem; color: var(--text); }
.fb-thanks p { margin: 0 auto; max-width: 22rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.fb-again { margin-top: 20px; min-height: 48px; padding: 0 24px; font: inherit; font-weight: 700; background: var(--surface-warm); color: var(--text); border: 1.5px solid var(--border); border-radius: 13px; }

#fbCard[data-sent="1"] .fb-form { display: none; }
#fbCard[data-sent="1"] .fb-thanks { display: block; }

.foot-feedback:focus-visible, .fb-close:focus-visible, .fb-kind:focus-visible,
.fb-send:focus-visible, .fb-again:focus-visible, #fbText:focus-visible, #fbContact:focus-visible {
  outline: 3px solid rgba(168, 79, 98, .28); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { .foot-feedback, .fb-kind, .fb-send { transition: none; } }
