/* =====================
   Design Tokens
===================== */
:root {
  --primary:    #0080ff;
  --primary-10: rgba(0,128,255,.1);
  --tertiary:   #f2ff00;
  --on-surface: #181c1e;
  --surface:    #ffffff;
  --muted:      #64748b;
  --border:     rgba(148,163,184,.15);
  --shadow:     0 12px 40px rgba(0,128,255,.08);
  --radius-lg:  1.5rem;
  --radius-md:  0.75rem;
  --en: 'Plus Jakarta Sans', sans-serif;
  --ja: 'Noto Sans JP', sans-serif;
  --max-w: 1280px;
}

/* =====================
   Base / Graph-paper bg
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ja);
  color: var(--on-surface);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(148,163,184,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; transition: .2s; }
ul  { list-style: none; }

p { color: var(--on-surface); font-size: 1.0625rem; line-height: 2; }
h1, h2, h3, h4, h5, h6 { font-family: 'Noto Sans JP', sans-serif !important; }

.marker-highlight {
  background: linear-gradient(transparent 78%, var(--tertiary) 78%);
  display: inline;
  padding: 0 2px;
}

.en { font-family: var(--en); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* =====================
   Navbar
===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1010;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 1.875rem; font-weight: 700;
  letter-spacing: .01em; color: var(--primary);
}
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  font-family: var(--ja);
  font-size: 1rem; font-weight: 600;
  color: var(--on-surface); letter-spacing: .02em;
}
.nav-links a:hover {
  background: linear-gradient(transparent 60%, var(--tertiary) 60%);
  color: var(--on-surface);
}
.nav-links .active {
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--tertiary) 60%);
}

/* =====================
   Hero
===================== */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 800px; margin: 0 auto; padding: 6rem 2rem 8rem;
  text-align: center; width: 100%;
}
.hero-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600;
  color: var(--primary); letter-spacing: .02em;
  margin-bottom: 1.5rem;
}
.hero-brand {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700; color: var(--on-surface);
  margin-top: 2rem; text-align: right;
}
.hero-catch-ja {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.6;
  letter-spacing: .05em; margin-bottom: 0;
  color: var(--on-surface);
}

/* =====================
   Buttons
===================== */
.btn {
  font-family: var(--en);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.25rem;
  font-size: .9375rem; font-weight: 700;
  border-radius: 9999px; border: none; cursor: pointer;
  transition: .2s; letter-spacing: .02em;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(0,128,255,.3); }
.btn-primary:hover { transform: scale(1.04); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid rgba(0,128,255,.35); }
.btn-outline:hover { border-color: var(--primary); }
.btn-arrow::after { content: ' →'; }

/* =====================
   About（Edit Room:Hとは）
===================== */
.about-section { padding: 5rem 0; }
.about-inner {
  max-width: 900px; margin: 0 auto; padding: 0 2rem;
  display: flex; flex-direction: column; align-items: flex-start;
}
.about-card {
  width: 100%; background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex; flex-direction: column; align-items: flex-start;
}
.about-body { margin-top: 1.25rem; width: 100%; }
.about-body p { margin-bottom: 1rem; font-size: 1.0625rem; }

/* =====================
   Trouble → Solved
===================== */
.strengths { background: transparent; padding: 6rem 0; }
.strengths-head {
  text-align: center; margin-bottom: 5rem;
  display: flex; flex-direction: column; align-items: center;
}
.strengths-head h2 {
  font-family: var(--ja);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: .05em; display: inline-block;
}
.pair-rows {
  max-width: 900px; margin: 0 auto; padding: 0 2rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.pair-row {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
}
.pair-card { padding: 2rem 2.25rem; display: flex; flex-direction: column; gap: .75rem; }
.pair-card-before { flex: 1; }
.pair-card-after  { flex: 1.8; }
.pair-card h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; margin: 0; }
.pair-card-before h3 { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.pair-card-after  h3 { text-decoration: underline; text-decoration-color: var(--tertiary); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.pair-card p { margin: 0; }
.pair-tag {
  font-family: var(--en);
  display: inline-block;
  font-size: .6875rem; font-weight: 800;
  padding: 4px 14px; letter-spacing: .08em; text-transform: uppercase;
  align-self: flex-start;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
.pair-tag-before { background: var(--primary); color: #fff; }
.pair-tag-after  { background: var(--tertiary); color: var(--on-surface); }
.pair-row-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 4rem; }
.pair-row-arrow svg { width: 44px; height: auto; }

/* =====================
   Recent Works
===================== */
.works-header {
  max-width: 820px; margin: 0 auto;
  padding: 6rem 2rem 2rem;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.works-header h2 {
  font-family: var(--ja);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -.02em;
  display: block; margin-top: .1rem;
}
.works-all-link {
  font-family: var(--en);
  display: inline-block;
  font-size: .6875rem; font-weight: 800;
  background: var(--primary); color: #fff;
  padding: 7px 22px; border-radius: 4px;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: opacity .2s;
}
.works-all-link:hover { opacity: .85; }

/* =====================
   Portfolio（1段横並び・モバイルは横スクロール）
===================== */
.portfolio {
  max-width: 900px; margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.port-item { cursor: pointer; }
.port-thumb {
  aspect-ratio: 1/1; border-radius: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 10%;
  color: var(--muted); font-size: .75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.06); transition: transform .3s;
}
.port-thumb img { width: 100%; height: 100%; object-fit: contain; }
.port-item:hover .port-thumb { transform: translateY(-4px); }
.port-title { margin-top: .75rem; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.port-meta  { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* =====================
   Services（横一段レイアウト）
===================== */
.svc-rows {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc-row {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: none; }
.svc-row-nobooks {
  /* no override needed */
}
.svc-num {
  font-family: var(--en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .18;
  display: block;
  line-height: 1;
  margin-bottom: .2rem;
}
.svc-row-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.svc-row-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 .75rem;
}
.svc-row-desc {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--on-surface);
  margin: 0;
}
.svc-intro-lead {
  font-size: 1rem;
  line-height: 2;
  margin-top: 1.25rem;
}
.svc-row-books {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-shrink: 0;
}
.svc-book-thumb {
  display: block;
  width: 90px;
  aspect-ratio: 3/4;
  overflow: hidden;
  transition: opacity .2s;
}
.svc-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.svc-book-thumb:hover { opacity: .8; }

/* =====================
   Front Page Svc List
===================== */
.svc-list-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
  background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc-list-item {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.svc-list-num {
  font-family: 'Caveat', cursive;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 3rem;
  line-height: 1;
}
.svc-list-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .3rem;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.svc-list-body p {
  font-size: .9375rem;
  color: var(--on-surface);
  margin: 0;
}
.svc-list-footer {
  padding: 1.25rem 2rem;
  text-align: right;
}
.svc-list-footer .works-all-link {
  font-size: 1rem;
  padding: 12px 28px;
  letter-spacing: .04em;
}

/* =====================
   Message
===================== */
.msg-section { padding: 6rem 0; }
.msg-inner { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.msg-inner .sec-label { display: block; text-align: left; margin-bottom: 0; }
.msg-lead {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700; letter-spacing: .05em;
  line-height: 1.45; margin-bottom: 2.5rem; text-align: left;
}
.msg-inner p { margin-bottom: 1.25rem; }
.msg-name {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem; font-weight: 700;
  color: var(--on-surface); margin-top: 2rem; text-align: right;
}

/* =====================
   CTA（格子背景）
===================== */
.cta-section {
  padding: 5rem 0 4.5rem;
  background-color: #eaf2ff;
  background-image:
    linear-gradient(rgba(0,128,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,128,255,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid rgba(0,128,255,.15);
}
.cta-inner {
  max-width: 640px; margin: 0 auto; padding: 0 2rem; text-align: center;
}
.cta-inner .sec-label { font-size: 2rem; margin-bottom: 0; line-height: 1; }
.cta-inner h2 {
  font-family: var(--ja);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: .05em;
  margin-bottom: 1.25rem; margin-top: .1rem;
}
.cta-inner > p {
  font-size: 1rem; line-height: 1.9; margin-bottom: 2.5rem; color: var(--on-surface);
}
.cta-btn {
  font-family: var(--ja);
  display: inline-block;
  font-size: 1rem; font-weight: 700;
  background: var(--primary); color: #fff;
  padding: 12px 32px; border-radius: 4px;
  text-decoration: none;
  transition: opacity .2s;
}
.cta-btn:hover { opacity: .85; }

/* =====================
   Footer
===================== */
.footer { background: #fff; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.footer-logo {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .01em; color: var(--primary);
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--ja);
  font-size: .9375rem; font-weight: 500;
  color: var(--muted); letter-spacing: .02em;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-family: var(--en);
  font-size: .75rem; color: #94a3b8;
  letter-spacing: .08em; text-transform: uppercase;
}

/* =====================
   Section head helper
===================== */
.sec-head {
  max-width: 900px; margin: 0 auto; padding: 0 2rem 3rem;
  display: flex; flex-direction: column; align-items: flex-start;
}
.sec-label {
  font-family: 'Caveat', cursive;
  display: inline-block;
  font-size: 2rem; font-weight: 700;
  color: var(--primary); letter-spacing: .02em;
  margin-bottom: .1rem; line-height: 1;
}
a.sec-label-link {
  opacity: .75;
  transition: opacity .2s;
}
a.sec-label-link:hover { opacity: 1; }
.sec-title {
  font-family: var(--ja);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: .05em; display: inline-block;
}

/* =====================
   WordPress管理バー対応
===================== */
.admin-bar .nav { top: 32px; }
.admin-bar .nav-links-mobile { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .nav-links-mobile { top: 46px; }
}

/* =====================
   Hamburger menu
===================== */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 1001; position: relative;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--on-surface); border-radius: 2px; transition: .25s;
}
/* ドロワーオーバーレイ（左側の暗い部分） */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
}
.drawer-overlay.is-open { display: block; }
/* ドロワーパネル（右から出てくるパネル） */
.nav-links-mobile {
  position: fixed;
  top: 0; right: 0;
  height: auto;
  width: 72%;
  max-width: 300px;
  background: #fff;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 0;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.nav-links-mobile.is-open {
  transform: translateX(0);
}
.nav-links-mobile a {
  display: block;
  font-family: var(--en);
  font-size: 1.125rem; font-weight: 600;
  color: var(--on-surface); letter-spacing: .02em;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.nav-links-mobile a:last-child { border-bottom: none; }
.nav-links-mobile a:hover { color: var(--primary); }

/* =====================
   Responsive
===================== */
@media (max-width: 768px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; }
  .hero-inner { padding: 5rem 1.5rem 4rem; }

  .about-card  { padding: 2rem 1.5rem; }
  .about-inner { padding: 0 1.5rem; }

  .pair-rows { padding: 0 1.5rem; gap: 1.25rem; }
  .pair-row  { flex-direction: column; }
  .pair-card-before, .pair-card-after { flex: none; width: 100%; }
  .pair-card { padding: 1.5rem 1.25rem; }
  .pair-row-arrow { width: 100%; height: 2rem; transform: rotate(90deg); }
  .pair-row-arrow svg { width: 28px; }

  .works-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 4rem 1.5rem 1.25rem; }
  .portfolio { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding: 0 1.5rem 3rem; gap: 1rem; scrollbar-width: none; -ms-overflow-style: none; }
  .portfolio::-webkit-scrollbar { display: none; }
  .port-item  { flex: 0 0 150px; scroll-snap-align: start; }

  .svc-grid  { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .sec-head  { padding: 0 1.5rem 2rem; }
  .cta-inner { padding: 0 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-inner    { padding: 4.5rem 1.25rem 3rem; }
  .hero-catch-ja { font-size: clamp(1.125rem, 5.8vw, 1.75rem); letter-spacing: .01em; }
  .hero-eyebrow  { font-size: clamp(1.125rem, 5vw, 1.5rem); margin-bottom: .625rem; }

  .about-card  { padding: 1.5rem 1.25rem; }
  .about-inner { padding: 0 1.25rem; }
  .pair-rows   { padding: 0 1.25rem; }

  .works-header { padding: 3.5rem 1.25rem 1rem; }
  .portfolio    { padding: 0 1.25rem 2.5rem; }
  .port-item    { flex: 0 0 130px; }

  .svc-grid  { padding: 0 1.25rem; }
  .sec-head  { padding: 0 1.25rem 1.5rem; }
  .cta-inner { padding: 0 1.25rem; }
  .cta-section { padding: 4rem 0 5rem; }
}

/* =====================
   Page Intro（下層ページタイトル）
===================== */
.page-intro {
  padding: calc(64px + 5rem) 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.page-intro .sec-label { margin-bottom: 0; }
.page-intro h1 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  margin-top: .1rem;
}

/* =====================
   Pickup（実績ピックアップ）
===================== */
.pickup-section {
  padding: 1rem 0 0;
  position: relative;
  z-index: 1;
}
.pickup-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.pickup-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  position: relative;
  z-index: 2;
  margin-bottom: -3.5rem;
}
.pickup-thumb {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
  border-radius: var(--radius-md);
}
.pickup-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pickup-badge {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
}
.pickup-reason {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .75rem;
}
.pickup-reason .marker-highlight {
  background: linear-gradient(transparent 55%, var(--tertiary) 55%);
  padding: 0 .1em;
}
.pickup-title {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: .75rem;
  color: var(--on-surface);
}
.pickup-author    { font-size: .9375rem; color: var(--muted); margin-bottom: .25rem; }
.pickup-publisher { font-size: .875rem; color: var(--muted); }
.pickup-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--ja);
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 4px;
}
.pickup-link:hover { opacity: .85; }

@media (max-width: 768px) {
  .pickup-card { grid-template-columns: 150px 1fr; gap: 1rem; padding: 1.25rem; margin-bottom: 1.5rem; }
  .pickup-thumb { max-width: 150px; }
  .pickup-inner { padding: 0 1.5rem; }
}
@media (max-width: 480px) {
  .pickup-inner { padding: 0 1.25rem; }
}

/* =====================
   Content Section（下層ページ共通）
===================== */
.content-section { padding: 6rem 0 6rem; }
.content-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================
   Books Archive
===================== */
.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--ja);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,128,255,.35);
  background: #fff;
  color: var(--primary);
  transition: .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.book-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.book-card a { display: block; }
.book-card-thumb {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  color: var(--muted);
  font-size: .75rem;
}
.book-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.book-card-body { padding: 1rem 1.25rem 1.25rem; }
.book-card-title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .375rem;
}
.book-card-meta { font-size: .75rem; color: var(--muted); }
.book-card-roles { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.book-card-role {
  font-family: var(--en);
  font-size: .625rem;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--primary-10);
  color: var(--primary);
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* =====================
   Blog Archive & Cards
===================== */
/* Blog Archive */
.blog-archive-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(64px + 3rem) 2rem 2rem;
}
.blog-archive-intro .sec-label { margin-bottom: 0; }
.blog-archive-intro h1 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
}
.blog-archive-intro h1.archive-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}
.archive-label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .05em;
  margin: .5rem 0 .25rem;
}
.blog-archive-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}
.blog-archive-sidebar {
  position: sticky;
  top: calc(64px + 2rem);
}

/* (旧) */
.blog-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}
.blog-main {}
.blog-sidebar {
  position: sticky;
  top: calc(64px + 1.5rem);
}
.sidebar-widget {
  background: #fff;
  border: 0.5px solid #1a1a1a;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: 1.125rem;
  font-family: var(--ja);
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 1rem;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid var(--border); }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
}
.sidebar-cat-list a:hover { color: var(--primary); }
.sidebar-cat-count {
  font-family: var(--en);
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: #fff;
  overflow: hidden;
  border: 0.5px solid #1a1a1a;
  border-radius: var(--radius-md);
  transition: transform .2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card a { display: block; }
.blog-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .75rem;
}
.blog-card-thumb img,
.blog-card-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 0.5px solid #1a1a1a;
}
.blog-card-cat {
  font-family: var(--ja);
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .04em;
  display: inline-block;
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
}
.sidebar-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-tag {
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.sidebar-tag:hover { color: var(--primary); }
.blog-card-date { font-size: .75rem; color: var(--muted); display: block; margin-bottom: .5rem; }
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: .5rem;
}
.blog-card-excerpt { font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* =====================
   Post Single（ブログ記事）
===================== */
/* ===== Single Layout (Zenn風) ===== */
.single-bg {
  background-color: #efefef;
  background-image:
    linear-gradient(rgba(120,130,150,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,130,150,.2) 1px, transparent 1px);
  background-size: 28px 28px;
}
.single-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(64px + 3rem) 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}
.single-sidebar {
  position: sticky;
  top: calc(64px + 2rem);
}
/* TOC */
.toc-widget { }
#toc-nav { margin-top: .25rem; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  display: block;
  padding: .35rem .25rem;
  font-size: 1rem;
  color: var(--on-surface);
  text-decoration: none;
  line-height: 1.5;
  transition: color .15s;
}
.toc-list a:hover { color: var(--primary); }
.toc-list a.active { color: var(--primary); font-weight: 600; }
.toc-h3 a { padding-left: 1rem; font-size: .9375rem; color: var(--muted); }
.toc-h3 a.active { color: var(--primary); }
/* サイドバー関連記事 */
.sidebar-related-list { list-style: none; padding: 0; margin: 0; }
.sidebar-related-list li { border-bottom: 1px solid var(--border); }
.sidebar-related-list li:last-child { border-bottom: none; }
.sidebar-related-list a {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .75rem 0;
  text-decoration: none;
  color: var(--text);
}
.sidebar-related-list a:hover { color: var(--primary); }
.sidebar-related-thumb {
  flex-shrink: 0;
  width: 60px;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  background: #e8edf2;
}
.sidebar-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-related-title {
  font-size: .875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* Post */
.post-single {
  min-width: 0;
  background: #fff;
  border: 0.5px solid #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.post-single-header { margin-bottom: 2rem; }
.post-cat {
  font-family: var(--ja);
  font-size: .6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: .04em;
  display: inline-block;
  margin-bottom: .75rem;
}
.post-eyecatch {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.post-eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.post-tag {
  font-family: var(--en);
  font-size: .6875rem;
  font-weight: 700;
  padding: 4px 12px;
  border: 1.5px solid rgba(0,128,255,.35);
  border-radius: 4px;
  color: var(--primary);
  letter-spacing: .05em;
  text-decoration: none;
}
.post-single-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
  margin-top: .75rem;
  margin-bottom: .75rem;
}
.post-single-date { font-size: .8125rem; color: var(--muted); display: block; }
.post-content { font-size: 1.0625rem; line-height: 2; }
.post-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
}
.post-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  text-decoration: underline;
  text-decoration-color: var(--tertiary);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 0; list-style: none; }
.post-content ul li, .post-content ol li {
  margin-bottom: .4rem;
  line-height: 1.8;
  padding-left: 1.25rem;
  position: relative;
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.post-content ol { counter-reset: post-ol; }
.post-content ol li { counter-increment: post-ol; }
.post-content ol li::before {
  content: counter(post-ol) '.';
  position: absolute;
  left: 0;
  font-family: var(--en);
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
}
/* list-bg クラスを付けるとリスト全体を水色ボックスで囲む */
.post-content ul.list-bg, .post-content ol.list-bg {
  background: #eef6ff;
  border-radius: 8px;
  padding: .5rem 1.25rem .5rem 0;
  margin-bottom: 1.5rem;
}
.post-content ul.list-bg li, .post-content ol.list-bg li {
  padding: .55rem 1rem .55rem 2.5rem;
  margin-bottom: 0;
}
.post-content ul.list-bg li::before,
.post-content ol.list-bg li::before {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
/* テーブル */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .9375rem;
  border: 0.5px solid #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-content th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: left;
  letter-spacing: .04em;
}
.post-content td {
  padding: .7rem 1rem;
  border-bottom: 0.5px solid rgba(26,26,26,.15);
  vertical-align: top;
  line-height: 1.7;
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: #f8faff; }
.post-content img { border-radius: var(--radius-md); margin: 2rem 0; width: 100%; height: auto; display: block; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content mark { background: linear-gradient(transparent 55%, var(--tertiary) 55%); color: inherit; padding: 0 2px; }
.post-content .text-blue { color: var(--primary); font-weight: 700; }
.post-content .text-red { color: #e03c3c; font-weight: 700; }
/* 囲みブロック */
.post-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(43, 125, 233, .05);
  border-radius: 0 .5rem .5rem 0;
  font-style: normal;
}
.post-content .box {
  background: #f0f7ff;
  border: 1.5px solid rgba(43, 125, 233, .25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.post-content .box-yellow {
  background: #fffde8;
  border: 1.5px solid rgba(255, 225, 77, .6);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.post-content .box > p:last-child,
.post-content .box-yellow > p:last-child { margin-bottom: 0; }
.share-buttons {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}
.share-btn {
  font-family: var(--en);
  font-size: .6875rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.share-btn-x    { background: #000; color: #fff; }
.share-btn-line { background: #06c755; color: #fff; }
.share-btn-copy { background: #666; color: #fff; border: none; cursor: pointer; font-family: var(--ja); transition: background .2s, color .2s; }
.share-btn-copy.copied { background: #2a9d5c; }

/* =====================
   Book Single
===================== */
.book-single-section {
  padding: 3rem 0 6rem;
}
.book-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.book-single-cover img {
  width: 100%;
  height: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.book-single-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}
.book-single-desc {
  font-size: 1.125rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}
.back-link {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
}
/* Amazon等 本文内のボタンブロックをarchiveボタンに合わせる */
.book-description .wp-block-button__link,
.book-description .wp-element-button {
  font-family: var(--ja) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: #fff !important;
  padding: 12px 32px !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.book-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.book-meta-table th,
.book-meta-table td { padding: .75rem 1rem; font-size: .9375rem; text-align: left; }
.book-meta-table th {
  width: 110px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.book-meta-table td { border-bottom: 1px solid var(--border); }
.book-description { font-size: 1rem; line-height: 2; margin-top: 2rem; }
.book-description p { margin-bottom: 1.25rem; }
.book-description img { display: none; }

/* =====================
   Workflow（制作の流れ）
===================== */
.workflow-section { padding: 0 0 6rem; }
.workflow-steps {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.workflow-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.workflow-step:last-child { border-bottom: none; }
.workflow-step-num {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}
.workflow-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .375rem;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.workflow-step p { font-size: .9375rem; color: var(--on-surface); margin: 0; }

/* =====================
   About Page（会社概要テーブル）
===================== */
.company-section { padding: 4rem 0 6rem; }
.company-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.company-table th,
.company-table td {
  padding: 1.125rem 1.5rem;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 130px;
  font-weight: 700;
  background: rgba(0,128,255,.04);
  white-space: nowrap;
}

/* =====================
   Page Single（固定ページ共通）
===================== */
.page-single-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(64px + 3rem) 2rem 6rem;
}
.page-single-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-single-header .sec-label { margin-bottom: .25rem; }
.page-single-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}
.page-single-content p,
.page-single-content ul {
  font-size: .9375rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.page-single-content h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
  padding-left: .75rem;
  border-left: 3px solid var(--primary);
}
.page-single-content ul { padding-left: 1.5rem; }
.page-single-content ul li { margin-bottom: .25rem; }
.page-single-content a { color: var(--primary); text-decoration: underline; }

/* =====================
   Privacy Page
===================== */
.privacy-wrap h2 {
  font-size: 1.0625rem; font-weight: 700;
  margin: 2rem 0 .5rem;
  padding-left: .75rem;
  border-left: 3px solid var(--primary);
}
.privacy-wrap p, .privacy-wrap ul { font-size: .9375rem; line-height: 1.9; margin-bottom: 1rem; }
.privacy-wrap ul { padding-left: 1.5rem; }
.privacy-wrap ul li { margin-bottom: .25rem; }
.privacy-wrap a { color: var(--primary); text-decoration: underline; }
.privacy-date { font-size: .8125rem; color: var(--muted); margin-top: 3rem; }

/* =====================
   Contact Page
===================== */
.contact-intro { margin-bottom: 2.5rem; }
.contact-wrap .wpcf7 input[type="text"],
.contact-wrap .wpcf7 input[type="email"],
.contact-wrap .wpcf7 textarea {
  width: 100%;
  border: 2px solid var(--on-surface);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-family: var(--ja);
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s;
  margin-top: .375rem;
}
.contact-wrap .wpcf7 input:focus,
.contact-wrap .wpcf7 textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.contact-wrap .wpcf7 input[type="submit"] {
  font-family: var(--en);
  font-size: .875rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,128,255,.25);
  transition: opacity .2s;
}
.contact-wrap .wpcf7 input[type="submit"]:hover { opacity: .85; }

/* =====================
   Pagination
===================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  font-family: var(--ja);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(0,128,255,.35);
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  transition: .2s;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =====================
   Related Section
===================== */
.related-section { padding: 4rem 0 6rem; border-top: 1px solid var(--border); }
.related-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.related-inner > h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-decoration: underline;
  text-decoration-color: var(--tertiary);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

/* =====================
   Responsive — Sub pages
===================== */
@media (max-width: 768px) {
  .page-intro { padding: calc(64px + 3rem) 1.5rem 2rem; }
  .content-inner { padding: 0 1.5rem; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-archive-intro { padding: calc(64px + 2rem) 1.5rem 1.5rem; }
  .blog-archive-layout { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; }
  .blog-archive-sidebar { position: static; }
  .book-single { grid-template-columns: 1fr; }
  .book-single-cover { max-width: 200px; }
  .book-single-section { padding: 2rem 0 4rem; }
  .company-table-wrap { padding: 0 1.5rem; }
  .workflow-steps { margin: 0 1.5rem; padding: 0; }
  .contact-wrap { padding: 0 1.5rem; }
  .contact-wrap iframe { height: 620px; }
  .single-layout { grid-template-columns: 1fr; padding: calc(64px + 2rem) 1.25rem 4rem; gap: 2rem; }
  .single-sidebar { display: none; }
  .post-single { padding: 1.5rem; }
  .related-inner { padding: 0 1.5rem; }

  /* お悩みセクション */
  .strengths { padding: 3rem 0 2.5rem; }
  .strengths-head { margin-bottom: 2rem; }

  /* サービスリスト（トップページ） */
  .svc-list-box { margin: 0 1.5rem; padding: 0; }
  .svc-list-item { padding: 1.1rem 1.25rem; gap: 1.1rem; }
  .svc-list-num { font-size: 2rem; min-width: 2rem; }
  .svc-list-footer { padding: 1rem 1.25rem; }

  /* コンテンツセクション */
  .content-section { padding: 3rem 0 4rem; }

  /* サービスページ */
  .svc-rows { margin: 0 1.5rem; padding: 0; }
  .svc-row { padding: 1.25rem 1.5rem; }

  /* 固定ページ汎用 */
  .page-single-wrap { padding: calc(64px + 2rem) 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .page-intro { padding: calc(64px + 2rem) 1.25rem 1.5rem; }
  .content-inner { padding: 0 1.25rem; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid  { grid-template-columns: 1fr; }
  .blog-card-thumb { aspect-ratio: 2/1; }
  .blog-archive-intro { padding: calc(64px + 1.5rem) 1.25rem 1.25rem; }
  .blog-archive-layout { padding: 0 1.25rem 3rem; }
  .company-table-wrap { padding: 0 1.25rem; }
  .workflow-steps { margin: 0 1.25rem; padding: 0; }
  .contact-wrap { padding: 0 1.25rem; }
  .contact-wrap iframe { height: 560px; }
  .single-layout { padding: calc(64px + 1.5rem) 1rem 3rem; }
  .post-single { padding: 1.25rem; }
  .related-inner { padding: 0 1.25rem; }

  /* サービスリスト（トップページ） */
  .svc-list-box { margin: 0 1.25rem; }
  .svc-list-item { padding: 1rem 1rem; gap: 1rem; }
  .svc-list-num { font-size: 1.75rem; }
  .svc-list-body h3 { font-size: 1.0625rem; }

  /* コンテンツセクション */
  .content-section { padding: 2rem 0 3rem; }

  /* サービスページ */
  .svc-rows { margin: 0 1.25rem; padding: 0; }

  /* 固定ページ汎用 */
  .page-single-wrap { padding: calc(64px + 1.5rem) 1.25rem 3rem; }
}

/* =====================
   お問い合わせ モバイル切り替え
===================== */
.contact-mobile-link { display: none; text-align: center; margin-top: 2rem; }
.contact-mobile-link .btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .contact-mobile-link { display: block; }
  .contact-iframe-wrap { display: none; }
}

/* =====================
   スマホ専用改行
===================== */
.sp-br { display: none; }
@media (max-width: 768px) {
  .sp-br { display: block; }
}

/* =====================
   大見出しサイズ スマホ調整
===================== */
@media (max-width: 480px) {
  .strengths-head h2,
  .works-header h2,
  .sec-title {
    font-size: clamp(1.125rem, 5.8vw, 1.75rem);
  }
}

/* =====================
   ページ読み込み＆スクロールアニメーション
===================== */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ページ全体のフェードイン */
#site-wrapper {
  animation: pageFadeIn 0.8s ease both;
}

/* ヒーロー要素：時間差でふわっと出てくる */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-catch-ja {
  opacity: 0;
  animation: fadeUp 1.0s ease 0.55s both;
}
.hero-brand {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s both;
}

/* スクロールアニメーション（JS IntersectionObserver と連携） */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.05s; }
.fade-in.delay-2 { transition-delay: 0.15s; }
.fade-in.delay-3 { transition-delay: 0.25s; }
.fade-in.delay-4 { transition-delay: 0.35s; }
.fade-in.delay-5 { transition-delay: 0.45s; }

/* =====================
   404 ページ
===================== */
.page-404-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}
.page-404-inner {
  max-width: 560px;
}
.page-404-num {
  font-family: 'Caveat', cursive;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 0 0 .5rem;
}
.page-404-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.page-404-body {
  font-size: 1rem;
  color: var(--on-surface);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
