/* =====================================================
   PA45 共通スタイルシート
   すべてのページがこの1ファイルを読み込みます
   ===================================================== */

/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== デザイントークン（色・サイズの設定） ===== */
:root {
  --c-bg:        #f8f7f4;
  --c-surface:   #ffffff;
  --c-border:    rgba(0,0,0,0.10);
  --c-border-md: rgba(0,0,0,0.18);
  --c-text:      #1a1a18;
  --c-muted:     #6b6b67;
  --c-hint:      #9b9b96;

  --c-blue-bg:    #e8f1fb;
  --c-blue-mid:   #2a7dd4;
  --c-blue-text:  #0b3e72;

  --c-green-bg:   #e6f3e0;
  --c-green-text: #2a5e1e;

  --c-amber-bg:   #fdf0d8;
  --c-amber-text: #6b3d08;

  --c-teal-bg:    #e0f4ee;
  --c-teal-text:  #0d5c42;

  --c-purple-bg:  #edeefe;
  --c-purple-text:#3a3598;

  --c-coral-bg:   #fbeae6;
  --c-coral-text: #7a2e1a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.07), 0 0 0 0.5px rgba(0,0,0,0.09);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.10), 0 0 0 0.5px rgba(0,0,0,0.12);

  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --max-w:    1100px;
  --pad-page: clamp(16px, 4vw, 40px);
}

/* ===== 基本スタイル ===== */
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== レイアウト共通 ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}
.section { padding: 48px 0; }
.section + .section { padding-top: 0; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--c-hint);
  margin-bottom: 14px;
}

/* ===== アニメーション ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .55s ease forwards; }
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .13s; }
.fade-up:nth-child(3) { animation-delay: .21s; }
.fade-up:nth-child(4) { animation-delay: .29s; }
.fade-up:nth-child(5) { animation-delay: .37s; }

/* ===== グローバルヘッダー ===== */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
}
.site-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-text);
  margin-right: auto;
}
.site-logo span {
  font-weight: 400;
  font-size: 13px;
  color: var(--c-muted);
  margin-left: 6px;
}
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  font-size: 13px;
  color: var(--c-muted);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active { background: var(--c-bg); color: var(--c-text); }
.header-nav a.active { font-weight: 500; }

.header-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--c-blue-bg);
  color: var(--c-blue-text);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s;
}
.header-cta:hover { background: #d4e8f8; }

/* ハンバーガー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--c-muted); border-radius: 2px;
  transition: .2s;
}
.mobile-nav {
  display: none;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 12px var(--pad-page) 16px;
}
.mobile-nav a {
  display: block;
  font-size: 15px;
  color: var(--c-muted);
  padding: 10px 4px;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: block; }

/* ===== ページヘッダー（各ページ上部の紺色ブロック）===== */
.page-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 44px 0 36px;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--c-blue-bg);
  color: var(--c-blue-text);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.page-hero-h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.page-hero-sub {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 500px;
}

/* ===== カード共通 ===== */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, transform .1s;
  border: none;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--c-blue-bg);
  color: var(--c-blue-text);
  border: 1px solid var(--c-blue-mid);
}
.btn-primary:hover { background: #d4e8f8; }
.btn-outline {
  background: var(--c-surface);
  color: var(--c-muted);
  border: 1px solid var(--c-border-md);
}
.btn-outline:hover { background: var(--c-bg); color: var(--c-text); }
.btn-small {
  font-size: 12px;
  font-weight: 500;
  background: var(--c-surface);
  color: var(--c-blue-text);
  border: 1px solid var(--c-blue-mid);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
  display: inline-block;
}
.btn-small:hover { background: var(--c-blue-bg); }

/* ===== CTA バー ===== */
.cta-bar {
  background: var(--c-blue-bg);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.cta-bar p { font-size: 13px; color: var(--c-blue-text); line-height: 1.5; }

/* ===== タグ（カテゴリコード）===== */
.tag-code {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}
.tag-code.var    { background: var(--c-blue-bg);   color: var(--c-blue-text); }
.tag-code.cond   { background: var(--c-purple-bg); color: var(--c-purple-text); }
.tag-code.select { background: var(--c-green-bg);  color: var(--c-green-text); }
.tag-code.filter { background: var(--c-amber-bg);  color: var(--c-amber-text); }
.tag-code.ate    { background: var(--c-coral-bg);  color: var(--c-coral-text); }
.tag-code.date   { background: var(--c-teal-bg);   color: var(--c-teal-text); }
.tag-code.exp    { background: var(--c-amber-bg);  color: var(--c-amber-text); }
.tag-code.pjson  { background: var(--c-purple-bg); color: var(--c-purple-text); }
.tag-code.dbg    { background: #f1efe8; color: #444; }

/* ===== タグピル（横断ナビ）===== */
.tag-pill {
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--c-border-md);
  color: var(--c-muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--c-surface);
  display: inline-block;
}
.tag-pill:hover {
  background: var(--c-blue-bg);
  border-color: var(--c-blue-mid);
  color: var(--c-blue-text);
}

/* ===== フォーム要素 ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--c-border-md);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
  outline: none;
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--c-blue-mid); }

/* ===== お知らせ・インフォメーションボックス ===== */
.info-box {
  background: var(--c-blue-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--c-blue-text);
  line-height: 1.65;
  margin-bottom: 16px;
}
.success-box {
  background: var(--c-green-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--c-green-text);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ===== ステップ番号付きリスト ===== */
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.step-num {
  font-size: 12px;
  font-weight: 700;
  background: var(--c-blue-bg);
  color: var(--c-blue-text);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-body {}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step-desc  { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.faq-q { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.faq-a { font-size: 13px; color: var(--c-muted); line-height: 1.7; }

/* ===== セクション区切り線 ===== */
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* ===== 実績数値カード ===== */
.stat-card {
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.stat-n { font-size: 22px; font-weight: 700; color: var(--c-text); line-height: 1; margin-bottom: 4px; }
.stat-l { font-size: 11px; color: var(--c-hint); }

/* ===== フッター ===== */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 36px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-col-title {
  font-size: 12px; font-weight: 600;
  color: var(--c-text); margin-bottom: 10px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: var(--c-muted); padding: 3px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--c-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 12px; color: var(--c-hint);
  flex-wrap: wrap; gap: 8px;
}

/* ===== プロフィール自己紹介 ===== */
.profile-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-text { flex: 1; }
.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.profile-bio {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0 0 10px;
}
.profile-links { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-link {
  font-size: 12px;
  color: var(--c-blue-text);
  text-decoration: none;
  font-weight: 500;
}
.profile-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .profile-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile-avatar { width: 64px; height: 64px; }
}

/* ===== 最新の活動フィード ===== */
.act-feed-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: box-shadow .2s, transform .2s;
}
.act-feed-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.act-feed-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.act-feed-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.act-feed-date {
  font-size: 12px;
  color: var(--c-hint);
  font-family: 'DM Mono', monospace;
}
.act-feed-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
  line-height: 1.45;
}
.act-feed-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.55;
}

/* ===== 最新の活動カードグリッド ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== ヒーロー2カラムレイアウト（PC） ===== */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-right { display: none; }
}

/* ===== ヒーロー右カード ===== */
.hero-right-card {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  padding: 24px;
}
.hero-right-card-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-blue-mid); margin-bottom: 16px;
}
.hero-stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px;
}
.hero-stat {
  background: var(--c-bg); border-radius: var(--radius-md);
  padding: 14px 12px; text-align: center;
}
.hero-stat-n { font-size: 24px; font-weight: 700; color: var(--c-blue-text); line-height: 1; margin-bottom: 4px; }
.hero-stat-l { font-size: 11px; color: var(--c-hint); }
.hero-next-label { font-size: 11px; color: var(--c-hint); margin-bottom: 6px; }
.hero-next-title { font-size: 14px; font-weight: 600; color: var(--c-text); margin-bottom: 10px; line-height: 1.4; }

/* ===== レスポンシブ（スマートフォン対応）===== */
@media (max-width: 640px) {
  .header-nav  { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
