/* ==========================================================================
   KANSHOKU株式会社 コーポレートサイト
   Design System / Base Styles
   ========================================================================== */

:root {
  /* Colors */
  --color-base: #FFFFFF;
  --color-base-sub: #FFFDF5;
  --color-accent: #D5A100;
  --color-accent-dark: #B98900;
  --color-text: #222222;
  --color-text-sub: #333333;
  --color-text-mute: #6B6B63;
  --color-border: #EEEEEE;
  --color-dark: #222222;

  /* Spacing */
  --section-padding-y: 120px;
  --section-padding-y-sm: 80px;
  --container-width: 1120px;

  /* Effects */
  --shadow-soft: 0 8px 24px rgba(34, 34, 34, 0.06);
  --shadow-soft-hover: 0 12px 32px rgba(34, 34, 34, 0.1);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-base: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-y) 0;
}

.section--sub {
  background-color: var(--color-base-sub);
}

.section--dark {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--color-text-sub);
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

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

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: #FFFFFF;
}

.btn--on-dark {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn--on-dark:hover {
  background-color: #E9B317;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 12px 28px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(238, 238, 238, 0.8);
  transition: var(--transition-base);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(34, 34, 34, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--color-accent);
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.gnav__link {
  font-size: 15px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.gnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-base);
}

.gnav__link:hover::after {
  width: 100%;
}

.gnav__link.is-current {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 1100;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-base);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 240px 0 160px;
  text-align: center;
  background-color: #FFFDF5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.94) 0%, rgba(255, 253, 245, 0.86) 35%, rgba(255, 255, 255, 0.92) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__copy {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.6);
}

.hero__copy em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__sub {
  font-size: 16px;
  color: var(--color-text-sub);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* --------------------------------------------------------------------------
   Page header (subpages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 180px 0 80px;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 100%);
  text-align: center;
}

.page-header__title {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.page-header__subtitle {
  margin-top: 16px;
  font-size: 17px;
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   Card grid (3-col / 2-col)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 32px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-soft-hover);
  transform: translateY(-4px);
}

.card__index {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card__title {
  font-size: 19px;
  margin-bottom: 16px;
}

.card__text {
  font-size: 14.5px;
  color: var(--color-text-sub);
}

.card__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__list li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding-left: 20px;
  position: relative;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Service card (2col, top page) */
.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-soft);
}

.service-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 21px;
  margin-bottom: 16px;
}

.service-card__text {
  font-size: 14.5px;
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   Split section (image + text, reversible)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__body {
  order: 1;
}

.split__step {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.split__title {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 20px;
}

.split__text {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 28px;
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split__list li {
  font-size: 14.5px;
  padding-left: 26px;
  position: relative;
  color: var(--color-text-sub);
}

.split__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Placeholder image block
   -------------------------------------------------------------------------- */
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #E9E9E4;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B8B82;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
}

.placeholder--map {
  aspect-ratio: 16 / 7;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* --------------------------------------------------------------------------
   Table (company overview)
   -------------------------------------------------------------------------- */
.info-table {
  border-top: 1px solid var(--color-border);
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 24px 20px;
  font-size: 15px;
  vertical-align: top;
}

.info-table th {
  width: 200px;
  color: var(--color-text-mute);
  font-weight: 700;
}

.info-table td {
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   Recruit band
   -------------------------------------------------------------------------- */
.recruit {
  background-color: var(--color-base-sub);
  text-align: center;
}

.recruit__title {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 24px;
}

.recruit__text {
  font-size: 15px;
  color: var(--color-text-sub);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* --------------------------------------------------------------------------
   CTA (shared, dark)
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
}

.cta__title {
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 20px;
  color: #FFFFFF;
}

.cta__text {
  font-size: 15px;
  color: #CFCFCF;
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #1A1A1A;
  color: #B7B7B0;
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333333;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-logo span {
  color: var(--color-accent);
}

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

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav__link {
  font-size: 14px;
  transition: var(--transition-base);
}

.footer-nav__link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 28px;
  font-size: 12.5px;
  text-align: center;
  color: #7A7A73;
}

/* --------------------------------------------------------------------------
   Company overview mini table (top page)
   -------------------------------------------------------------------------- */
.company-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Responsive (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 80px;
  }

  .container {
    padding: 0 20px;
  }

  .gnav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }

  .gnav.is-open {
    transform: translateX(0);
  }

  .gnav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .gnav__cta {
    margin-top: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 180px 0 80px;
  }

  .page-header {
    padding: 140px 0 60px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .split,
  .split--reverse .split__media,
  .split--reverse .split__body {
    order: initial;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-summary {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-table th {
    width: 120px;
    padding: 18px 12px;
    font-size: 13.5px;
  }

  .info-table td {
    padding: 18px 12px;
    font-size: 13.5px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .card,
  .service-card {
    padding: 32px 24px;
  }
}
