/* ================================
   なんでも屋じゃない総務 - style.css
   Mobile-first / base width 390px
   ================================ */

:root {
  --color-bg: #ffffff;
  --color-surface: #F7F7F9;
  --color-surface-strong: #F1F1F4;
  --color-text: #1C1C1E;
  --color-text-muted: #6E6E73;
  --color-text-faint: #9A9AA0;
  --color-accent: #FFC629;
  --color-accent-dark: #E8A800;
  --color-accent-soft: rgba(255, 198, 41, 0.16);

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

  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.04), 0 2px 10px rgba(28, 28, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 28, 30, 0.12);

  --container-width: 1120px;
  --gutter: 20px;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro JP", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 700px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 40px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface-strong);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #E7E7EB;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(28, 28, 30, 0.06), 0 6px 20px rgba(28, 28, 30, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo img {
  height: 34px;
  width: auto;
}

.logo-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.nav .nav-cta {
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 600;
  margin-left: 8px;
}

.nav .nav-cta:hover {
  background: var(--color-accent-dark);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 24px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 12px;
    text-align: center;
  }

  .nav .nav-cta {
    margin: 8px 0 0;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--color-accent-soft), transparent 70%);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(28px, 8vw, 52px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18em;
}

.hero .accent {
  position: relative;
  white-space: nowrap;
}

.hero .accent::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.05em;
  height: 0.34em;
  background: var(--color-accent);
  z-index: -1;
  border-radius: 2px;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(15px, 3.6vw, 17px);
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-mascot {
  margin-top: 8px;
  width: 132px;
}

@media (min-width: 700px) {
  .hero {
    padding: 88px 0 96px;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: 48px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-mascot {
    width: 220px;
    flex-shrink: 0;
    margin-top: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--color-surface);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 15px;
}

@media (min-width: 700px) {
  .section {
    padding: 80px 0;
  }
}

/* ---------- Article Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 44px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumb-1 { background: linear-gradient(135deg, #FFE29A, #FFC629); }
.thumb-2 { background: linear-gradient(135deg, #F1F1F4, #D9D9DF); }
.thumb-3 { background: linear-gradient(135deg, #FFDD8C, #FFAE00); }
.thumb-4 { background: linear-gradient(135deg, #FFF3D6, #FFC629); }
.thumb-5 { background: linear-gradient(135deg, #ECECEF, #C9C9D1); }

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.card-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-faint);
}

.card-link {
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card:hover .card-link {
  color: var(--color-accent-dark);
}

/* ---------- CTA ---------- */

.cta-section {
  background: var(--color-text);
  border-radius: var(--radius-lg);
  margin: 0 var(--gutter);
  width: auto;
}

.cta-section .container {
  padding: 0;
}

.cta-inner {
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: #fff;
}

.cta-inner h2 {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 30em;
  font-size: 15px;
}

.cta-inner .btn-primary {
  margin-top: 8px;
}

@media (min-width: 700px) {
  .cta-inner {
    padding: 80px 40px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-surface);
  margin-top: 64px;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.footer-brand img {
  height: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-faint);
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ---------- Article Page ---------- */

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-faint);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "\203A";
  margin: 0 8px;
  color: var(--color-text-faint);
}

.breadcrumb-list a {
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb-list a:hover {
  color: var(--color-text);
}

.breadcrumb-list li[aria-current] {
  color: var(--color-text);
  font-weight: 600;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-title {
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.article-meta .meta-label {
  color: var(--color-text-faint);
  margin-right: 4px;
}

.article-eyecatch {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  width: 100%;
  object-fit: contain;
}

.article-lead {
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.9;
  color: var(--color-text-muted);
}

.toc-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s var(--ease);
}

.toc-list a:hover {
  color: var(--color-accent-dark);
}

/* 本文タイポグラフィ */

.article-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--color-text);
}

.article-body h2 {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 14px;
  scroll-margin-top: 88px;
}

.article-body h3 {
  font-size: clamp(17px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: 88px;
}

.article-body p {
  color: var(--color-text);
}

.article-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}

.article-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.article-body blockquote {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 22px 24px 22px 52px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.article-body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  font-family: Georgia, serif;
}

.article-body pre {
  background: #1C1C1E;
  color: #F5F5F7;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.article-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.article-body p code {
  background: var(--color-surface-strong);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.article-figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.figure-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  object-fit: contain;
  background: var(--color-surface);
}

.figure-caption {
  font-size: 13px;
  color: var(--color-text-faint);
  text-align: center;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 700px) {
  .article-wrap {
    padding: 48px 0 16px;
    gap: 36px;
  }
}
