/* ========================================
匿名掲示板（2026-10）
サイトの変数（--color-primary 等）に合わせる。1rem = 10px
======================================== */

:root {
  --hcb-card: #fff;
  --hcb-line: #DCE6EC;
  --hcb-soft: #EAF1F5;
  --hcb-muted: #7A8A94;
  --hcb-warm: #F6EFE6;
  --hcb-danger: #B54A3C;
}

.hcb-wrap {
  max-width: 72rem;
  margin: 0 auto 10rem;
  font-size: 1.5rem;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .hcb-wrap { margin-bottom: 5rem; font-size: 1.4rem; }
}

.hcb a { color: var(--color-primary); }
.hcb-wrap a:not([class]) { text-decoration: underline; text-underline-offset: .2em; }

/* 導入文 */
.hcb-intro { text-align: center; margin-bottom: 2.4rem; }
.hcb-intro__lead { font-family: var(--font-heading); font-size: 1.8rem; line-height: 1.7; margin-bottom: .8rem; }
.hcb-intro__lead b { color: var(--color-primary); font-weight: 600; }
.hcb-intro p:not(.hcb-intro__lead) { font-size: 1.4rem; color: var(--hcb-muted); }
@media (max-width: 768px) {
  .hcb-intro__lead { font-size: 1.6rem; }
}

/* お知らせ */
.hcb-notice {
  border-radius: 1.2rem;
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
  font-size: 1.4rem;
}
.hcb-notice.is-ok { background: #E9F6EE; color: #2E6B45; }
.hcb-notice.is-info { background: var(--hcb-soft); color: var(--color-primary); }
.hcb-notice.is-error { background: #FBECE9; color: var(--hcb-danger); }

/* 相談先 */
.hcb-help {
  background: var(--hcb-warm);
  border-radius: 1.6rem;
  padding: 2rem 2.4rem;
  margin: 3.2rem 0 0;
  text-align: center;
  font-size: 1.4rem;
}
.hcb-help.is-strong {
  margin: 0 0 2.4rem;
  background: #FFF6E8;
  border: 2px solid #E8B86A;
}
.hcb-help__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; margin-bottom: .4rem; }
.hcb-help__tel { margin: .8rem 0; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.hcb-help__tel span { font-size: 1.3rem; }
.hcb-help__tel a {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-primary);
}
.hcb-help__sub { font-size: 1.3rem; color: #6B5F55; }
.hcb-help a { text-decoration: underline; }
.hcb-help__tel a { text-decoration: none; }

/* アバター */
.hcb-avatar {
  flex: 0 0 auto;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hcb-avatar, var(--color-primary));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}
.hcb-avatar.is-blank { background: var(--hcb-soft); color: var(--color-primary); }

/* 投稿フォーム */
.hcb-composer {
  background: var(--hcb-card);
  border: 1px solid var(--hcb-line);
  border-radius: 2rem;
  margin-bottom: 2.4rem;
  box-shadow: 0 .2rem .8rem rgba(79, 120, 145, .06);
}
.hcb-composer__open {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  cursor: pointer;
}
.hcb-composer__open::-webkit-details-marker { display: none; }
.hcb-composer__placeholder {
  flex: 1;
  color: var(--hcb-muted);
  border: 1px solid var(--hcb-line);
  border-radius: 10rem;
  padding: .9rem 1.8rem;
  background: #FAFCFD;
}
.hcb-composer[open] .hcb-composer__placeholder { color: var(--color-primary); font-weight: 600; border-color: transparent; background: none; padding-left: 0; }
.hcb-composer .hcb-form { padding: 0 2rem 2rem; }
@media (max-width: 768px) {
  .hcb-composer__open { padding: 1.2rem 1.4rem; }
  .hcb-composer .hcb-form { padding: 0 1.4rem 1.6rem; }
}

.hcb-form { display: flex; flex-direction: column; gap: 1.6rem; }
.hcb-field { display: flex; flex-direction: column; gap: .6rem; }
.hcb-field__label { font-weight: 600; font-size: 1.4rem; }
.hcb-field__opt { font-weight: 400; color: var(--hcb-muted); font-size: 1.2rem; }
.hcb-field__note { font-size: 1.2rem; color: var(--hcb-muted); line-height: 1.6; }

.hcb-input {
  width: 100%;
  border: 1px solid #C9D6DD;
  border-radius: .8rem;
  background: #fff;
  padding: 1rem 1.2rem;
  font-size: 1.6rem; /* iOSで拡大させない */
  line-height: 1.7;
}
.hcb-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79, 120, 145, .15); }
.hcb-textarea { resize: vertical; min-height: 12rem; }
.hcb-select {
  max-width: 28rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 1.8rem) 50%, calc(100% - 1.3rem) 50%;
  background-size: .5rem .5rem;
  background-repeat: no-repeat;
  padding-right: 3.6rem;
}

.hcb-kinds { border: 0; display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.hcb-kinds legend { width: 100%; margin-bottom: .6rem; }
.hcb-kind-opt { cursor: pointer; }
.hcb-kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hcb-kind-opt span {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid #C9D6DD;
  border-radius: 1.2rem;
  padding: .8rem 1.6rem;
  min-width: 14rem;
  line-height: 1.4;
  transition: .2s;
}
.hcb-kind-opt small { font-size: 1.2rem; color: var(--hcb-muted); }
.hcb-kind-opt input:checked + span { border-color: var(--color-primary); background: var(--hcb-soft); box-shadow: inset 0 0 0 1px var(--color-primary); }
.hcb-kind-opt input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.hcb-agree { display: flex; align-items: flex-start; gap: .8rem; font-size: 1.4rem; cursor: pointer; }
.hcb-agree input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: .3rem;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
}
.hcb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hcb-form__submit { display: flex; justify-content: flex-end; }
.hcb-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10rem;
  padding: 1.1rem 3.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity .2s;
}
.hcb-btn:hover { opacity: .85; }
.hcb-btn[disabled] { opacity: .5; cursor: wait; }
@media (max-width: 768px) {
  .hcb-form__submit .hcb-btn { width: 100%; }
}

/* 絞り込み */
.hcb-filter { margin-bottom: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.hcb-tabs { display: flex; border-bottom: 1px solid var(--hcb-line); }
.hcb-tabs a {
  display: block;
  padding: .8rem 1.8rem;
  color: var(--hcb-muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.hcb-tabs a.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.hcb-cats { display: flex; flex-wrap: wrap; gap: .6rem; }
.hcb-cats a {
  display: inline-block;
  font-size: 1.3rem;
  padding: .3rem 1.4rem;
  border-radius: 10rem;
  border: 1px solid var(--hcb-line);
  background: #fff;
  color: var(--primary-color);
}
.hcb-cats a.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* カード */
.hcb-feed { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 3.2rem; }
.hcb-card {
  background: var(--hcb-card);
  border: 1px solid var(--hcb-line);
  border-radius: 2rem;
  padding: 2rem 2.4rem 1.4rem;
}
.hcb-card.is-single { padding-bottom: 1.6rem; margin-bottom: 2.4rem; }
@media (max-width: 768px) {
  .hcb-card { padding: 1.6rem 1.6rem 1.2rem; border-radius: 1.6rem; }
}
.hcb-card__head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.hcb-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.4; }
.hcb-card__nick { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; overflow-wrap: anywhere; }
.hcb-card__meta { font-size: 1.2rem; color: var(--hcb-muted); }
.hcb-card__meta a { color: inherit; }
.hcb-mine {
  display: inline-block;
  margin-left: .6rem;
  font-size: 1.1rem;
  padding: 0 .8rem;
  border-radius: 10rem;
  background: var(--hcb-soft);
  color: var(--color-primary);
}
.hcb-kind {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 600;
  padding: .2rem 1.2rem;
  border-radius: 10rem;
}
.hcb-kind--tsubuyaki { background: #F3EEE6; color: #8A6A43; }
.hcb-kind--soudan { background: var(--hcb-soft); color: var(--color-primary); }

.hcb-card__body {
  display: block;
  color: var(--primary-color) !important;
  overflow-wrap: anywhere;
  padding-left: 5.4rem;
  margin-bottom: 1rem;
}
.hcb-card__body.is-full { font-size: 1.6rem; line-height: 1.9; }
.hcb-card__more { display: inline-block; margin-left: .4rem; color: var(--color-primary); font-size: 1.3rem; }
@media (max-width: 768px) {
  .hcb-card__body { padding-left: 0; }
  .hcb-card__body.is-full { font-size: 1.5rem; }
}

.hcb-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  padding-left: 5.4rem;
}
@media (max-width: 768px) {
  .hcb-card__foot { padding-left: 0; }
}
.hcb-comments-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.3rem; font-weight: 600; }
.hcb-icon { width: 1.6rem; height: 1.6rem; fill: currentColor; }

/* リアクション */
.hcb-reactions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hcb-react {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1.2rem;
  border-radius: 10rem;
  border: 1px solid var(--hcb-line);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.hcb-react:hover { border-color: var(--color-primary); }
.hcb-react:active { transform: scale(.96); }
.hcb-react.is-on { background: var(--hcb-soft); border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }
.hcb-react__icon { font-size: 1.5rem; line-height: 1; }
.hcb-react__count { font-family: var(--font-en); font-size: 1.2rem; min-width: .6em; }
.hcb-react__count:empty { display: none; }
.hcb-react.is-pop .hcb-react__icon { animation: hcb-pop .35s ease; }
@keyframes hcb-pop { 50% { transform: scale(1.35); } }

/* …メニュー */
.hcb-menu { position: relative; flex: 0 0 auto; }
.hcb-menu__btn {
  list-style: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hcb-muted);
  font-size: 1.8rem;
  letter-spacing: .05em;
  cursor: pointer;
}
.hcb-menu__btn::-webkit-details-marker { display: none; }
.hcb-menu__btn:hover, .hcb-menu[open] .hcb-menu__btn { background: var(--hcb-soft); }
.hcb-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 10;
  min-width: 18rem;
  background: #fff;
  border: 1px solid var(--hcb-line);
  border-radius: 1.2rem;
  box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .1);
  padding: .6rem;
  display: flex;
  flex-direction: column;
}
.hcb-menu__head { font-size: 1.2rem; color: var(--hcb-muted); padding: .4rem 1rem; }
.hcb-menu__item {
  text-align: left;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: .8rem;
  font-size: 1.4rem;
  cursor: pointer;
}
.hcb-menu__item:hover { background: var(--hcb-soft); }
.hcb-menu__item.is-danger { color: #fff; background: var(--hcb-danger); }
.hcb-menu__done { font-size: 1.3rem; padding: .7rem 1rem; color: #2E6B45; }

/* コメント */
.hcb-comments__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hcb-comments__title span { font-size: 1.4rem; color: var(--hcb-muted); font-weight: 500; }
.hcb-comment-list { display: flex; flex-direction: column; margin-bottom: 2.4rem; }
.hcb-comment {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hcb-line);
}
.hcb-comment:first-child { border-top: 1px solid var(--hcb-line); }
.hcb-comment.is-held { opacity: .7; }
.hcb-comment .hcb-avatar { width: 3.6rem; height: 3.6rem; font-size: 1.5rem; }
.hcb-comment__main { flex: 1; min-width: 0; }
.hcb-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.hcb-comment__head .hcb-menu { margin-left: auto; }
.hcb-comment__body { overflow-wrap: anywhere; margin: .2rem 0 .8rem; }
.hcb-op { font-size: 1.1rem; padding: 0 .8rem; border-radius: 10rem; background: var(--color-primary); color: #fff; }

.hcb-reply {
  background: var(--hcb-card);
  border: 1px solid var(--hcb-line);
  border-radius: 2rem;
  padding: 2.4rem;
}
.hcb-reply__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; }
@media (max-width: 768px) {
  .hcb-reply { padding: 1.6rem; }
}

.hcb-back { margin-bottom: 1.6rem; font-size: 1.4rem; }
.hcb-back a { text-decoration: none !important; }
.hcb-empty { text-align: center; color: var(--hcb-muted); padding: 4rem 0; }

/* 利用ルール（/board/） */
.hcb-rules {
  max-width: 72rem;
  margin: 6rem auto 0;
  background: #fff;
  border-radius: 2rem;
  padding: 3.2rem 4rem;
  font-size: 1.5rem;
  line-height: 1.9;
  scroll-margin-top: 12rem;
}
@media (max-width: 768px) {
  .hcb-rules { padding: 2.4rem 2rem; margin-top: 4rem; font-size: 1.4rem; }
}
.hcb-rules__title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--color-primary); text-align: center; margin-bottom: 1.2rem; }
.hcb-rules__sub { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; margin: 2.4rem 0 .8rem; }
.hcb-rules__list { padding-left: 2.2rem; margin-top: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.hcb-rules__list li { list-style: decimal; }
.hcb-rules__list.is-plain li { list-style: disc; }
.hcb-rules__list b { color: var(--color-primary); }
#page-board .hcb-help { max-width: 72rem; margin-left: auto; margin-right: auto; }

/* ========================================
2026-10 スマホ前提の操作まわり
======================================== */

/* 絞り込みバー: ヘッダーの下に貼り付く */
.hcb-filter {
  position: sticky;
  top: var(--hcb-top, 0px);
  z-index: 20;
  background: var(--bgcolor);
  padding: .4rem 0 1rem;
  margin-bottom: .6rem;
}
.hcb-filter.is-stuck { box-shadow: 0 .6rem .8rem -.8rem rgba(0, 0, 0, .25); }
.hcb-tabs { gap: 0; }
.hcb-tabs li { flex: 1; text-align: center; }
.hcb-tabs a { padding: 1rem .8rem; transition: color .2s, border-color .2s; }
.hcb-cats {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: .2rem 0;
  scroll-padding-inline: 1.6rem;
}
.hcb-cats::-webkit-scrollbar { display: none; }
.hcb-cats li { flex: 0 0 auto; }
.hcb-cats a { padding: .5rem 1.4rem; white-space: nowrap; transition: background .2s, color .2s; }
@media (min-width: 769px) {
  .hcb-cats { flex-wrap: wrap; overflow: visible; }
}

/* 一覧の差し替え中 */
.hcb-feed-area { transition: opacity .15s; min-height: 30vh; }
.hcb-feed-area.is-loading { opacity: .45; pointer-events: none; }
.hcb-more {
  display: block;
  text-align: center;
  padding: 1.2rem;
  margin: -1.6rem auto 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: 10rem;
}
.hcb-more.is-loading { color: var(--hcb-muted); pointer-events: none; }
.hcb-feed .hcb-card { animation: hcb-in .25s ease both; }
@keyframes hcb-in { from { opacity: 0; transform: translateY(.6rem); } }

/* 確認中（本人だけ） */
.hcb-card.is-held { border-style: dashed; background: #FCFCFA; }
.hcb-mine.is-held { background: #FFF3DC; color: #8A6A43; }
.hcb-card__heldnote { font-size: 1.2rem; color: var(--hcb-muted); padding-left: 5.4rem; }
@media (max-width: 768px) { .hcb-card__heldnote { padding-left: 0; } }

.hcb-mine-head { margin-bottom: 1.6rem; }
.hcb-mine-head h3 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.hcb-mine-head p { font-size: 1.3rem; color: var(--hcb-muted); }

/* 送信ボタンの補足・Turnstile */
.hcb-submit-hint { font-size: 1.2rem; color: var(--hcb-muted); text-align: right; margin-top: -.6rem; }
.hcb-submit-hint:empty { display: none; }
.hcb-ts:empty { display: none; }
.hcb-ts { min-height: 0; }
@media (max-width: 768px) { .hcb-submit-hint { text-align: center; } }

/* 投稿シートのヘッダー（スマホのシート表示時だけ） */
.hcb-sheet-head { display: none; }
.hcb-composer.is-sheet-only { display: none; }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  body.has-hcb-tabbar { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)); }

  /* 見出しまわりを詰めて、すぐ投稿が見えるように */
  .hcb .pageheader { margin-bottom: 1.2rem; }
  .hcb .pageheader .icontitle { font-size: 2.2rem; }
  .hcb .pageheader .breadcrumb, .hcb .pageheader nav { display: none; }
  .hcb-intro { margin-bottom: 1.6rem; }
  .hcb-intro__lead { font-size: 1.5rem; }
  .hcb-intro p:not(.hcb-intro__lead) { font-size: 1.2rem; }

  .hcb-filter { margin-inline: -5vw; padding-inline: 5vw; }
  .hcb-cats { margin-inline: -5vw; padding-inline: 5vw; }

  /* 投稿フォーム → 下からせり上がるシート */
  body.hcb-sheet-open { overflow: hidden; }
  body.hcb-sheet-open .hcb-composer,
  .hcb-composer.is-sheet-only[open] {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: max(4vh, env(safe-area-inset-top));
    z-index: 1000;
    margin: 0;
    border-radius: 2rem 2rem 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: hcb-sheet-up .25s ease both;
    box-shadow: 0 -1rem 4rem rgba(0, 0, 0, .25);
  }
  body.hcb-sheet-open .hcb-composer__open { display: none; }
  body.hcb-sheet-open .hcb-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--hcb-line);
  }
  .hcb-sheet-head b { font-family: var(--font-heading); font-size: 1.6rem; }
  .hcb-sheet-head span { width: 6em; }
  .hcb-sheet-head__close { color: var(--color-primary); font-size: 1.5rem; width: 6em; text-align: left; }
  body.hcb-sheet-open .hcb-composer .hcb-form { padding: 1.6rem 1.6rem calc(2.4rem + env(safe-area-inset-bottom)); }
  body.hcb-sheet-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(30, 40, 48, .45);
    animation: hcb-fade .2s ease both;
  }
}
@keyframes hcb-sheet-up { from { transform: translateY(100%); } }
@keyframes hcb-fade { from { opacity: 0; } }

/* 下部メニュー */
.hcb-tabbar { display: none; }
@media (max-width: 768px) {
  .hcb-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hcb-line);
    padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .hcb-tabbar__item, .hcb-tabbar__post {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hcb-muted);
    padding: .4rem 0;
    -webkit-tap-highlight-color: transparent;
  }
  .hcb-tabbar svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .hcb-tabbar__item.is-active { color: var(--color-primary); }
  .hcb-tabbar__item.is-active svg { fill: var(--hcb-soft); }
  .hcb-tabbar__post { color: var(--color-primary); }
  .hcb-tabbar__post svg {
    width: 4.6rem;
    height: 4.6rem;
    padding: 1.1rem;
    margin-top: -1.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    stroke: #fff;
    stroke-width: 2.4;
    box-shadow: 0 .4rem 1.2rem rgba(79, 120, 145, .45);
  }
  .js-hcb-reply-open svg { stroke-width: 2; }
  .hcb-tabbar__item:active, .hcb-tabbar__post:active { transform: scale(.94); }
  /* サイト側のSPメニューが開いているときは隠す */
  body.menu-open .hcb-tabbar { display: none; }
}

/* 相談先シート */
.hcb-sheet[hidden] { display: none; }
.hcb-sheet { position: fixed; inset: 0; z-index: 1100; }
.hcb-sheet__backdrop { position: absolute; inset: 0; background: rgba(30, 40, 48, .45); animation: hcb-fade .2s ease both; }
.hcb-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 2rem 2rem 0 0;
  padding: 1rem 2rem calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
  animation: hcb-sheet-up .25s ease both;
}
.hcb-sheet__grip { width: 4rem; height: .4rem; border-radius: 1rem; background: var(--hcb-line); margin: 0 auto 1.6rem; }
.hcb-sheet__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; }
.hcb-sheet__lead { font-size: 1.3rem; color: var(--hcb-muted); margin-bottom: 1.6rem; }
.hcb-sheet__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1.4rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--hcb-line);
  color: var(--color-primary) !important;
  text-decoration: none !important;
}
.hcb-sheet__btn b { font-size: 1.6rem; }
.hcb-sheet__btn small { font-size: 1.2rem; }
.hcb-sheet__btn.is-tel { background: var(--color-primary); border-color: var(--color-primary); color: #fff !important; padding: 1.4rem; }
.hcb-sheet__btn.is-tel b { font-family: var(--font-en); font-size: 2rem; letter-spacing: .02em; }
.hcb-sheet__btn.is-line { background: #06C755; border-color: #06C755; color: #fff !important; }
.hcb-sheet__note { font-size: 1.2rem; color: #6B5F55; margin: .6rem 0 1rem; }
.hcb-sheet__note a { text-decoration: underline; }
.hcb-sheet__close { width: 100%; padding: 1rem; color: var(--hcb-muted); font-size: 1.4rem; }

/* スマホではリアクションを1列に収める */
@media (max-width: 768px) {
  .hcb-reactions { gap: .4rem; flex-wrap: nowrap; }
  .hcb-react { padding: .3rem .9rem; font-size: 1.2rem; gap: .3rem; white-space: nowrap; }
  .hcb-react__icon { font-size: 1.3rem; }
  .hcb-card__foot { row-gap: 1rem; }
}
.hcb-react__icon { flex: 0 0 auto; display: inline-flex; }
.hcb-react__icon img.emoji { display: inline-block !important; width: 1.4rem !important; height: 1.4rem !important; max-width: none; margin: 0 !important; }
@media (max-width: 400px) {
  .hcb-reactions { gap: .4rem; flex-wrap: wrap; }
  .hcb-react { padding: .3rem .6rem; font-size: 1.15rem; gap: .25rem; }
  .hcb-react__icon img.emoji { width: 1.3rem !important; height: 1.3rem !important; }
}

/* スマホ: ヘッダーは透明な作りなので、掲示板ではヘッダーの後ろに背景を敷いて
   スクロール中の投稿が透けて見えないようにする（貼り付く絞り込みバーと一体に見せる） */
@media (max-width: 768px) {
  /* ヘッダーの背景は全ページ共通（inc/bbs-anon.php のインラインCSS） */
  body.has-hcb-tabbar .hcb-filter { top: calc(var(--hcb-top, 0px) - 1px); }
}

/* スマホ: 掲示板では下部メニューに「相談する」があるので、フッターのメール・電話欄は出さず詰める */
@media (max-width: 768px) {
  body.has-hcb-tabbar #footerbox .contactlist { display: none; }
  body.has-hcb-tabbar #footerbox .databox { margin-bottom: 3rem; gap: 2rem; }
  body.has-hcb-tabbar #footerbox .databox nav ul { gap: 1.4rem 2.4rem; }
}

/* ホーム画面に追加の案内 */
.hcb-install {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--hcb-line);
  border-radius: 1.6rem;
  padding: 1rem 1rem 1rem 1.2rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 .2rem .8rem rgba(79, 120, 145, .08);
}
.hcb-install[hidden] { display: none; }
.hcb-install__icon { width: 4.4rem; height: 4.4rem; border-radius: 1rem; border: 1px solid var(--hcb-line); flex: 0 0 auto; }
.hcb-install__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.hcb-install__txt b { font-size: 1.3rem; }
.hcb-install__txt small { font-size: 1.1rem; color: var(--hcb-muted); }
.hcb-install__btn { flex: 0 0 auto; background: var(--color-primary); color: #fff; border-radius: 10rem; padding: .7rem 1.4rem; font-size: 1.3rem; font-weight: 700; }
.hcb-install__x { flex: 0 0 auto; color: var(--hcb-muted); font-size: 1.8rem; width: 2.8rem; height: 2.8rem; }
.hcb-howto .hcb-install { margin: 2rem 0 0; }
.hcb-howto__note { font-size: 1.3rem; color: var(--hcb-muted); margin-top: 1.2rem; }
.hcb-howto { margin-top: 3.2rem; }

.hcb-steps { text-align: left; }
.hcb-steps .hcb-sheet__title { text-align: center; margin-bottom: 1.6rem; }
.hcb-steps__list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 1.6rem; }
.hcb-steps__list[hidden], .hcb-steps__inapp[hidden] { display: none; }
.hcb-steps__list li { display: flex; gap: 1.2rem; align-items: flex-start; font-size: 1.5rem; line-height: 1.6; }
.hcb-steps__list small { font-size: 1.2rem; color: var(--hcb-muted); }
.hcb-steps__no {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.hcb-steps__share { display: inline-block; vertical-align: -.4rem; width: 2.2rem; height: 2.2rem; fill: none; stroke: #2F7CF6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hcb-steps__inapp { background: #FFF6E8; border-radius: 1.2rem; padding: 1.4rem; font-size: 1.4rem; margin-bottom: 1.6rem; }
.hcb-steps .hcb-sheet__note { text-align: center; }
