/* ═══════════════════════════════════════════════════════════════
   Wannaポータル — 公開サイト共通テーマ（旧 HubSpot wannaportal-site/partials/theme.css）
   フォントは layout/site.html.erb の <link> でロード
   ═══════════════════════════════════════════════════════════════ */

/* ───── Theme variables ───── */
:root {
  --brand: #E89028;
  --brand-600: #c97718;
  --brand-400: #f5a94a;
  --brand-100: #fde9cc;
  --brand-50:  #fef5e6;
  --brand-contrast: #fff;

  --accent: #167BC2;
  --accent-600: #0e5e97;

  --line-green: #06C755;

  --ink: #2a1a0d;
  --ink-soft: #6f543a;
  --ink-mute: #a89079;
  --paper: #FFF8EC;
  --card: #ffffff;
  --border: rgba(42, 26, 13, 0.08);
  --border-strong: rgba(42, 26, 13, 0.14);

  --font-sans: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-num: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(42,26,13,0.04), 0 4px 12px rgba(42,26,13,0.05);
  --shadow: 0 2px 8px rgba(42,26,13,0.06), 0 20px 48px rgba(42,26,13,0.08);
  --shadow-lg: 0 10px 30px rgba(42,26,13,0.1), 0 40px 100px rgba(42,26,13,0.12);

  --max-w: 1160px;
}

body.theme-mint {
  --brand: #3BC9A7;
  --brand-600: #24a688;
  --brand-400: #72dec3;
  --brand-100: #d4f4eb;
  --brand-50:  #eaf9f4;
  --accent: #E89028;
  --accent-600: #c97718;
  --ink: #0e2e27;
  --ink-soft: #3e6b62;
  --ink-mute: #8fb0a9;
  --paper: #F4FBF8;
  --border: rgba(14, 46, 39, 0.08);
  --border-strong: rgba(14, 46, 39, 0.14);
}

body.theme-blue {
  --brand: #3B82F6;
  --brand-600: #2563eb;
  --brand-400: #7ba8f9;
  --brand-100: #dae6fd;
  --brand-50:  #edf3fe;
  --accent: #E89028;
  --accent-600: #c97718;
  --ink: #0b1f3b;
  --ink-soft: #405a7d;
  --ink-mute: #94a7c0;
  --paper: #F3F7FD;
  --border: rgba(11, 31, 59, 0.08);
  --border-strong: rgba(11, 31, 59, 0.14);
}

/* ───── Reset & base ───── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ───── Layout ───── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }

/* ───── Brand lockup (shared: header + footer) ───── */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.brand-lockup .paw { width: 28px; height: 28px; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn-line:hover { box-shadow: 0 6px 22px rgba(6, 199, 85, 0.5); }
.btn-line .line-icon {
  width: 22px;
  height: 22px;
  background: #fff;
  color: var(--line-green);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  font-family: var(--font-num);
  line-height: 1;
  padding-top: 1px;
}

.btn-hero {
  font-size: 20px;
  padding: 20px 36px;
  border-radius: 999px;
}
.btn-hero .line-icon { width: 28px; height: 28px; font-size: 16px; }

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 4px 14px rgba(232, 144, 40, 0.3);
}
body.theme-mint .btn-primary { box-shadow: 0 4px 14px rgba(59, 201, 167, 0.3); }
body.theme-blue .btn-primary { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }

.btn-meta {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ───── LINE 公式ログインボタン画像（既存LINEアプリと共有） ───── */
.btn-line-img {
  display: inline-block;
  width: 200px;
  height: 58px;
  background-image: url("/assets/btn_login_base-63c6fda9.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn-line-img:hover {
    background-image: url("/assets/btn_login_hover-71e75b80.png");
  }
}
.btn-line-img:active {
  background-image: url("/assets/btn_login_press-d62236f2.png");
  transform: translateY(1px);
}
.btn-line-img.sm { width: 151px; height: 44px; }
.btn-line-img.lg { width: 280px; height: 82px; }
@media (max-width: 720px) {
  .btn-line-img.lg { width: 240px; height: 70px; }
}

/* ───── LINE 公式 友だち追加ボタン（画像版） ─────
   LINE 配布の公式画像 https://scdn.line-apps.com/n/line_add_friends/btn/ja.png
   （ネイティブ 232×72px）を、height だけ指定してアスペクト維持で表示。
*/
.line-add-friend-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.12s;
}
.line-add-friend-link:hover { opacity: 0.85; }
.line-add-friend-link:active { transform: translateY(1px); }
.line-add-friend-link img { display: block; width: auto; }
.line-add-friend-link--center { justify-content: center; width: 100%; }

.site-header .line-add-friend-link img { height: 36px; }
.hero .line-add-friend-link img        { height: 60px; }
.pricing .line-add-friend-link img     { height: 48px; }
.flow .line-add-friend-link img        { height: 60px; }
.final-cta .line-add-friend-link img   { height: 60px; }

@media (max-width: 720px) {
  .site-header .line-add-friend-link img { height: 32px; }
  .hero .line-add-friend-link img        { height: 52px; }
  .pricing .line-add-friend-link img     { height: 44px; }
  .flow .line-add-friend-link img        { height: 52px; }
  .final-cta .line-add-friend-link img   { height: 52px; }
}
@media (max-width: 480px) {
  .site-header .line-add-friend-link img { height: 28px; }
  .hero .line-add-friend-link img        { height: 48px; }
  .flow .line-add-friend-link img        { height: 48px; }
  .final-cta .line-add-friend-link img   { height: 48px; }
}

/* ───── Section primitives ───── */
.section-pad { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-600);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-num);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.section-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-title .accent { color: var(--brand); }

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 640px;
}
.section-head {
  text-align: center;
  margin: 0 auto 56px;
}
.section-head .section-lead { margin: 0 auto; }

/* ───── Decorative ───── */
.deco-paw { position: absolute; pointer-events: none; opacity: 0.12; }

/* ───── Card ───── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ───── Pill ───── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-100);
  color: var(--brand-600);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.pill.solid { background: var(--brand); color: #fff; }
.pill.blue { background: rgba(22, 123, 194, 0.12); color: var(--accent-600); }

/* ───── Focus ───── */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ───── Shared responsive ───── */
@media (max-width: 1024px) {
  :root { --max-w: 100%; }
  .wrap { padding: 0 32px; }
  .section-pad { padding: 72px 0; }
  .section-title { font-size: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .brand-lockup { font-size: 16px; }
  .brand-lockup .paw { width: 24px; height: 24px; }
  .eyebrow { font-size: 11px; }
  .section-title { font-size: 26px; line-height: 1.3; }
  .section-lead { font-size: 14px; }
  .section-head { margin-bottom: 36px; }
  .pill { font-size: 12px; padding: 5px 12px; }
}
