/* ===================================================================
   Cheermy Brand Site — Prototype Stylesheet
   =================================================================== */

:root {
  /* Brand yellow = 会社ロゴの黄色 #F5B225。面・装飾は明るい黄色、文字は濃いゴールドで可読性を確保 */
  --coral: #f5b225;       /* primary yellow（面・ボタン・装飾） */
  --coral-dark: #9a6b08;  /* deep gold（白背景上の文字・ラベル・hover） */
  --coral-soft: #fef3d7;  /* pale yellow（背景 tint） */
  --amber: #ffcf4d;       /* light yellow（グラデーションの相方） */
  --ink: #223e4d;         /* navy（キャラクターと同色。見出し・本文） */
  --ink-soft: #55617a;
  --line: #e8ebf1;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(31, 39, 51, 0.06);
  --shadow-md: 0 16px 40px rgba(31, 39, 51, 0.10);
  --maxw: 1120px;
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Baloo 2", var(--font-jp);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.sp-only { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(245, 178, 37, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 178, 37, 0.55); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-dark); transform: translateY(-2px); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5em; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .5px;
  color: var(--coral-dark);
}
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--coral-dark); }
.nav .nav-cta {
  background: var(--ink); color: #fff; padding: .55em 1.2em; border-radius: 999px;
  font-weight: 700;
}
.nav .nav-cta:hover { background: var(--coral-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===================================================================
   Hero
   =================================================================== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 12vw, 140px); background: linear-gradient(180deg, var(--coral-soft), #fff); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 2px; font-size: .8rem;
  color: var(--coral-dark);
  background: #fff; padding: .4em 1em; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.hero-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; line-height: 1.25; letter-spacing: -.5px; }
.hero-title .accent {
  color: var(--ink);
  background: linear-gradient(transparent 58%, rgba(245, 178, 37, 0.65) 58%);
  padding: 0 .08em;
  border-radius: 4px;
}
.hero-lead { margin-top: 1.4rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-character {
  position: relative; z-index: 2;
  width: clamp(300px, 42vw, 480px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(31, 39, 51, 0.18));
}
.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(6px); opacity: .55; }
.blob-1 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #ffd28a, transparent 70%); top: -20px; right: 10px; }
.blob-2 { width: 240px; height: 240px; background: radial-gradient(circle at 60% 60%, #ffc95e, transparent 70%); bottom: -10px; left: 20px; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
}

/* ===================================================================
   Sections (common)
   =================================================================== */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-eyebrow {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 3px;
  color: var(--coral-dark); font-size: .85rem; text-align: center; margin-bottom: .6rem;
}
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.4; }
.section-lead { text-align: center; max-width: 44em; margin: 1.6rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Concept ---- */
.concept { background: var(--bg); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3.2rem; }
.stat { text-align: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1rem; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--coral-dark);
}
.stat-label { color: var(--ink-soft); font-weight: 500; }

/* ---- Products ---- */
.products { background: var(--bg-alt); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 3.2rem; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-icon { font-size: 2.6rem; }
.product-name { margin-top: 1rem; font-size: 1.4rem; font-weight: 900; }
.product-tag { color: var(--coral-dark); font-weight: 700; font-size: .95rem; margin-top: .3rem; }
.product-desc { margin-top: 1rem; color: var(--ink-soft); }
.product-list { margin-top: 1.2rem; display: grid; gap: .6rem; }
.product-list li { position: relative; padding-left: 1.6em; color: var(--ink); font-size: .96rem; }
.product-list li::before { content: "✓"; position: absolute; left: 0; color: var(--coral-dark); font-weight: 800; }
.badge {
  display: inline-block; margin-top: 1.6rem; font-size: .8rem; font-weight: 700;
  color: var(--coral-dark); background: var(--coral-soft); padding: .4em 1em; border-radius: 999px;
}

/* ---- Features ---- */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3.2rem; }
.feature {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: #fff; }
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--coral-soft); border-radius: 14px; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; font-weight: 800; }
.feature p { margin-top: .6rem; color: var(--ink-soft); font-size: .96rem; }

/* ---- CTA ---- */
.cta { background: linear-gradient(135deg, var(--ink), #2c3852); color: #fff; text-align: center; }
.cta-character {
  width: 96px; height: 96px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 12px;
  margin: 0 auto 1.4rem; box-shadow: var(--shadow-md);
  animation: bob 5s ease-in-out infinite;
}
.cta-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; }
.nobreak { display: inline-block; white-space: nowrap; }
.cta-lead { margin-top: 1.2rem; color: rgba(255, 255, 255, 0.8); }
.cta-actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note { margin-top: 1.8rem; font-size: .8rem; color: rgba(255, 255, 255, 0.55); }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 3rem 0; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.footer-tagline { color: var(--ink-soft); margin-top: .4rem; font-size: .9rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--ink-soft); font-size: .95rem; }
.footer-nav a:hover { color: var(--coral-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer-bottom small { color: var(--ink-soft); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.2rem;
    transform: translateY(-120%); transition: transform .28s ease;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a { padding: .9em 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: .6rem; border-bottom: 0; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }

  /* ヒーロー: モバイルではキャラをやや小さく */
  .hero-visual { min-height: auto; }
  .hero-character { width: clamp(220px, 66vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
