/* ==========================================================
   PORTO plus コーポレートサイト カスタムCSS
   Cocoon子テーマ用 - design/index.html v6 より移植
   ========================================================== */

/* ============================
   1. CSS変数 / デザイントークン
   ============================ */
:root {
  --accent:      #f5c800;
  --accent-pale: #fff8e0;
  --primary:     #1a1a1a;
  --text:        #3a3a3a;
  --text-muted:  #888888;
  --bg:          #ffffff;
  --bg-warm:     #f5f5f5;
  --bg-cream:    #efefef;
  --border:      #e0e0e0;
  --radius:      20px;
}

/* ============================
   2. ベースリセット
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.95;
  font-size: 15px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================
   3. コンテナ・セクション共通
   ============================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cocoon のメインラッパーを拡張 */
#main .main,
.entry-content {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.section { padding: 120px 0; }

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 440px;
  line-height: 2.1;
}

.text-center { text-align: center; }
.mx-auto     { margin-left: auto; margin-right: auto; }

/* ============================
   4. ボタン
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,200,0,0.35);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* CF7 submit ボタン */
.wpcf7-submit.btn {
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 700;
}

/* ============================
   5. ヘッダー (Cocoon上書き)
   ============================ */
#header,
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: 72px;
}

#header .header-in,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ロゴ */
.logo,
#header .site-name-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: 0.03em;
}

/* ヘッダーナビ */
#navi .navi-in > ul > li > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
#navi .navi-in > ul > li > a:hover {
  color: var(--accent);
}

/* ヘッダーお問い合わせボタン */
.header-cta-btn {
  padding: 9px 22px;
  font-size: 13px;
}

/* ============================
   6. ヒーローセクション
   ============================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: #fafafa;
}

.hero-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 10;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 800;
  color: var(--primary);
  opacity: 0.95;
  letter-spacing: -0.02em;
  line-height: 1;
  animation: fadeInDown 1.2s ease-out 0.3s both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-80px); }
  to   { opacity: 0.95; transform: translateY(-50%); }
}

.hero-cards-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 380px;
  animation: fadeInRight 1.2s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateY(-50%) translateX(80px); }
  to   { opacity: 1;  transform: translateY(-50%) translateX(0); }
}

.hero-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: all 0.4s;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}

.hero-card-header {
  background: var(--accent);
  padding: 20px 24px;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.hero-card-nav button {
  background: rgba(0,0,0,0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.hero-card-nav button:hover {
  background: rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.hero-card-body { padding: 24px; }

.hero-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
}

.hero-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.pickup-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(245,200,0,0.3);
  animation: rotateBadge 3s linear infinite;
  z-index: 25;
}
@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.pickup-badge-text {
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-size: 12px;
}

/* ============================
   7. マーキー（流れるテキスト）
   ============================ */
.marquee-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--accent);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee {
  display: flex;
  animation: scroll 20s linear infinite;
  gap: 40px;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================
   8. 数値実績セクション
   ============================ */
.numbers {
  padding: 72px 0;
  background: white;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.number-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.number-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-pale) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.number-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(245,200,0,0.1);
}
.number-card:hover::before { opacity: 1; }

.number-value {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.number-value span {
  font-size: 20px;
  color: var(--accent);
  margin-left: 4px;
}
.number-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* ============================
   9. サービスセクション
   ============================ */
.services { background: var(--bg-warm); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.service-card {
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 32px;
  border: 1.5px solid var(--border);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245,200,0,0.12);
  transform: translateY(-8px);
}

.service-illust {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  transition: transform 0.4s;
}
.service-card:hover .service-illust {
  transform: scale(1.1) rotate(3deg);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.service-tags span {
  padding: 4px 12px;
  background: var(--bg-warm);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.3s;
  border: 1px solid transparent;
}
.service-card:hover .service-tags span {
  background: var(--accent-pale);
  color: var(--accent);
  border-color: var(--accent);
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.2s;
  cursor: pointer;
}
.service-card:hover .service-arrow { gap: 12px; }

/* ============================
   10. 実績カード (works)
   ============================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.work-card {
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: all 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.work-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  border-color: var(--accent);
}

.work-thumb {
  height: 200px;
  background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover .work-thumb::after { opacity: 1; }

.work-body { padding: 28px; }

.work-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-pale);
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
}

.work-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.4;
}
.work-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
}

.work-metrics {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.work-metrics strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.work-metrics span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================
   11. お客様の声
   ============================ */
.voice { background: var(--bg-warm); }

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.voice-card {
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 36px;
  border: 1.5px solid var(--border);
  transition: all 0.3s;
}
.voice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(245,200,0,0.08);
}

.voice-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.voice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-pale);
  background: var(--bg-warm);
  flex-shrink: 0;
}

.voice-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.voice-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.voice-card blockquote {
  font-size: 14px;
  line-height: 2;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* ============================
   12. CTAセクション
   ============================ */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-cream) 0%, #f0f0f0 100%);
  border-radius: 40px;
  margin: 0 40px;
  border: 1px solid var(--border);
}

.cta-content { position: relative; z-index: 1; }

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}
.cta p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
  line-height: 1.9;
}

/* ============================
   13. フッター (Cocoon上書き)
   ============================ */
#footer,
.footer {
  padding: 60px 0 28px;
  color: var(--text-muted);
  border-top: 1px solid var(--border) !important;
  background: #fafafa !important;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.footer ul a:hover {
  color: var(--accent);
  margin-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================
   14. スクロールアニメーション
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ============================
   15. SVGアニメーション
   ============================ */
.bar-anim { transform-origin: bottom; }
.bar-anim:nth-child(1) { animation: barUp 1.8s ease-out 0.3s both; }
.bar-anim:nth-child(2) { animation: barUp 1.8s ease-out 0.5s both; }
.bar-anim:nth-child(3) { animation: barUp 1.8s ease-out 0.7s both; }
.bar-anim:nth-child(4) { animation: barUp 1.8s ease-out 0.9s both; }
.bar-anim:nth-child(5) { animation: barUp 1.8s ease-out 1.1s both; }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.float-slow     { animation: floatS 5s ease-in-out infinite; }
.float-slow-d   { animation: floatS 5s ease-in-out 2s infinite; }
.float-slow-d2  { animation: floatS 6s ease-in-out 3.5s infinite; }
@keyframes floatS { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.blink { animation: blinkE 3s ease-in-out infinite; }
@keyframes blinkE { 0%,45%,47%,100% { transform: scaleY(1); } 46% { transform: scaleY(0.05); } }

.wave-hand { animation: waveH 2.2s ease-in-out infinite; transform-origin: 85% 90%; }
@keyframes waveH { 0%,100% { transform: rotate(0deg); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(0deg); } }

.char-typing  { animation: typing 1.5s ease-in-out infinite; }
@keyframes typing { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-2px); } 60% { transform: translateY(1px); } }

.char-nod     { animation: nod 4s ease-in-out infinite; transform-origin: center top; }
@keyframes nod { 0%,80%,100% { transform: rotate(0deg); } 85% { transform: rotate(3deg); } 90% { transform: rotate(-2deg); } 95% { transform: rotate(1deg); } }

.char-breathe { animation: breathe 4s ease-in-out infinite; transform-origin: center bottom; }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.02); } }

.char-sway    { animation: sway 6s ease-in-out infinite; transform-origin: center bottom; }
@keyframes sway { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(1.5deg); } 75% { transform: rotate(-1.5deg); } }

.char-read    { animation: readPage 5s ease-in-out infinite; }
@keyframes readPage { 0%,100% { transform: rotate(0deg); } 40% { transform: rotate(-2deg); } 60% { transform: rotate(2deg); } }

.dog-wag     { animation: wagTail 0.8s ease-in-out infinite; transform-origin: left center; }
@keyframes wagTail { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(12deg); } }

.dog-breathe { animation: dogBreathe 3s ease-in-out infinite; }
@keyframes dogBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.hammock-swing { animation: hammockSwing 5s ease-in-out infinite; transform-origin: top center; }
@keyframes hammockSwing { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }

.laptop-glow { animation: laptopGlow 3s ease-in-out infinite; }
@keyframes laptopGlow { 0%,100% { opacity: 0.6; } 50% { opacity: 0.9; } }

.chart-pulse { animation: chartPulse 4s ease-in-out infinite; }
@keyframes chartPulse { 0%,100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.03); } }

/* ============================
   16. お問い合わせフォーム (CF7)
   ============================ */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.wpcf7-form p { margin-bottom: 20px; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,200,0,0.15);
}

.wpcf7-form textarea { min-height: 160px; resize: vertical; }

.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 56px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,200,0,0.35);
}

/* ============================
   17. 実績詳細ページ (ACF表示)
   ============================ */
.works-detail-header {
  background: var(--bg-warm);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.works-kpi-grid {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.works-kpi-item {
  text-align: center;
  padding: 32px 40px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  min-width: 160px;
}

.works-kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.works-kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.works-section-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.works-section-block h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================
   18. Cocoon ブログ要素の非表示
   ============================ */
/* 固定ページ・CPTではブログ的な要素を非表示 */
.page-template-default .sidebar,
.post-type-archive-works .sidebar,
.single-works .sidebar {
  display: none !important;
}

/* 投稿メタ情報（author, date）を非表示 */
.single-works .post-meta,
.single-works .author-box {
  display: none !important;
}

/* Cocoon の目次を非表示 */
.toc-title, #toc { display: none !important; }

/* ============================
   19. レスポンシブ
   ============================ */
@media (max-width: 1200px) {
  .hero-cards-container {
    width: 340px;
    right: 3%;
  }
}

@media (max-width: 960px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .hero-logo { font-size: clamp(56px, 20vw, 80px); left: 4%; }
  .hero-cards-container { display: none; } /* SP では非表示 */

  .section { padding: 72px 0; }
  .section-title { font-size: 23px; }

  .numbers-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid    { grid-template-columns: 1fr; }
  .voice-grid    { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }

  .cta h2 { font-size: 24px; }
  .cta-bg { margin: 0 16px; border-radius: 24px; }

  .works-kpi-grid { flex-direction: column; gap: 16px; }
}
