/* ==========================================================================
   補助金パートナーズ — デザイントークン
   Color: ネイビー(信頼・行政/金融文脈)+ コーラル(スタートアップらしい熱量)+ クリーム地
   Type: Zen Kaku Gothic New(見出し・強い意志を持つゴシック)/ Noto Sans JP(本文)
   ========================================================================== */
:root {
  --navy-950: #0f1730;
  --navy-900: #16204a;
  --navy-800: #1b2a4a;
  --navy-700: #263866;
  --navy-500: #4a5b8f;
  --navy-200: #c7cfe6;

  --coral-600: #e2532f;
  --coral-500: #ff6b4a;
  --coral-400: #ff8f6e;
  --coral-100: #ffe4da;

  --cream-100: #faf8f3;
  --cream-200: #f2efe6;
  --cream-300: #e9e4d6;

  --ink: #16182b;
  --ink-soft: #4d5170;
  --white: #ffffff;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 60px -20px rgba(15, 23, 48, 0.25);
  --shadow-card: 0 12px 32px -12px rgba(15, 23, 48, 0.18);

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;

  --max-width: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--coral-600);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sm-only { display: none; }
.lg-only { display: inline; }
@media (max-width: 720px) {
  .sm-only { display: inline; }
  .lg-only { display: none; }
}

/* Noise texture: 単色背景に微細な質感を足す(フラットになりすぎないため) */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(226, 83, 47, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(226, 83, 47, 0.6); }
.btn-ghost {
  background: transparent; color: var(--navy-900); border-color: var(--navy-200);
}
.btn-ghost:hover { background: var(--white); border-color: var(--navy-500); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-header { display: none; }
@media (min-width: 900px) { .btn-header { display: inline-flex; } }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-300);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--white); font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.brand-mark.small { width: 28px; height: 28px; font-size: 13px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy-900); }
.main-nav { display: none; gap: 32px; }
.main-nav a { font-weight: 500; color: var(--ink-soft); font-size: 15px; transition: color 0.2s; }
.main-nav a:hover { color: var(--coral-600); }
@media (min-width: 900px) { .main-nav { display: flex; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.16), transparent 70%);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }

.hero-copy h1 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 22px; }
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-disclaimer { font-size: 12.5px; color: var(--ink-soft); opacity: 0.75; max-width: 48ch; }

.hero-visual { position: relative; aspect-ratio: 4 / 3; }
.hero-visual-glow {
  position: absolute; inset: -8%; z-index: 0; border-radius: 40%;
  background: radial-gradient(circle, rgba(27, 42, 74, 0.18), transparent 70%);
  filter: blur(6px);
}
.hero-image {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.hero-visual:hover .hero-image { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }

/* 画像が無い/読み込めない場合の代替(グラデーションパネル。壊れた見た目にしない) */
.hero-visual.img-fallback .hero-image { display: none; }
.hero-visual.img-fallback::after {
  content: "補助金パートナーズ"; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950) 60%, var(--coral-600));
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 22px;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.floating-card {
  position: absolute; z-index: 2; background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 4px;
  animation: float 6s ease-in-out infinite;
}
.floating-card .fc-label { font-size: 12px; color: var(--ink-soft); }
.floating-card .fc-value { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy-900); }
.card-1 { top: 8%; left: -6%; animation-delay: 0s; }
.card-2 { bottom: 6%; right: -4%; animation-delay: 1.2s; }
@media (max-width: 640px) { .card-1 { left: 0; } .card-2 { right: 0; } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------- Trust bar ---------------- */
.trust-bar { padding: 28px 0; border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--coral-600); }
.trust-label { font-size: 13px; color: var(--ink-soft); }

/* ---------------- Section shared ---------------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

/* ---------------- Services ---------------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 800px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 34px;
  box-shadow: var(--shadow-card); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px; overflow: hidden; margin-bottom: 22px;
  background: linear-gradient(150deg, var(--cream-200), var(--cream-300));
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-tag { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; color: var(--navy-500); margin-bottom: 8px; }
.service-card h3 { font-size: 21px; margin-bottom: 14px; }
.service-desc { color: var(--ink-soft); margin-bottom: 16px; }
.service-scope { font-size: 13px; color: var(--coral-600); background: var(--coral-100); padding: 10px 14px; border-radius: var(--radius-sm); }

/* ---------------- Subsidies ---------------- */
.subsidies { background: var(--navy-950); }
.subsidies .eyebrow { color: var(--coral-400); }
.subsidies h2 { color: var(--white); }
.subsidy-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
@media (min-width: 800px) { .subsidy-grid { grid-template-columns: repeat(3, 1fr); } }
.subsidy-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md); padding: 30px 26px; color: var(--navy-200);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.subsidy-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 74, 0.6); }
.subsidy-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 107, 74, 0.35));
}
.subsidy-icon img { width: 100%; height: 100%; object-fit: cover; }
.subsidy-card h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.subsidy-card p { font-size: 14.5px; line-height: 1.7; }
.subsidy-note { font-size: 12.5px; color: var(--navy-200); opacity: 0.85; max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------------- Flow ---------------- */
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 800px) { .flow-list { grid-template-columns: repeat(3, 1fr); } }
.flow-step { position: relative; padding: 32px 26px 26px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.flow-num { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--coral-600); display: block; margin-bottom: 14px; }
.flow-step h3 { font-size: 17px; margin-bottom: 10px; }
.flow-step p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-sm); padding: 18px 22px;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 15.5px;
  color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--coral-600); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- Contact ---------------- */
.contact { background: linear-gradient(180deg, var(--cream-200), var(--cream-100)); }
.contact-lead { color: var(--ink-soft); margin-top: 8px; }
.contact-form {
  max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy-900); }
.req { color: var(--coral-600); font-size: 11px; font-weight: 700; }
input[type="text"], select, textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--cream-300); border-radius: var(--radius-sm); background: var(--cream-100);
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--coral-500); background: var(--white);
}
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-pill {
  display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; background: var(--cream-100); border: 1px solid var(--cream-300);
  cursor: pointer;
}
.checkbox-pill input { accent-color: var(--coral-600); }
.btn-submit { margin-top: 8px; }
.form-status { font-size: 13.5px; color: var(--ink-soft); min-height: 20px; }
.form-status.success { color: #1a7a4c; font-weight: 700; }
.form-status.error { color: var(--coral-600); font-weight: 700; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; color: var(--navy-200); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--white); }
.footer-disclaimer { font-size: 12.5px; line-height: 1.8; max-width: 820px; opacity: 0.85; }
.footer-copy { font-size: 12px; opacity: 0.6; }

/* ---------------- Scroll reveal ---------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Mobile nav drawer ---------------- */
.main-nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
  background: var(--cream-100); padding: 20px 24px; gap: 18px; box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--cream-300);
}
