@charset "UTF-8";
/* =========================================================
   faq.css
   よくある質問（/faq/）固有のスタイル。
   共通パーツ（ヘッダー・フッター・パンくず・ページ見出し・
   見出しラベル・アコーディオン・白い面）は common.css を参照。

   回答（.p-faq__a-body）の中身の見た目は、お知らせ詳細の本文と共通
   （common.css の .c-post-body）。
   ========================================================= */

/* 絞り込みで隠す要素。レイアウト側の display に負けないようにする */
[data-faq] [hidden] {
  display: none !important;
}

/* =========================================================
   道路状況のご案内
   ========================================================= */
.p-faq__intro {
  padding-top: 88px;
}

.p-faq__notice {
  padding: 16px 13px;
  background-color: #dedede;
  border-radius: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.48px;
}

.p-faq__notice a {
  color: #3ea1ac;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =========================================================
   絞り込み
   ========================================================= */
.p-faq__filter-wrap {
  padding-top: 40px;
}

/* 面（白・角丸8px）は共通の .c-panel。ここは内側の余白だけ */
.p-faq__filter {
  padding: 56px 80px;
}

.p-faq__label {
  display: block;
  margin-bottom: 16px;
  color: #333;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.p-faq__label--cat {
  margin-top: 40px;
}

.p-faq__keyword {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 25px;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.p-faq__keyword:focus-within {
  border-color: #3ea1ac;
}

.p-faq__keyword img {
  flex: none;
  width: 20px;
  height: 20px;
}

.p-faq__keyword input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #333;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  outline: none;
}

.p-faq__keyword input::placeholder {
  color: rgba(51, 51, 51, 0.5);
}

/* 検索欄の × ボタンはブラウザ既定のまま（消せると便利なので残す） */

.p-faq__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-faq__cat {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 29px;
  background-color: transparent;
  border: 1px solid #adadad;
  border-radius: 8px;
  color: #333;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.p-faq__cat.is-current {
  background-color: #3ea1ac;
  border-color: #3ea1ac;
  color: #fff;
}

/* =========================================================
   質問の一覧
   ========================================================= */
.p-faq__list {
  padding-bottom: 160px;
}

.p-faq__group {
  padding-top: 100px;
}

.p-faq__none,
.p-faq__empty {
  padding-top: 100px;
}

.p-faq__items {
  margin-top: 28px;
}

/* 質問の行。「Q」の四角・質問文・＋／− の3つを横に並べる */
.p-faq__q {
  justify-content: flex-start;
  padding-block: 27px;
}

.p-faq__q .c-accordion__icon {
  margin-left: auto;
}

.p-faq__q-text {
  flex: 1;
  min-width: 0;
}

/* Q / A の文字 */
.p-faq__mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 57px;
  font-family: "Roboto", sans-serif;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1;
}

.p-faq__mark--q {
  height: 57px;
  background-color: #489ea5;
  border-radius: 8px;
  color: #fff;
}

/* A は四角なし。箱の高さを回答の1行分（16px × 1.8 ＝ 28.8px）にして、
   1行目の中心と「A」の中心をそろえる */
.p-faq__mark--a {
  height: 28.8px;
  color: #489ea5;
}

.p-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 34px 40px;
}

/* =========================================================
   回答の本文
   中身（段落・見出し・リスト・表・リンク・添付ファイルなど）の見た目は
   お知らせ詳細と共通（common.css の .c-post-body）。ここは並びだけ
   ========================================================= */
.p-faq__a-body {
  flex: 1;
  min-width: 0;
}

/* =========================================================
   1199px以下（タブレット・SP）
   ========================================================= */
@media (max-width: 1199px) {
  .p-faq__intro {
    padding-top: 56px;
  }

  .p-faq__notice {
    padding: 16px;
    font-size: 1.4rem;
  }

  .p-faq__filter-wrap {
    padding-top: 30px;
  }

  .p-faq__filter {
    padding: 24px 16px;
  }

  .p-faq__label {
    margin-bottom: 12px;
    font-size: 1.8rem;
  }

  .p-faq__label--cat {
    margin-top: 28px;
  }

  .p-faq__keyword {
    gap: 10px;
    height: 52px;
    padding: 0 17px;
  }

  /* iOS は 16px 未満の入力欄でフォーカス時に拡大するので 16px のまま */
  .p-faq__keyword input {
    font-size: 1.6rem;
  }

  .p-faq__keyword input::placeholder {
    font-size: 1.2rem;
  }

  .p-faq__cats {
    gap: 6px;
  }

  .p-faq__cat {
    min-height: 42px;
    padding: 0 15px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.4rem;
  }

  .p-faq__list {
    padding-bottom: 80px;
  }

  .p-faq__group,
  .p-faq__none,
  .p-faq__empty {
    padding-top: 64px;
  }

  .p-faq__items {
    margin-top: 24px;
  }

  .p-faq__q {
    align-items: flex-start;
    gap: 10px;
    padding-block: 18px;
    font-size: 1.6rem;
    line-height: 1.625;
  }

  .p-faq__q .c-accordion__icon {
    margin-top: 5px;
  }

  .p-faq__mark {
    width: 29px;
  }

  .p-faq__mark--q {
    height: 29px;
    border-radius: 4px;
    font-size: 1.8rem;
  }

  /* 回答の1行分（14px × 1.8 ＝ 25.2px） */
  .p-faq__mark--a {
    height: 25.2px;
    font-size: 2.175rem;
  }

  .p-faq__a {
    gap: 10px;
    padding: 0 0 24px;
  }

}

/* =========================================================
   ホバー
   ========================================================= */
@media (hover: hover) and (min-width: 768px) {
  .p-faq__cat:not(.is-current):hover {
    border-color: #3ea1ac;
    color: #3ea1ac;
  }

  .p-faq__notice a:hover {
    text-decoration: none;
  }
}
