/* ==========================================================================
   一般社団法人 日本労働安全衛生コンサルタント会 兵庫支部 — 共通スタイル
   ========================================================================== */

:root {
  --navy-900: #10253d;
  --navy-800: #17324f;
  --navy-700: #1c3d5a;
  --navy-600: #2c5f8a;
  --navy-500: #3d78ac;
  --sky-100: #eef4fa;
  --sky-200: #dbe8f3;
  --amber-600: #e0873a;
  --amber-700: #c76f26;
  --amber-100: #fdf1e3;
  --ink-900: #202932;
  --ink-700: #3f4a56;
  --ink-500: #667180;
  --line: #dfe6ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --ok-600: #2f8f5b;
  --ok-100: #e7f6ee;
  --warn-600: #c14b3a;
  --warn-100: #fbeae7;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(16, 37, 61, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 37, 61, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Hiragino Kaku Gothic ProN", "Meiryo UI", "Yu Gothic", sans-serif; color: var(--navy-900); line-height: 1.5; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--navy-900);
  color: #cfe0f0;
  font-size: 12.5px;
}
.header-top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.header-top a { color: #cfe0f0; }
.header-top .htop-links { display: flex; gap: 16px; }

.header-main .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .5px; flex: none;
}
.brand-text .brand-en { font-size: 11px; letter-spacing: 1.5px; color: var(--navy-600); font-weight: 700; }
.brand-text .brand-jp { font-size: 15px; font-weight: 700; color: var(--navy-900); }
.brand-text .brand-jp small { font-weight: 500; color: var(--ink-500); font-size: 12px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-700); font-size: 14.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 6px; text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-700); background: var(--sky-100); }
.nav-cta {
  display: flex; gap: 8px; align-items: center; flex: none;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber-600); color: #fff; }
.btn-primary:hover { background: var(--amber-700); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--navy-600); }
.btn-outline:hover { background: var(--sky-100); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------- パンくず ---------- */
.breadcrumb { background: var(--sky-100); font-size: 13px; color: var(--ink-500); }
.breadcrumb .wrap { padding: 10px 24px; }
.breadcrumb a { color: var(--navy-600); }

/* ---------- ページヘッダー(下層ページ用) ---------- */
.page-head {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 46px 0;
}
.page-head .eyebrow { color: var(--amber-600); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; margin-bottom: 8px; }
.page-head h1 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.page-head p { color: #cfe0f0; max-width: 680px; margin-bottom: 0; }

/* ---------- ヒーロー(トップページ) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(16,37,61,.92) 30%, rgba(23,50,79,.72) 100%); }
.hero-inner { position: relative; padding: 92px 0 100px; }
.hero .eyebrow { display: inline-block; background: rgba(224,135,58,.18); border: 1px solid rgba(224,135,58,.5); color: #ffcd9a; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: 38px; max-width: 680px; margin-bottom: 18px; }
.hero p.lead { color: #dbe8f3; font-size: 16px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- セクション共通 ---------- */
section { padding: 68px 0; }
section.tight { padding: 44px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow-line { color: var(--amber-700); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 27px; margin-bottom: 10px; }
.section-head p { color: var(--ink-500); margin-bottom: 0; }
.bg-white { background: var(--white); }
.bg-sky { background: var(--sky-100); }
.bg-navy { background: var(--navy-900); color: #dbe8f3; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- グリッド ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- カード ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 0; }
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--sky-200); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sky-100);
  color: var(--navy-700); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px; flex: none;
}

.feature-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row h4 { margin-bottom: 4px; font-size: 15.5px; }
.feature-row p { color: var(--ink-500); font-size: 14px; margin-bottom: 0; }

/* ---------- お知らせ / リスト ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; flex-wrap: wrap;
}
.news-item:first-child { padding-top: 0; }
.news-date { color: var(--ink-500); font-size: 13px; width: 96px; flex: none; }
.news-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 10px; }
.tag-info { background: var(--sky-200); color: var(--navy-700); }
.tag-event { background: var(--amber-100); color: var(--amber-700); }
.tag-notice { background: var(--warn-100); color: var(--warn-600); }
.news-item a { color: var(--ink-900); font-weight: 600; }

/* ---------- テーブル ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); }
table.styled th, table.styled td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.styled th { background: var(--sky-100); color: var(--navy-800); width: 200px; font-weight: 700; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- フォーム ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--navy-900); }
.form-field .hint { font-size: 12.5px; color: var(--ink-500); margin-top: 5px; }
.required-tag { background: var(--warn-600); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.optional-tag { background: var(--ink-500); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--ink-900); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(61,120,172,.15); }
textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-700); }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* ---------- バッジ / ステータス ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.badge-ok { background: var(--ok-100); color: var(--ok-600); }
.badge-warn { background: var(--warn-100); color: var(--warn-600); }
.badge-navy { background: var(--sky-200); color: var(--navy-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-700); }

/* ---------- アラート/通知 ---------- */
.alert { border-radius: var(--radius); padding: 16px 18px; font-size: 14px; margin-bottom: 22px; border: 1px solid; }
.alert-info { background: var(--sky-100); border-color: var(--sky-200); color: var(--navy-800); }
.alert-ok { background: var(--ok-100); border-color: #bfe3cd; color: #1f6b41; }
.alert-warn { background: var(--warn-100); border-color: #f2c9c0; color: var(--warn-600); }

/* ---------- パンくずタブ ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 18px; font-weight: 700; font-size: 14px; color: var(--ink-500);
  background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--navy-700); border-bottom-color: var(--amber-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- CTA帯 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-900); color: #a9bfd4; padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a { color: #a9bfd4; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-jp, .footer-brand .brand-en { color: #fff; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; font-size: 12.5px; color: #7d93aa; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #7d93aa; }

/* ---------- ユーティリティ ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.divider { height: 1px; background: var(--line); margin: 28px 0; border: none; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ---------- 会員デモ 共通 ---------- */
.demo-flag {
  position: fixed; bottom: 18px; right: 18px; z-index: 200;
  background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px; opacity: .92;
}
.demo-flag span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-600); }

.member-shell { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member-side { background: var(--navy-900); color: #cfe0f0; padding: 26px 20px; }
.member-side .m-user { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.member-side .m-user strong { color: #fff; display: block; font-size: 14px; }
.member-side .m-user span { font-size: 12px; color: #8fabc5; }
.member-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.member-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #cfe0f0; font-size: 13.5px; font-weight: 600; }
.member-nav a:hover, .member-nav a.active { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.member-main { padding: 30px 34px; }
.member-main h2 { font-size: 21px; }

.search-bar { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; margin-bottom: 26px; }
.member-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; align-items: center; }
.member-card + .member-card { margin-top: 12px; }
.member-card .mc-body { flex: 1; }
.member-card .mc-body h4 { margin: 0 0 3px; font-size: 15px; }
.member-card .mc-body .mc-meta { color: var(--ink-500); font-size: 13px; }

.pay-summary { background: var(--sky-100); border: 1px solid var(--sky-200); border-radius: var(--radius); padding: 22px; }
.pay-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; }
.pay-row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--sky-200); margin-top: 6px; padding-top: 14px; color: var(--navy-900); }
.stripe-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .member-shell { grid-template-columns: 1fr; }
  .member-side { display: flex; overflow-x: auto; }
  .member-nav { flex-direction: row; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-outline { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-split { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 56px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  table.styled th { width: 120px; }
  .page-head h1 { font-size: 24px; }
  section { padding: 46px 0; }
}
