/*
Theme Name: 九州AI社会実装機構
Theme URI: https://github.com/edaha-kurose/kyushu-ai-kiko-lp
Description: 九州AI社会実装機構 LP をそのままクラシックテーマ化したテーマ。
Author: 九州AI社会実装機構
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kyushu-ai-kiko
*/

/* ===== 全ページ共通CSS（元HTMLの全ページで共通だったルール） ===== */
/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1B2A4A;
  --navy-dark: #111E35;
  --navy-light: #243557;
  --gold: #9B7B3C;
  --gold-light: #C49A50;
  --text: #1A1E2E;
  --text-muted: #5A6070;
  --text-light: #8A93A4;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-mid: #EEF0F5;
  --border: #D8DCE8;
  --border-light: #E8EBF2;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

/* ===== LAYOUT ===== */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== SECTION LABELS ===== */
.sec-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.sec-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 38em;
  margin-top: 1.2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .75em 1.8em;
  border-radius: 4px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1.4;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo-text {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.logo-text small {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s;
}

.site-nav a:hover { color: var(--navy); }

.header-cta {
  flex: none;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
  opacity: .6;
}

/* ===== スマホ用メニュー ===== */
.nav-toggle { display: none; }

/* ===== WordPress 用の追加ルール（元HTMLには無い） ===== */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* 600px 以下では管理バーが position:absolute になりスクロールで流れるため、ヘッダーも追従させる */
@media screen and (max-width: 600px) { .admin-bar .site-header { position: absolute; } }
.members-page { padding-top: 64px; }
.kyushu-fallback { padding-top: calc(64px + clamp(3rem, 6vw, 5rem)); }
