/*
Theme Name: 026inc-202606
Theme URI: https://026.inc
Author: 026.inc
Author URI: https://026.inc
Description: 026.inc（株式会社マルニーロク）コーポレートサイト用クラシックテーマ。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 026inc-202606
*/

:root {
  --color-primary: #f2921e;
  --color-navy: #0e1f38;
  --color-bg-alt: #f6f6f6;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-white: #ffffff;
  --color-cream: #fdf1e6;
  --color-border: #e5e5e7;
  --font-en: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --header-height: 88px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 88px;
  --space-8: 128px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.site-header--overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--space-4);
}

.site-branding {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--color-navy);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-navy);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #262626;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

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

/* ==========================================================================
   Full screen menu overlay
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #1c1c1c;
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  overflow-y: auto;
}

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

.menu-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-branding--light {
  color: var(--color-white);
}

.menu-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

.menu-close-icon {
  font-size: 22px;
  line-height: 1;
}

.menu-close-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.menu-overlay-body {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
}

.menu-column {
  grid-column: span 1;
}

.menu-column:nth-child(5) {
  grid-column: 1;
}

.menu-column-heading {
  display: block;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-column-heading-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.menu-column-links li + li {
  margin-top: var(--space-3);
}

.menu-column-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.menu-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.menu-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
}

.menu-overlay-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .menu-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-column:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .menu-columns {
    grid-template-columns: 1fr;
  }

  .menu-column:nth-child(5) {
    grid-column: 1;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-bg-alt);
  transition: background-color 0.8s ease;
}

.hero.is-on {
  background: var(--color-primary);
}

.hero-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 32vw, 480px);
}

.hero-pill {
  position: relative;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  border-radius: 999px;
  background: var(--color-primary);
  transition: background-color 0.8s ease;
}

.hero.is-on .hero-pill {
  background: var(--color-cream);
}

.hero-pill-thumb {
  position: absolute;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-cream);
  transition: left 1s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.8s ease;
}

.hero.is-on .hero-pill-thumb {
  left: 63%;
  background: var(--color-primary);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--space-4) var(--space-6);
}

.hero-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
  transition: color 0.8s ease;
}

.hero-title-main {
  display: inline-block;
  vertical-align: middle;
  font-size: clamp(56px, 11vw, 140px);
}

.hero-title-sub {
  display: inline-block;
  font-size: clamp(27px, 4.67vw, 59px);
}

.hero.is-on .hero-title {
  color: var(--color-white);
}

.hero-scroll {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color 0.8s ease;
}

.hero.is-on .hero-scroll {
  color: var(--color-white);
}

@media (max-width: 640px) {
  .hero-inner {
    padding-bottom: var(--space-4);
  }
}

/* ==========================================================================
   Section common
   ========================================================================== */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   Section side tag (bottom-right label)
   ========================================================================== */
.side-tag-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.side-tag-main {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.4s ease;
}

.side-tag-eyebrow,
.side-tag-main {
  clip-path: inset(0 100% 0 0);
  animation-name: side-tag-type;
  animation-duration: 1s;
  animation-timing-function: steps(var(--type-steps, 1), end);
  animation-fill-mode: both;
  animation-play-state: paused;
}

.is-typed .side-tag-eyebrow,
.is-typed .side-tag-main {
  animation-play-state: running;
}

@keyframes side-tag-type {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-tag-eyebrow,
  .side-tag-main {
    animation: none;
    clip-path: none;
  }
}

.why-side,
.how-side,
.what-side,
.recruit-side {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.side-tag-active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .why-side,
  .how-side,
  .what-side,
  .recruit-side {
    right: var(--space-3);
    bottom: var(--space-3);
  }
}

/* ==========================================================================
   Why
   ========================================================================== */
.why {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8) 0 calc(var(--space-8) + var(--space-4));
  display: grid;
  grid-template-rows: 1fr;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(242, 146, 30, 0.1), transparent 70%);
  pointer-events: none;
}

.why-inner {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--space-7);
}

.why-illustration {
  flex: none;
  width: 40%;
}

.why-illustration-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.why-illustration-svg {
  width: 82%;
  height: auto;
}

.halftone-dot {
  animation: halftone-dot-flutter 2.2s ease-in-out infinite;
}

@keyframes halftone-dot-flutter {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .halftone-dot {
    animation: none;
  }
}

.why-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .why-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .why-illustration {
    width: 100%;
  }

  .why-illustration-inner {
    position: static;
  }
}

.why-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.why-body {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.why-body + .why-body {
  margin-top: var(--space-3);
}

.why-title-accent {
  color: var(--color-primary);
}

.why-cases {
  display: flex;
  flex-direction: column;
  margin: var(--space-6) 0 0;
  max-width: 720px;
  border-top: 1px solid var(--color-border);
}

.why-case {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.why-case-switch {
  margin-top: 4px;
}

.why-case-switch {
  position: relative;
  flex: none;
  width: 44px;
  aspect-ratio: 2.6 / 1;
  border-radius: 999px;
  background: var(--color-primary);
}

.why-case-switch-thumb {
  position: absolute;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-cream);
}

.why-case-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-case-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}

.why-case-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 480px;
}

.why-conclusion {
  max-width: 640px;
  margin-top: var(--space-5);
}

@media (max-width: 540px) {
  .why-case {
    gap: var(--space-3);
  }

  .why-case-switch {
    width: 36px;
  }
}

/* ==========================================================================
   How
   ========================================================================== */
.how {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8) 0 calc(var(--space-8) + var(--space-4));
  display: grid;
  grid-template-rows: 1fr;
  background: var(--color-white);
}

.how-inner {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--space-7);
}

.how-content {
  flex: 1 1 0;
  min-width: 0;
}

.how-illustration {
  flex: 1 1 0;
  min-width: 0;
}

.how-illustration-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-illustration-svg {
  width: 72%;
  height: auto;
}

.how-ring {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 22;
  opacity: 0.3;
}

.how-core-circle {
  opacity: 0;
}

@media (max-width: 900px) {
  .how-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .how-illustration {
    width: 100%;
    order: -1;
  }

  .how-illustration-inner {
    position: static;
  }
}

.how-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.how-title-accent {
  color: var(--color-primary);
}

.how-body {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.how-body + .how-body {
  margin-top: var(--space-3);
}

.how-cases {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.how-case {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.how-case-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.how-case-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--color-primary);
}

.how-case-tag {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.how-case-title {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 800;
  color: var(--color-text);
}

.how-case-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.how-case-detail dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.how-case-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.how-case-detail-head dt {
  margin-bottom: 0;
}

.how-case-switch {
  position: relative;
  flex: none;
  width: 30px;
  aspect-ratio: 2.6 / 1;
  border-radius: 999px;
}

.how-case-switch-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-white);
}

.how-case-switch.is-off {
  background: var(--color-border);
}

.how-case-switch.is-off .how-case-switch-thumb {
  left: 3%;
}

.how-case-switch.is-on {
  background: var(--color-primary);
}

.how-case-switch.is-on .how-case-switch-thumb {
  left: 63%;
}

.how-case-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}

.how-case-check svg {
  width: 11px;
  height: 11px;
}

.how-case-detail dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* 「課題」は控えめに、「関わり/成果」側はしっかりした濃さで前後のコントラストを出す */
.how-case-detail-head:has(.how-case-switch.is-on) + dd,
.how-case-detail-head:has(.how-case-check) + dd {
  color: var(--color-text);
}

.how-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: var(--space-6) 0 0;
  padding: var(--space-5) var(--space-6);
  max-width: 560px;
  background: var(--color-navy);
  border-radius: 16px;
}

.how-price-lede {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
}

.how-price-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.how-price-num {
  font-size: 40px;
  font-weight: 800;
}

/* ==========================================================================
   What
   ========================================================================== */
.what {
  position: relative;
  padding: var(--space-8) 0 calc(var(--space-8) + var(--space-4));
  background: var(--color-bg-alt);
  display: grid;
  grid-template-rows: 1fr;
  transition: background-color 0.4s ease;
}

.what:has(.what-service-row:hover) {
  background: var(--color-navy);
  --color-text: var(--color-white);
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.15);
}

.what-inner {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.what-services {
  margin-bottom: var(--space-6);
}

.what-services-head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.what-services-head .section-eyebrow {
  display: block;
}

.what-services-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-text);
  margin: var(--space-3) 0 0;
  transition: color 0.4s ease;
}

.what-services-list {
  display: flex;
  flex-direction: column;
}

.what-service-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  opacity: 1;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.what-services-list:hover .what-service-row:not(:hover) {
  opacity: 0.15;
}

.what-service-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.what-service-row-name {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.what-service-row-heart {
  position: relative;
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.06em;
  background: var(--color-primary);
  border-radius: 0;
  transform: rotate(45deg);
  vertical-align: 0.06em;
}

.what-service-row-heart::before,
.what-service-row-heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 50%;
}

.what-service-row-heart::before {
  left: -50%;
}

.what-service-row-heart::after {
  top: -50%;
}

.what-service-row-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.what-service-row-view {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.what-service-row:hover .what-service-row-view {
  opacity: 1;
  transform: scale(1);
}

.what-head {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.what-stat {
  font-family: var(--font-en);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.what-stat-plus {
  font-size: 0.6em;
}

.what-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  transition: color 0.4s ease;
}

.what-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-6);
}

.what-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.4s ease;
}

.what-list-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  transition: color 0.4s ease;
}

.what-list-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  transition: color 0.4s ease;
}

@media (max-width: 640px) {
  .what-list {
    grid-template-columns: 1fr;
  }

  .what-service-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .what-service-row-view {
    opacity: 1;
    transform: none;
  }

  .what-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* ==========================================================================
   Recruit
   ========================================================================== */
.recruit {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8) 0 calc(var(--space-8) + var(--space-4));
  display: grid;
  grid-template-rows: 1fr;
  background: var(--color-white);
}

.recruit-inner {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--space-7);
}

.recruit-content {
  flex: 1;
  min-width: 0;
}

.recruit-illustration {
  flex: none;
  width: 40%;
}

.recruit-illustration-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruit-illustration-svg {
  width: 82%;
  height: auto;
}

@media (max-width: 900px) {
  .recruit-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .recruit-illustration {
    width: 100%;
    order: -1;
  }

  .recruit-illustration-inner {
    position: static;
  }
}

.recruit-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-3) 0 0;
}

.recruit-body {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.recruit-body + .recruit-body {
  margin-top: var(--space-3);
}

.recruit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: var(--space-6) 0;
  background: var(--color-bg-alt);
}

.contact-title {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  text-align: center;
  color: var(--color-text);
  margin: 0 0 var(--space-6);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: 24px;
  background: #ececec;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 12px 30px rgba(0, 0, 0, 0.08));
}

.contact-card-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-card-name {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  margin-top: 8px;
}

.contact-card-desc {
  margin-top: var(--space-3);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.contact-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Company
   ========================================================================== */
.company {
  padding: var(--space-8) 0;
  background: var(--color-white);
}

.company-inner {
  max-width: 760px;
}

.company-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-3) 0 0;
}

.company-lede {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.company-table {
  margin: var(--space-7) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.company-table-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.company-table-row dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.company-table-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.company-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.company-more-text {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.company-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .company-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.page-content {
  max-width: 680px;
  margin-top: var(--space-6);
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.page-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-3);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin: 0 0 var(--space-3);
}

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Service pages (PMaaS etc.)
   ========================================================================== */
.pmaas-inner {
  max-width: 780px;
}

.pmaas-section-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-8) 0 0;
}

.pmaas-case-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 560px;
}

.pmaas-compare {
  margin: var(--space-6) 0 0;
  border-top: 1px solid var(--color-border);
}

.pmaas-compare-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.pmaas-compare-head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.pmaas-compare-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.pmaas-compare-ses {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.pmaas-compare-pmaas {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .pmaas-compare-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pmaas-compare-head {
    display: none;
  }

  .pmaas-compare-ses::before {
    content: 'SES：';
    font-weight: 700;
    color: var(--color-text-muted);
  }

  .pmaas-compare-pmaas::before {
    content: 'PMaaS：';
    font-weight: 700;
    color: var(--color-primary);
  }
}

.pmaas-cta {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-navy);
  border-radius: 24px;
}

.pmaas-cta-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-white);
}

.pmaas-cta-text {
  margin: var(--space-3) 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.pmaas-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pmaas-cta-actions .btn--outline {
  color: var(--color-white);
}

.pmaas-cta-actions .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

/* ==========================================================================
   Form (Contact Form 7)
   ========================================================================== */
.form-wrap {
  max-width: 560px;
  margin-top: var(--space-7);
}

.form-wrap p {
  margin: 0 0 var(--space-5);
}

.form-wrap label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.form-wrap input[type='text'],
.form-wrap input[type='email'],
.form-wrap input[type='tel'],
.form-wrap select,
.form-wrap textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
}

.form-wrap select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.form-wrap .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 16px 0 0;
  font-weight: 400;
}

.form-wrap .wpcf7-form-control-wrap {
  display: block;
}

.form-wrap .wpcf7-submit {
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.form-wrap .wpcf7-submit:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
}

.form-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #c0392b;
}

.form-wrap .wpcf7-response-output {
  margin-top: var(--space-4);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #1c1c1c;
  color: var(--color-white);
  padding: var(--space-6) 0 var(--space-4);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
}

.footer-column-heading {
  display: block;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column-heading-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.footer-column-links li + li {
  margin-top: var(--space-3);
}

.footer-column-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-company p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Why→How間を移動する円（ドット→単色に解けてHowのくり抜き円へはまり込む演出）。 */
.circle-transit {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height;
}

.circle-transit-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-transit-solid {
  opacity: 0;
}

.circle-transit .halftone-dot {
  animation: none;
}


@media (prefers-reduced-motion: reduce) {
  .circle-transit {
    display: none;
  }
}
