/* ===== RESET & BASE ===== */
:root {
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-lt: #eff6ff;
  --blue-mid: #bfdbfe;
  --g100: #f8fafc;
  --g200: #e2e8f0;
  --g300: #cbd5e1;
  --g400: #94a3b8;
  --g600: #475569;
  --g800: #1e293b;
  --g900: #0f172a;
  --white: #fff;
  --shadow: 0 4px 24px rgba(37,99,235,.12);
  --shadow-lg: 0 12px 48px rgba(37,99,235,.18);
  --r: 12px;
  --rr: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--g800); background: var(--white); line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--g200);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.45rem; font-weight: 900; color: var(--g900); letter-spacing: -.02em; }
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--g600); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.btn-nav {
  background: var(--blue) !important; color: #fff !important;
  padding: .42rem 1.15rem; border-radius: 8px;
  font-weight: 700 !important; font-size: .88rem !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--blue-d) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--g600); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 70px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #f8fafc 0%, #eff6ff 55%, #f0f9ff 100%);
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--g200) 1px, transparent 1px),
    linear-gradient(90deg, var(--g200) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .4;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0;
}
.b1 { width: 500px; height: 500px; top: -100px; left: -150px; background: rgba(37,99,235,.08); }
.b2 { width: 400px; height: 400px; bottom: -80px; right: -100px; background: rgba(124,58,237,.07); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--blue-lt); color: var(--blue);
  border: 1px solid var(--blue-mid); border-radius: 999px;
  font-size: .8rem; font-weight: 700; padding: .32rem .95rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem); font-weight: 900;
  line-height: 1.25; color: var(--g900); margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero h1 strong {
  background: linear-gradient(90deg, var(--blue), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead { font-size: 1.05rem; color: var(--g400); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff;
  padding: .8rem 1.8rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 24px rgba(37,99,235,.38);
  transition: all .2s;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,.4); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--blue); color: var(--blue);
  padding: .8rem 1.8rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--blue-lt); }
.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat-n { display: block; font-size: 1.8rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.hstat-l { font-size: .76rem; color: var(--g400); }
.hstat-div { width: 1px; height: 38px; background: var(--g300); }

/* ===== SECTIONS COMMON ===== */
section { padding: 80px 0; }
.sec-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  color: var(--blue); text-transform: uppercase; margin-bottom: .6rem;
}
.sec-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900;
  line-height: 1.3; margin-bottom: .9rem;
}
.sec-sub { color: var(--g400); margin-bottom: 2.8rem; }

/* ===== PAIN ===== */
.pain { background: var(--g100); }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2rem; }
.pain-card {
  background: var(--white); border-radius: var(--r);
  padding: 1.5rem; text-align: center;
  border: 1px solid var(--g200); transition: transform .25s, box-shadow .25s;
}
.pain-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pain-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin: 0 auto .9rem;
}
.pain-card p { font-size: .88rem; color: var(--g600); line-height: 1.65; }
.pain-card strong { color: var(--g900); }

/* ===== STRENGTHS ===== */
.strengths { background: var(--white); }
.str-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }
.str-card {
  padding: 2rem; border-radius: var(--rr);
  border: 2px solid var(--g200); position: relative; overflow: hidden;
  transition: all .3s;
}
.str-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.str-card.featured { background: var(--blue); border-color: var(--blue); }
.str-num { font-size: 3rem; font-weight: 900; color: var(--g200); line-height: 1; margin-bottom: .4rem; }
.str-card.featured .str-num { color: rgba(255,255,255,.15); }
.str-ico { font-size: 2rem; color: var(--blue); margin-bottom: .8rem; }
.str-card.featured .str-ico { color: rgba(255,255,255,.9); }
.str-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .6rem; line-height: 1.4; }
.str-card.featured h3 { color: #fff; }
.str-card p { font-size: .86rem; color: var(--g400); line-height: 1.75; }
.str-card.featured p { color: rgba(255,255,255,.78); }
.str-card p strong { color: var(--g800); }
.str-card.featured p strong { color: #fff; }

/* ===== WORKS ===== */
.works { background: var(--g100); }
.works-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.8rem; }
.work-card {
  background: var(--white); border-radius: var(--rr); overflow: hidden;
  border: 1px solid var(--g200); transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.work-thumb {
  height: 175px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cafe-bg { background: linear-gradient(135deg, #3d1f0d 0%, #7c4a1e 60%, #a0622a 100%); }
.school-bg { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #0288d1 100%); }
.line-bg { background: linear-gradient(135deg, #0a0a0a 0%, #12002a 50%, #1a0040 100%); }
.work-ico { font-size: 3.2rem; color: rgba(255,255,255,.75); z-index: 1; }
.work-chip {
  position: absolute; top: .9rem; right: .9rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .22rem .65rem; border-radius: 999px;
}
.work-body { padding: 1.4rem; }
.work-tag {
  display: inline-block; background: var(--blue-lt); color: var(--blue);
  font-size: .7rem; font-weight: 700; padding: .18rem .55rem;
  border-radius: 4px; margin-bottom: .65rem;
}
.work-body h3 { font-size: .92rem; font-weight: 800; margin-bottom: .45rem; line-height: 1.4; }
.work-body h3 small { font-size: .82rem; font-weight: 500; color: var(--g400); }
.work-body p { font-size: .83rem; color: var(--g400); margin-bottom: .9rem; }
.btn-work {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--blue); font-weight: 700; font-size: .85rem;
  transition: gap .2s;
}
.btn-work:hover { gap: .7rem; }

/* ===== PRICING ===== */
.pricing { background: var(--white); }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; align-items: start; }
.price-card {
  border-radius: var(--rr); padding: 2rem 1.8rem;
  border: 2px solid var(--g200); position: relative;
  transition: all .3s;
}
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: scale(1.025); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .28rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 1.15rem; font-weight: 900; margin-bottom: .4rem; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--blue); line-height: 1; }
.plan-price span { font-size: 1.6rem; }
.plan-from { font-size: .8rem; color: var(--g400); margin-bottom: 1.4rem; }
.plan-list { margin-bottom: 1.8rem; }
.plan-list li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .86rem; padding: .38rem 0;
  border-bottom: 1px solid var(--g200);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li.on i { color: var(--blue); font-size: .78rem; }
.plan-list li.off { color: var(--g300); }
.plan-list li.off i { color: var(--g300); font-size: .78rem; }
.btn-plan {
  display: block; text-align: center; padding: .78rem;
  border-radius: 10px; border: 2px solid var(--blue); color: var(--blue);
  font-weight: 700; transition: all .2s;
}
.btn-plan:hover { background: var(--blue); color: #fff; }
.btn-plan-feat { background: var(--blue); color: #fff; }

/* ===== FAQ ===== */
.faq { background: var(--g100); }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--r);
  margin-bottom: .75rem; border: 1px solid var(--g200); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 1.4rem; text-align: left;
  font-size: .92rem; font-weight: 700; color: var(--g900); gap: 1rem;
}
.faq-q i { color: var(--blue); transition: transform .35s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 1.4rem 1.15rem; font-size: .86rem; color: var(--g600); line-height: 1.8; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.sim-box, .contact-form {
  background: var(--g100); border-radius: var(--rr);
  padding: 2rem; border: 1px solid var(--g200);
}
.sim-box h3, .contact-form h3 {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 1.4rem;
  color: var(--g900); display: flex; align-items: center; gap: .5rem;
}
.sim-box h3 i, .contact-form h3 i { color: var(--blue); }
.sim-row { margin-bottom: .9rem; }
.sim-row label { display: block; font-size: .8rem; font-weight: 700; color: var(--g600); margin-bottom: .35rem; }
.sim-row select {
  width: 100%; padding: .6rem .8rem;
  border: 1px solid var(--g300); border-radius: 8px;
  background: var(--white); font-size: .86rem; color: var(--g800);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.sim-result {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--blue-lt); border: 1px solid var(--blue-mid);
  border-radius: 10px; padding: 1rem 1.3rem; margin-top: 1.2rem;
}
.sim-lbl { font-size: .8rem; font-weight: 700; color: var(--g600); }
.sim-price { font-size: 1.55rem; font-weight: 900; color: var(--blue); }
.sim-note { font-size: .72rem; color: var(--g400); text-align: right; margin-top: .45rem; }
.fg { margin-bottom: .9rem; }
.fg label { display: block; font-size: .8rem; font-weight: 700; color: var(--g600); margin-bottom: .35rem; }
.req { color: #ef4444; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: .65rem .85rem;
  border: 1px solid var(--g300); border-radius: 8px;
  font-size: .86rem; color: var(--g800);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.fg textarea { resize: vertical; }
.btn-submit {
  width: 100%; padding: .9rem;
  background: var(--blue); color: #fff; border: none;
  border-radius: 10px; font-size: .95rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: .5rem;
  box-shadow: 0 4px 20px rgba(37,99,235,.32);
  transition: all .2s;
}
.btn-submit:hover { background: var(--blue-d); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { background: var(--g900); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-logo span { color: var(--blue); }
.footer-copy { font-size: .8rem; color: var(--g400); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--g900); color: #fff;
  padding: 1rem 1.4rem; border-radius: 10px;
  font-size: .88rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: .6rem;
  border-left: 4px solid var(--blue); max-width: 340px;
  transform: translateY(120px) scale(.95); opacity: 0;
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast i { color: #4ade80; font-size: 1.1rem; flex-shrink: 0; }

/* ===== SCROLL ANIMATION ===== */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .str-grid { grid-template-columns: repeat(2,1fr); }

  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-grid .price-card:last-child { grid-column: 1/-1; }
  .price-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--g200);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--g200); }
  .nav-links a { display: block; padding: .75rem 0; }
  .hamburger { display: flex; }
  section { padding: 56px 0; }
  .pain-grid, .str-grid, .works-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card:last-child { grid-column: auto; }
  .hero-stats { gap: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
