/* ===== Buttons (teien 4. Component Stylings) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 11px 30px 12px; border-radius: var(--r-btn);
  font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1.4;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  cursor: pointer; text-align: center; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #fff; text-decoration: none; }
.btn--secondary { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 10px 23px 11px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 40px 15px; }
.btn--block { display: flex; width: 100%; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; position: relative; }
.link-arrow:hover { text-decoration: none; color: var(--green); border-color: var(--green); }

/* ===== Header ===== */
.site-header { position: relative; z-index: 100; background: var(--bg); border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); transition: border-color .3s; }
body[data-zone="common"] .site-header { border-top-color: transparent; }
.site-header.is-scrolled { border-color: #c9d3cf; }
.site-header__in { display: flex; align-items: center; gap: 28px; height: calc(var(--header-h) - 3px); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo:hover { text-decoration: none; }
.logo__img { height: 34px; width: auto; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; align-items: center; gap: 28px; }
.gnav a { display: block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; white-space: nowrap; }
.gnav a:hover, .gnav a[aria-current="page"] { text-decoration: none; border-color: var(--ink); }
.header-cta { display: flex; gap: 8px; flex: none; align-items: center; }
/* teien: 左端だけ丸いユーティリティ形状 */
.btn-util { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 22px 3px 24px; border-radius: 50px 2px 2px 50px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.btn-util:hover { text-decoration: none; background: var(--ink-hover); color: #fff; }
.btn-util .ico { width: 20px; height: 20px; }
.btn-util--line { background: transparent; color: var(--green); border: 1px solid var(--line-strong); border-radius: 2px 50px 50px 2px; padding: 3px 24px 3px 22px; }
.btn-util--line:hover { background: var(--green); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 31px; }
.nav-open .nav-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 24px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .logo { margin-right: auto; }
  .nav-toggle { margin-left: 0; }
  .nav-toggle { display: block; }
  .gnav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); margin: 0; padding: 8px 24px 120px; overflow-y: auto; opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .3s, transform .35s var(--ease), visibility .35s; }
  .nav-open .gnav { opacity: 1; transform: none; visibility: visible; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line-strong); }
  .gnav a { padding: 20px 0; font-size: 17px; border: 0; }
  .gnav .gnav-cta { display: grid; gap: 12px; padding: 28px 0 0; border: 0; }
  .gnav .gnav-cta .btn { padding: 12px 20px; font-size: 16px; color: #fff; }
  .gnav .gnav-cta .btn--secondary { color: var(--green); }
  .gnav .gnav-cta .btn--secondary:hover { color: #fff; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1181px) { .gnav .gnav-cta { display: none; } }

/* ===== Footer ===== */
.site-footer { background: var(--tint); color: var(--ink); padding: 80px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 64px; }
.footer-brand .logo { color: var(--ink); }
.footer-brand p { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h3 { font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; color: var(--green); font-weight: 500; margin-bottom: 18px; }
.footer-cols li { margin-bottom: 10px; }
.footer-legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 767px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ===== 固定CTA ===== */
/* ≤1023px: 画面下の固定バー ／ ≥1024px: 右端の縦型・追従CTA */
.sp-fixed, .side-cta { display: none; }
@media (max-width: 1023px) {
  .sp-fixed { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-strong); }
  .sp-fixed .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }
  .sp-fixed--single { grid-template-columns: 1fr; }
  .sp-fixed [data-aud="pharmacist"] { color: var(--z-pharmacist); }
  .sp-fixed [data-aud="pharmacy"] { color: var(--z-pharmacy); }
  body.has-spbar { padding-bottom: 70px; }
}
@media (min-width: 1024px) {
  .side-cta { position: fixed; right: 0; top: 50%; z-index: 80; display: flex; flex-direction: column; gap: 10px; transform: translate(100%, -50%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .5s; }
  .side-cta.is-show { transform: translate(0, -50%); opacity: 1; visibility: visible; }
  .side-cta a { writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; gap: 12px; width: 50px; padding: 24px 0; border-radius: 25px 0 0 25px; font-size: 14px; font-weight: 500; letter-spacing: .25em; line-height: 1; white-space: nowrap; border: 1px solid var(--ink); border-right: 0; box-shadow: var(--shadow-float); transition: background .25s, color .25s; }
  .side-cta a:hover { text-decoration: none; }
  .side-cta__line { background: var(--ink); color: #fff; }
  .side-cta__line:hover { background: var(--ink-hover); color: #fff; }
  .side-cta__line .ico { width: 22px; height: 22px; }
}

.side-cta[hidden], .sp-fixed[hidden] { display: none !important; }

/* ===== 対象者の切替（薬剤師の方｜薬局の方） ===== */
.aud-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; flex: none; }
.aud-switch__item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; line-height: 1.4; transition: background .25s, color .25s; }
.aud-switch__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--z-pharmacist)); }
.aud-switch__item[data-aud="pharmacist"] { --dot: var(--z-pharmacist); }
.aud-switch__item[data-aud="pharmacy"] { --dot: var(--z-pharmacy); }
.aud-switch__item:hover { text-decoration: none; background: var(--tint); }
.aud-switch__item[aria-current="true"] { background: var(--dot); color: #fff; }
.aud-switch__item[aria-current="true"]::before { background: #fff; }
.aud-switch--menu { display: none; }
.zone-chip { display: none; padding: 3px 12px 4px; border: 1px solid var(--green); color: var(--green); border-radius: var(--r-tag); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ===== Section scaffolding ===== */
.section { padding: 112px 0; }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.section--warm { background: var(--surface-warm); }
.section--mint { background: var(--surface-mint); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #e9e5dd; }
.section--ink h2, .section--ink h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head--center { display: block; text-align: center; }
.sec-label { display: block; font-family: var(--font-latin); font-weight: 500; font-size: 13px; letter-spacing: .3em; color: var(--green); margin-bottom: 14px; text-transform: uppercase; }
.sec-title { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: .12em; line-height: 1.5; }
.sec-lead { margin-top: 20px; color: var(--muted); max-width: 40em; line-height: 1.9; }
.sec-head--center .sec-lead { margin-inline: auto; }
.sec-more { margin-top: 56px; text-align: center; }
@media (max-width: 767px) { .section { padding: 72px 0; } .sec-head { margin-bottom: 36px; } }

/* ===== Page header（下層） ===== */
.page-head { padding: 56px 0 64px; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: .12em; line-height: 1.43; }
.page-head .sec-label { margin-bottom: 10px; }
.page-head p { margin: 20px 0 0; color: var(--muted); max-width: 38em; line-height: 1.9; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 12px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ===== Tags (teien: Category chip / Label / Status) ===== */
.tag { display: inline-flex; align-items: center; padding: 3px 12px 4px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1.5; background: var(--chip); color: var(--ink); white-space: nowrap; }
.tag--style-正社員 { background: #b5cbed; }
.tag--style-スポット { background: #f0df9d; }
.tag--style-業務委託 { background: #cfe3dc; }
.tag--status { border-radius: var(--r-tag); background: transparent; border: 1px solid var(--green); color: var(--green); padding: 2px 9px 3px; }
.tag--new { border-radius: var(--r-tag); background: transparent; border: 1px solid var(--attn); color: var(--attn); padding: 2px 9px 3px; }
.tag--closed { border-radius: var(--r-tag); background: transparent; border: 1px solid var(--line-strong); color: var(--muted); padding: 2px 9px 3px; }
.tag--sample { border-radius: var(--r-tag); background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); padding: 2px 9px 3px; }
.tag--cat { background: var(--chip); }
.tag--aud[data-aud="pharmacist"] { background: #e3f1ee; color: #00695b; }
.tag--aud[data-aud="pharmacy"] { background: #e6edf6; color: #1d3f6e; }

/* ===== Job card（カード: 角丸0・影なし・白面） ===== */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.job-card { display: flex; flex-direction: column; background: var(--surface); padding: 28px 28px 24px; position: relative; border: 1px solid var(--line); transition: border-color .25s; }
.job-card:hover { border-color: var(--ink); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.job-card__title { font-size: 18px; line-height: 1.6; margin-bottom: 20px; font-weight: 500; }
.job-card__title a { color: inherit; }
.job-card__title a:hover { text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; }
.job-card__pay { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.job-card__pay small { font-size: 12px; color: var(--muted); }
.job-card__pay strong { font-family: var(--font-serif); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.4; letter-spacing: .04em; }
.job-card dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.job-card dt { color: var(--muted); }
.job-card dd { margin: 0; }
.job-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.job-card__more { color: var(--green); font-weight: 500; font-size: 14px; }
@media (max-width: 1023px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .job-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== Post / news ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card { background: var(--surface); position: relative; border: 1px solid var(--line); }
.post-card__img { aspect-ratio: 3 / 2; background: var(--sand) center / cover; transition: opacity .3s; }
.post-card:hover .post-card__img { opacity: .85; }
.post-card__body { padding: 22px 24px 28px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-family: var(--font-latin); }
.post-card__meta .tag { flex-shrink: 0; }
.post-card__date { white-space: nowrap; flex-shrink: 0; letter-spacing: .02em; }
.post-card h3 { font-size: 17px; line-height: 1.7; font-weight: 500; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } }

.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--ink); }
.news-list a { display: grid; grid-template-columns: 120px 110px 1fr; gap: 20px; align-items: center; padding: 24px 8px; color: var(--ink); }
.news-list a:hover { text-decoration: none; background: var(--tint); }
.news-list time { font-family: var(--font-latin); font-size: 14px; color: var(--muted); }
@media (max-width: 767px) { .news-list a { grid-template-columns: auto 1fr; gap: 8px 14px; } .news-list a > span:last-child { grid-column: 1 / -1; } }

/* ===== Tabs / chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 30px 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 60px; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== Filter / forms ===== */
.filter { background: var(--tint); border: 1px solid var(--line); padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end; }
.field label, .field .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.select, .input, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; font: inherit; letter-spacing: .07em; color: var(--ink); }
.select { appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231b281d' stroke-width='1.2'/></svg>") no-repeat right 14px center; padding-right: 38px; }
.textarea { min-height: 140px; resize: vertical; }
.filter__btns { display: flex; gap: 8px; }
.btn--reset { background: #c6c6c6; border-color: #c6c6c6; color: var(--ink); }
.btn--reset:hover { background: #b5b5b5; border-color: #b5b5b5; color: var(--ink); }
@media (max-width: 767px) { .filter { grid-template-columns: 1fr; padding: 24px 20px; } .filter__btns .btn { flex: 1; } }
.result-bar { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.result-bar strong { font-family: var(--font-serif); font-size: 34px; margin-right: 6px; }
.empty { text-align: center; padding: 72px 16px; background: var(--tint); color: var(--muted); line-height: 1.9; }

/* ===== Spec table ===== */
.spec { border-top: 1px solid var(--line-strong); background: var(--surface); }
.spec th, .spec td { padding: 22px 28px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; line-height: 1.7; }
.spec th { width: 240px; font-weight: 500; color: var(--muted); }
@media (max-width: 767px) { .spec th, .spec td { display: block; width: auto; padding: 14px 20px; } .spec th { border-bottom: 0; padding-bottom: 0; font-size: 14px; } }

/* ===== Notice ===== */
.notice { padding: 18px 24px; background: var(--tint); border-left: 3px solid var(--attn); font-size: 14px; line-height: 1.8; }
.notice--info { border-left-color: var(--green); }
.todo { background: #fff3a8; padding: 0 4px; font-weight: 500; color: #5c4b00; }

/* ===== CTA band（teien: フッター手前のミント帯） ===== */
.cta-band { background: var(--mint-soft); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 96px 0; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: .12em; margin-bottom: 16px; }
.cta-band p { margin: 0; line-height: 1.9; }
.cta-band__btns { display: grid; gap: 14px; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; padding: 64px 0; gap: 32px; } }

/* ===== Prose ===== */
.prose { font-size: 16px; line-height: 1.9; }
.prose h2 { font-size: 26px; letter-spacing: .1em; margin: 64px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.prose h3 { font-size: 20px; margin: 40px 0 14px; }
.prose ul { list-style: disc; padding-left: 1.5em; margin: 0 0 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 0 0 1.6em; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 14px 18px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); width: 30%; font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }

.ico-line { width: 22px; height: 22px; }

/* 対象者の切替: ≤1180px はヘッダー内を隠し、メニュー内に表示（定義順の都合で末尾に置く） */
@media (max-width: 1180px) {
  .aud-switch--head { display: none; }
  .zone-chip { display: inline-flex; }
  .aud-switch--menu { display: flex; width: 100%; margin: 20px 0 8px; }
  .aud-switch--menu .aud-switch__item { flex: 1; justify-content: center; }
  /* .gnav a の共通スタイル（padding:20px 0 / border:0 / 17px）が上書きしないよう詳細度を上げる */
  .gnav .aud-switch--menu .aud-switch__item { display: inline-flex; padding: 12px 16px 13px; font-size: 15px; border: 0; color: var(--ink); }
  .gnav .aud-switch--menu .aud-switch__item[aria-current="true"] { color: #fff; }
}
@media (max-width: 1180px) { .site-header__in { gap: 12px; } .nav-toggle { flex: none; } }
@media (max-width: 480px) { .logo__img { height: 26px; } .zone-chip { font-size: 11px; padding: 2px 8px 3px; } }
