/* /css/public.css */
/* 公開サイト共通デザイン（/inc/public/header.php / footer.php 前提） */

:root{
  --accent:#ff4f88;
  --accent-dark:#e23f76;
  --accent-light:#ffe0ec;

  --bg:#f5f7fb;
  --card-bg:#ffffff;

  --text-main:#1f2933;
  --text-muted:#6b7280;

  --border:#e0e4f0;

  --header-bg:#111;
  --header-text:#ffffff;
  --header-muted:#cbd5e1;
  --header-hover-bg:rgba(255,79,136,.18);
}

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

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(
      circle at top left,
      #ffe0ec 0%,
      #f5f7fb 38%,
      #edf2ff 100%
    );
  color:var(--text-main);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

/* =========================
   Header
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
}

/* --- Header Top --- */
.site-header-top{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.site-header-top-inner{
  max-width:1120px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.site-logo-wrap{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.site-logo-mark{
  width:30px;
  height:30px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),#ffd6e9);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
}

.site-logo-text-main{
  font-size:15px;
  font-weight:700;
  line-height:1.1;
}

.site-logo-text-sub{
  font-size:11px;
  color:var(--text-muted);
  margin-top:2px;
}

.btn-contact{
  font-size:12px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  text-decoration:none;
  color:#111;
}
.btn-contact:hover{
  background:#fff;
  border-color:#cbd5e1;
}

/* --- Header Bottom --- */
.site-header-bottom{
  background:var(--header-bg);
  border-top:1px solid #000;
  border-bottom:1px solid #333;
}

.site-header-bottom-inner{
  max-width:1120px;
  margin:0 auto;
  padding:8px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.site-nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.nav-link{
  font-size:13px;
  padding:5px 12px;
  border-radius:999px;
  color:var(--header-muted);
  text-decoration:none;
}

.nav-link:hover,
.nav-link-active{
  background:var(--header-hover-bg);
  color:#fff;
  font-weight:600;
}

/* Buttons */
.btn{
  padding:7px 14px;
  border-radius:999px;
  font-size:12px;
  text-decoration:none;
  white-space:nowrap;
}

.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:#fff;
}

.btn-outline{
  border:1px solid #555;
  color:#eee;
}

.btn-trial{
  color:#fff;
  text-decoration:underline;
}

/* =========================
   Main
========================= */
.site-main{
  max-width:1120px;
  width:100%;
  margin:0 auto;
  padding:22px 16px 40px;
  flex:1;

  /* ★ 中央寄り事故の抑止 */
  text-align:left;
}

/* =========================
   Sections
========================= */
.section{
  margin:0 0 18px;
}

.section + .section{
  margin-top:22px;
}

.section-title{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.25;
  letter-spacing:.02em;
}

.section-lead{
  margin:0 0 14px;
  color:var(--text-muted);
  line-height:1.9;
  font-size:14px;
}

/* =========================
   Card（全ページ共通）
========================= */
.card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 22px rgba(17,24,39,.06);

  width:100%;
  max-width:860px;   /* 左寄せ基準幅 */
  margin:0;          /* 中央寄せ禁止 */
}

.card a{
  color:inherit;
}

/* =========================
   Footer
========================= */
.site-footer{
  background:#111;          /* ★ 黒背景 */
  color:#e5e7eb;
  margin-top:auto;
}

.site-footer-inner{
  max-width:1120px;
  margin:0 auto;
  padding:24px 16px;
}

/* ★ フッター：1行・中央寄せ */
.footer-inline{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  text-align:center;
}

.site-footer-copy{
  font-size:12px;
  color:#9ca3af;
}

.site-footer-title{
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
}

.site-footer-sep{
  color:#6b7280;
  font-size:12px;
}

/* ★ プライバシーポリシーリンク */
.site-footer-link{
  font-size:12px;
  font-weight:600;
  color:#d1d5db;
  text-decoration:none;
}
.site-footer-link:hover{
  color:#fff;
  text-decoration:underline;
}

/* =========================
   Responsive
========================= */
@media (max-width:640px){

  .site-logo-text-sub{
    display:none;
  }

  .site-header-bottom-inner{
    flex-direction:column;
    align-items:stretch;
  }

  .site-nav{
    justify-content:center;
  }

  .section-title{
    font-size:20px;
  }

  .card{
    padding:16px;
    max-width:100%;
  }

  /* スマホでもフッターは中央1行（必要に応じて折返し） */
  .footer-inline{
    flex-wrap:wrap;
    row-gap:6px;
  }
}