/* ============================================================
   AI補助金 TOP — 広めレイアウト + イラスト枠（経営者向け）
============================================================ */
:root {
  --ink: #152033;
  --muted: #5c6775;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-tint: #f5f6f8;
  --navy: #1a3a6e;
  --teal: #1f7a6a;
  --blue: #2a56d6;
  --blue-soft: #eaf0ff;
  --wrap: 1360px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body.top-page {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-feature-settings: "palt";
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }

h1, h2, h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.sp-only { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn--dark {
  background: var(--navy);
  color: #fff;
}

.btn--dark:hover { opacity: 0.88; }

.btn--dark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
}

.btn--text {
  background: transparent;
  color: var(--ink);
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

/* ---------- illustration slots ---------- */
.illust { margin: 0; }

.illust__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  background: #fff;
  color: rgba(26, 58, 110, 0.35);
  overflow: hidden;
  box-shadow: none;
}

.illust__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(26, 58, 110, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.illust__icon {
  width: 56px;
  height: 56px;
}

.illust__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
}

.illust--portrait .illust__img {
  object-position: 50% 18%;
}

.illust__num {
  font-size: 46px;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.35;
  letter-spacing: 0;
}

.illust--hero .illust__frame {
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.illust--side .illust__frame {
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.illust--card .illust__frame {
  aspect-ratio: 16 / 10;
  min-height: 140px;
}

.illust--step .illust__frame {
  aspect-ratio: 1;
  min-height: 0;
}

.illust--cat .illust__frame {
  aspect-ratio: 1;
  width: 92px;
  min-height: 92px;
  flex-shrink: 0;
}

.illust--cat .illust__label { font-size: 10px; padding: 2px 6px; }

.illust--portrait .illust__frame {
  aspect-ratio: 3 / 4;
  min-height: 260px;
}

.illust--closing .illust__frame {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.illust--empty .illust__frame {
  aspect-ratio: 16 / 9;
  max-width: 480px;
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  width: min(100% - 48px, var(--wrap));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand:hover { opacity: 1; }

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.brand__logo {
  display: block;
  width: min(260px, 52vw);
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__name {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.brand__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.header-cta:hover { opacity: 0.88; }

.header-cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  width: min(100% - 48px, var(--wrap));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--navy);
  opacity: 1;
}

.site-header__note {
  width: min(100% - 48px, var(--wrap));
  margin: 0 auto 12px;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #748092;
}

/* ---------- AIO answer block ---------- */
.aio-block {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.aio-block__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.aio-block__list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.aio-block__list > div {
  display: grid;
  gap: 4px 18px;
  grid-template-columns: 5.5em minmax(0, 1fr);
}

.aio-block__list dt {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.aio-block__list dd {
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.aio-block__list a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 36px;
  background: #fff;
}

.hero__glow {
  display: none;
}

.hero__inner {
  position: relative;
  width: min(100% - 48px, var(--wrap));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero__badge {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
}

.hero__title {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: var(--ink);
}

.hero__lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: 19px;
  color: #334155;
  line-height: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero__note {
  width: min(100% - 48px, var(--wrap));
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: #748092;
}

/* ---------- strip ---------- */
.strip {
  padding: 34px 0 14px;
  border-top: 1px solid var(--line);
}

.strip__label {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #8893a1;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list a {
  display: inline-flex;
  padding: 11px 18px;
  background: var(--bg-tint);
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
}

.chip-list a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  opacity: 1;
}

/* ---------- blocks ---------- */
.block { padding: 80px 0; }

.block--tint {
  background: var(--bg-tint);
}

.block__title {
  margin: 0 0 28px;
  font-size: clamp(32px, 3.4vw, 42px);
}

.block__title span {
  display: inline-block;
  margin-right: 10px;
  color: var(--blue);
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.block__lead {
  margin: -10px 0 28px;
  font-size: 17px;
  color: var(--muted);
}

.block__more {
  margin-top: 32px;
  font-size: 17px;
  font-weight: 700;
}

.block__more a:hover { color: var(--blue); opacity: 1; }

/* ---------- concerns ---------- */
.concerns-grid,
.diagnosis-grid,
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.plain-list strong {
  font-size: 20px;
  font-weight: 900;
}

.plain-list span {
  font-size: 16.5px;
  color: var(--muted);
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-item h3 {
  margin-top: 18px;
  font-size: 21px;
}

.service-item p {
  margin-top: 10px;
  font-size: 16.5px;
  color: #445066;
}

/* ---------- quiz ---------- */
.quiz__q {
  margin: 0 0 24px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.quiz__q:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
}

.quiz__q legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.quiz__q legend span {
  color: var(--blue);
  margin-right: 6px;
}

.quiz__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz__opts label { cursor: pointer; }

.quiz__opts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz__opts span {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.quiz__opts input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.quiz__result-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.quiz__result h3 { font-size: 26px; }

.quiz__result > p {
  margin-top: 12px;
  font-size: 16.5px;
  color: #445066;
}

.quiz__result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- flow ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  font-weight: 900;
}

.flow-grid span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- posts ---------- */
.post-feed { display: grid; gap: 0; }

.post-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.post-item:last-child { border-bottom: 1px solid var(--line); }

.post-item:hover { opacity: 1; }
.post-item:hover h3 { color: var(--blue); }

.post-item__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tint);
}

.post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #a0a8b4;
  background: #eef0f3;
}

.post-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #8893a1;
}

.tag {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
}

.post-item h3 {
  font-size: 22px;
  line-height: 1.5;
}

.post-item p {
  margin-top: 8px;
  font-size: 16px;
  color: #516074;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item--featured {
  grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
  gap: 32px;
  padding-block: 36px;
}

.post-item--featured h3 {
  font-size: clamp(26px, 2.8vw, 34px);
}

.post-item--featured p {
  -webkit-line-clamp: 3;
  font-size: 17px;
}

.empty-panel {
  text-align: center;
  padding: 20px 0 8px;
}

.empty-panel p {
  margin-top: 16px;
  color: var(--muted);
}

/* ---------- categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.cat-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.cat-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }

.cat-item:hover { opacity: 1; }
.cat-item:hover strong { color: var(--blue); }

.cat-item strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.cat-item span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- reviewer ---------- */
.reviewer-wrap { max-width: 960px; }

.reviewer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.reviewer__name {
  font-size: 24px;
  font-weight: 900;
}

.reviewer__cred {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

.reviewer__desc {
  margin-top: 16px;
  font-size: 17px;
  color: #445066;
}

/* ---------- faq ---------- */
.faq details {
  border-top: 1px solid var(--line);
  background: #fff;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 18px 32px 18px 16px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 18px;
  font-size: 18px;
  color: #99a3b0;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin: 0;
  padding: 0 16px 20px;
  font-size: 16.5px;
  color: #445066;
}

/* ---------- closing ---------- */
.closing {
  padding: 88px 0;
  background: var(--bg-tint);
}

.closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.closing__copy h2 {
  font-size: clamp(32px, 3.4vw, 42px);
  margin-bottom: 14px;
}

.closing__copy p {
  margin-bottom: 28px;
  color: #445066;
  font-size: 18px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 64px 0 36px;
  background: #101826;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; opacity: 1; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.site-footer__logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.site-footer__desc {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.site-footer__disclaimer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__copy {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .sp-only { display: flex; }
  .header-cta { display: none; }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 16px;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .hero__inner,
  .concerns-grid,
  .diagnosis-grid,
  .faq-wrap,
  .closing__inner,
  .service-grid,
  .flow-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid { gap: 20px; }

  .aio-block__list > div {
    grid-template-columns: 1fr;
  }

  .cat-item:nth-last-child(-n+2) { border-bottom: 0; }
  .cat-item:last-child { border-bottom: 1px solid var(--line); }

  .reviewer { grid-template-columns: 160px 1fr; }

  .brand__sub { display: none; }
}

@media (max-width: 700px) {
  .wrap,
  .site-header__bar,
  .site-nav,
  .site-header__note,
  .hero__inner,
  .hero__note {
    width: min(100% - 32px, var(--wrap));
  }

  .block { padding: 56px 0; }

  .post-item,
  .post-item--featured {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reviewer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .illust--portrait { max-width: 220px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

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