/* 給与計算代行（菊池事務所）— ワンページ・モバイルファースト */
:root {
  --ink: #1e2838;
  --ink-muted: #4a5568;
  --paper: #faf8f5;
  --paper-2: #f1ede8;
  --line: #d4cfc4;
  --accent: #2c4471;
  --accent-soft: #e8f1fa;
  --gold: #7a6228;
  --white: #fff;
  --shadow: 0 12px 40px rgba(20, 32, 50, 0.07);
  --radius: 12px;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", system-ui, sans-serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 2.8vw, 1rem);
  line-height: 1.78;
  color: var(--ink);
  background: var(--paper);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.onepage-main {
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0f3550;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - clamp(1rem, 5vw, 2rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  width: min(100% - clamp(0.75rem, 4vw, 1.5rem), calc(var(--max) + 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 3.75rem;
}

@media (min-width: 861px) {
  .header-inner {
    min-height: 4.25rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #0c3550);
  box-shadow: 0 4px 12px rgba(26, 77, 110, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.7rem, 2.6vw, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.logo-sub {
  font-size: clamp(0.65rem, 2.4vw, 0.78rem);
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-height: 44px;
  line-height: 1.2;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  touch-action: manipulation;
}

.site-nav .nav-cta:hover {
  background: #0f3550;
  color: var(--white) !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: calc(3.75rem + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3.5rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(100%, calc(var(--max) + 2rem));
  margin-inline: auto;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  padding-inline: clamp(0.25rem, 2vw, 0.75rem);
}

.hero-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(44, 68, 113, 0.1);
}

.hero-carousel-track {
  display: flex;
  width: 400%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(160px, 44vw, 300px);
  padding: clamp(0.4rem, 2vw, 1rem) clamp(0.35rem, 1.5vw, 1rem);
  box-sizing: border-box;
}

.hero-carousel-slide img {
  width: auto;
  max-width: min(100%, 720px);
  max-height: min(52vw, 48vh, 280px);
  height: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(44, 68, 113, 0.25);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero-carousel-dot:hover {
  background: rgba(44, 68, 113, 0.45);
}

.hero-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(139, 105, 20, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f0ebe3 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.88rem, 2.4vw + 0.35rem, 1.35rem);
  letter-spacing: 0.03em;
  color: var(--accent);
}

.hero-tagline {
  margin: 0 0 0.85rem;
  font-size: clamp(0.8rem, 1.8vw + 0.4rem, 0.95rem);
  font-weight: 500;
  color: var(--ink-muted);
}

.hero-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: clamp(0.8rem, 1.4vw + 0.5rem, 0.92rem);
  color: var(--ink-muted);
  line-height: 1.55;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-band {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: clamp(0.75rem, 1.5vw + 0.45rem, 0.88rem);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(44, 68, 113, 0.12);
}

.hero-heading {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, 2.1vw + 0.55rem, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-heading-phrase {
  white-space: nowrap;
}

.hero-accent {
  color: var(--accent);
  background: linear-gradient(transparent 65%, rgba(44, 68, 113, 0.14) 65%);
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 36em;
  font-size: clamp(0.8rem, 1.6vw + 0.55rem, 1.05rem);
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #0f3550;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: #0f3550;
}

.btn-light {
  background: var(--white);
  color: var(--accent);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: #0f3550;
}

.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badges li {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-tint {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.02em;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.card-grid--three {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .card-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.card-feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(20, 32, 50, 0.12);
}

.card-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-body {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* Split */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

.check-list--tight li {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.split-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.panel-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.panel-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink);
}

/* Flow */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-steps--stack {
  grid-template-columns: 1fr;
  max-width: 32rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .flow-steps--stack {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .flow-steps--stack {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-steps > li {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.flow-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
}

.flow-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flow-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Office */
.office-intro {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  color: var(--ink-muted);
  line-height: 1.75;
  text-align: center;
}

.office-dl {
  margin: 0;
  max-width: 40rem;
}

.office-dl > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.office-dl > div:first-child {
  padding-top: 0;
}

.office-dl dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.office-dl dd {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .office-dl > div {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #0f3550 0%, var(--accent) 45%, #1a5c82 100%);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.03em;
}

.cta-text {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  opacity: 0.92;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-tel {
  margin: 0;
  font-size: 1.1rem;
}

.cta-tel a {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.cta-tel a:hover {
  text-decoration: underline;
  color: var(--white);
}

.cta-tel-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.cta-note {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  opacity: 0.75;
  max-width: 28rem;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  line-height: 1.45;
}

.footer-sep {
  opacity: 0.85;
  padding: 0 0.1em;
}

.footer-tag {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
  margin-inline: auto;
}

.footer-copy {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ページ上部へ */
.to-top {
  position: fixed;
  z-index: 55;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 3.15rem;
  min-height: 3.15rem;
  padding: 0.4rem 0.45rem;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(44, 68, 113, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, background 0.2s ease;
  touch-action: manipulation;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: #243d63;
}

.to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.to-top-icon {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
}
