/*
 * FUNDMADE / common.css
 * 全ページ共通のCSS変数・ヘッダー・SP-nav・フッター・レスポンシブ
 * 各ページ固有のスタイルは <style> タグ内に書く
 */

/* ─── CSS 変数 ─────────────────────────────────────────── */
:root {
  --orange: #E8571E;
  --red:    #C93030;
  --green:  #1F9E57;
  --teal:   #138F87;
  --yellow: #F5C842;
  --navy:   #141422;
  --cream:  #FAF6F0;
  --gray:   #EDE8E0;
  --gray2:  #D8D1C8;
  --text:   #201A14;
  --sub:    #8A7A6A;
  --white:  #FFFFFF;
  --sh:     0 2px 12px rgba(0,0,0,.08);
  --sh-h:   0 6px 24px rgba(0,0,0,.14);
  --r:      12px;
}

/* ─── リセット ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ─── ヘッダー ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray2);
  padding: 0 40px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header-logo { display: flex; align-items: center; }
.site-header-logo img { height: 40px; display: block; }

/* ─── PC ナビ ───────────────────────────────────────────── */
.site-nav {
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  font-size: 13px; font-weight: 700; padding: 6px 14px;
  border-radius: 6px; color: var(--sub); transition: all .18s; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--gray); }
.site-nav a.act  { color: var(--orange); background: #FFF3EE; }
.site-nav .member-name { font-size: 13px; color: var(--sub); font-weight: 700; padding: 6px 14px; }
.site-nav .btn-login    { background: var(--navy)   !important; color: var(--white) !important; border-radius: 6px !important; }
.site-nav .btn-login:hover { background: var(--orange) !important; }
.site-nav .btn-register { background: var(--orange) !important; color: var(--white) !important; border-radius: 6px !important; }
.site-nav .btn-register:hover { background: var(--red) !important; }
.site-nav .btn-logout-nav {
  background: transparent; border: 1px solid var(--gray2); border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--sub);
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: all .18s;
}
.site-nav .btn-logout-nav:hover { border-color: var(--navy); color: var(--navy); }

/* ─── ハンバーガーボタン ────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 0; background: none; border: none;
  width: 44px; height: 44px; flex-shrink: 0; z-index: 110; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all .2s; margin: 0 auto;
}

/* ─── SP ドロワー nav ───────────────────────────────────── */
.sp-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 200;
  align-items: flex-start; justify-content: flex-end;
}
.sp-nav.open { display: flex; }
.sp-nav-inner {
  background: var(--white); width: 260px; min-height: 100vh;
  padding: 16px 0 32px;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
}
.sp-nav-close {
  align-self: flex-end; margin: 0 14px 12px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.sp-nav-brand { padding: 8px 24px 16px; border-bottom: 1px solid var(--gray); margin-bottom: 4px; }
.sp-nav-brand img { height: 30px; display: block; }
.sp-nav a {
  display: block; padding: 14px 28px; font-size: 15px; font-weight: 700;
  color: var(--text); border-bottom: 1px solid var(--gray);
}
.sp-nav a:last-child { border-bottom: none; }
.sp-nav a.act { color: var(--orange); background: #FFF8F5; }
.sp-nav-login    { color: var(--white) !important; background: var(--navy) !important; margin: 12px 20px 4px; border-radius: 8px; text-align: center; }
.sp-nav-register { color: var(--white) !important; background: var(--orange) !important; margin: 4px 20px 8px; border-radius: 8px; text-align: center; }
.sp-nav-login:hover    { background: var(--orange) !important; }
.sp-nav-register:hover { background: var(--red) !important; }

/* ─── フッター ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 64px 28px;
}
.site-footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.site-footer-logo img { height: 26px; display: block; opacity: .7; filter: brightness(0) invert(1); }
.site-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer-links a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .15s; }
.site-footer-links a:hover { color: rgba(255,255,255,.8); }
.site-footer-copy { font-size: 11px; color: rgba(255,255,255,.25); }

/* ─── タイポ底上げ（モバイル） ──────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.7; }
  input, select, textarea, button { font-size: 16px; }
  .site-footer { padding: 32px 20px 24px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer-links { gap: 14px; }
  .site-footer-links a, .site-footer-copy { font-size: 13px; }
}
