/* ============================================================
   Ｒｅ就活ID FAQ 共通スタイル（色は :root で変更）
   ============================================================ */
:root {
  --brand: #0a5bb5; --brand-dark: #07427f; --brand-pale: #eef5fd;
  --accent: #f08300; --accent-pale: #fff6eb;
  --text: #222; --text-sub: #555; --line: #dde3ea; --bg: #f5f7fa; --white: #fff;
  --radius: 10px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}
body.is-company { --brand: #1f4e79; --brand-dark: #153a5b; --brand-pale: #eef3f8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { background: var(--white); border-bottom: 3px solid var(--brand); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
.site-header__brand { margin: 0; display: flex; align-items: center; line-height: 1; }
.site-header__brand a { display: inline-flex; }
.site-header__logo { display: block; height: 36px; width: auto; max-width: 70vw; }  /* ロゴの高さ（PC） */

/* hero */
.hero { padding: 32px 0 20px; }
.hero__badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--white); background: var(--brand); padding: 2px 12px; border-radius: 999px; }
.hero__title { margin: 10px 0 8px; font-size: 28px; line-height: 1.4; }
.hero__lead { margin: 0; color: var(--text-sub); }

/* notice */
.notice { background: var(--accent-pale); border: 1px solid #f6c68c; border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.notice__title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 700; color: #a85a00; }
.notice__title svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li { margin: 2px 0; }

/* toolbar */
.toolbar { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 24px; }
.search__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.search__box { position: relative; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: #888; stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 10px 40px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: none; font-size: 20px; color: #888; cursor: pointer; }
.cats { margin-top: 14px; }
.cats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cats__btn { font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); }
.cats__btn:hover { border-color: var(--brand); }
.cats__btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); font-weight: 700; }
.cats__count { display: inline-block; margin-left: 6px; min-width: 1.6em; padding: 0 5px; font-size: 12px; text-align: center; border-radius: 999px; background: var(--brand-pale); color: var(--brand); }
.cats__btn[aria-pressed="true"] .cats__count { background: rgba(255,255,255,.25); color: var(--white); }
.toolbar__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.result { margin: 0; font-size: 14px; color: var(--text-sub); }
.toggle-all { display: flex; gap: 6px; }
.toggle-all button { font: inherit; font-size: 13px; cursor: pointer; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--text-sub); }
.toggle-all button:hover { border-color: var(--brand); color: var(--brand); }

/* FAQ */
.faq-group { margin-bottom: 32px; }
.faq-group__title { font-size: 20px; margin: 0 0 12px; padding-left: 12px; line-height: 1.4; border-left: 5px solid var(--brand); }
.faq-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.is-open { border-color: var(--brand); box-shadow: 0 2px 8px rgba(10,91,181,.08); }
.faq-item.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(240,131,0,.45); } 100% { box-shadow: none; } }
.faq-q { margin: 0; font-size: inherit; }
.faq-q__btn { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px; border: none; background: none; text-align: left; cursor: pointer; font: inherit; font-weight: 700; color: var(--text); line-height: 1.6; }
.faq-q__btn:hover { background: var(--brand-pale); }
.faq-q__mark, .faq-a__mark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 15px; line-height: 1; }
.faq-q__mark { background: var(--brand); color: var(--white); }
.faq-q__text { flex: 1; padding-top: 2px; }
.faq-q__icon { flex: 0 0 auto; position: relative; width: 18px; height: 18px; margin-top: 6px; }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--brand); width: 14px; height: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.faq-q__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q__btn[aria-expanded="true"] .faq-q__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: flex; gap: 12px; margin: 0 16px; padding: 14px 0 18px; border-top: 1px dashed var(--line); }
.faq-a__mark { background: var(--accent-pale); color: var(--accent); border: 2px solid var(--accent); }
.faq-a__body { flex: 1; padding-top: 2px; }
.faq-a__text { margin: 0 0 8px; }
.faq-a__text:last-child { margin-bottom: 0; }
.faq-a__note { margin: 8px 0 0; font-size: 14px; color: var(--text-sub); background: var(--bg); border-radius: 6px; padding: 8px 12px; }
.faq-innerlink, .faq-mail { font-weight: 700; }
.empty { text-align: center; padding: 32px 16px; background: var(--white); border-radius: var(--radius); color: var(--text-sub); }

/* contact */
.contact { text-align: center; background: var(--white); border-radius: var(--radius); padding: 24px 16px; margin: 8px 0 40px; border: 2px solid var(--brand-pale); }
.contact__title { margin: 0 0 6px; font-size: 18px; color: var(--brand); }
.contact__text { margin: 0; }
.contact__links { list-style: none; margin: 16px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.contact__link { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-width: 230px; padding: 12px 16px; border: 1px solid var(--brand); border-radius: 8px; text-decoration: none; color: var(--brand); background: var(--white); line-height: 1.5; }
.contact__link:hover { background: var(--brand-pale); }
.contact__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__link-label { font-weight: 700; font-size: 14px; }

/* footer / pagetop */
.site-footer { background: #333; color: #ccc; font-size: 12px; text-align: center; padding: 16px 0; }
.site-footer p { margin: 0; }
.pagetop { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: opacity .2s; }
.pagetop.is-show { opacity: .9; visibility: visible; }
.pagetop svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* smartphone */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-header__logo { height: 26px; }  /* ロゴの高さ（スマホ） */
  .hero { padding: 22px 0 14px; }
  .hero__title { font-size: 22px; }
  .toolbar { padding: 14px 12px; }
  .cats__list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cats__btn { white-space: nowrap; }
  .faq-group__title { font-size: 18px; }
  .faq-q__btn { padding: 14px 12px; gap: 10px; }
  .faq-a { margin: 0 12px; gap: 10px; }
  .faq-q__mark, .faq-a__mark { width: 26px; height: 26px; font-size: 13px; }
  .contact__links { flex-direction: column; align-items: stretch; }
  .contact__link { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .toolbar, .pagetop { display: none !important; } .faq-a { display: flex !important; } }
