/* Core layout layer for Chubo-kun pages. */

:root {
  --ck-ink: #111827;
  --ck-dark: #1f2329;
  --ck-dark-2: #2b3038;
  --ck-muted: #5f6673;
  --ck-line: #e5e7eb;
  --ck-soft: #f6f7f9;
  --ck-white: #fff;
  --ck-accent: #f5b819;
  --ck-radius: 8px;
  --ck-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.ck-site-header,
.ck-site-header *,
.ck-home,
.ck-home *,
.ck-service-hero,
.ck-service-hero *,
.ck-home-section,
.ck-home-section *,
.ck-home-final,
.ck-home-final * {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
}

br.sp-only {
  display: none;
}

br.pc-only {
  display: inline;
}

.ck-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 10px 0;
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(229, 231, 235, .62);
  backdrop-filter: blur(18px);
}

.ck-header-bar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(1500px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  min-height: 54px;
  margin: 0 auto;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(229, 231, 235, .90);
  border-radius: 999px;
  background: rgba(248, 250, 252, .92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.ck-header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.ck-header-logo img {
  display: block;
  width: 168px;
  max-width: none;
  height: auto;
}

.ck-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.ck-header-nav::-webkit-scrollbar {
  display: none;
}

.ck-header-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 0;
  color: #565b64;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.ck-header-nav a[aria-current="page"],
.ck-header-nav a:hover {
  color: var(--ck-ink);
}

.ck-header-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 184, 25, .15), #f5b819 52%, rgba(17, 24, 39, .76));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .16s ease;
}

.ck-header-nav a:hover::after,
.ck-header-nav a:focus-visible::after,
.ck-header-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.ck-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f7c948;
  color: var(--ck-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(247, 201, 72, .22);
}

.ck-header-menu {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ck-ink);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.ck-header-menu span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.ck-header-menu span:first-child {
  transform: translateY(-4px);
}

.ck-header-menu span:last-child {
  transform: translateY(4px);
}

.ck-site-header.is-menu-open .ck-header-menu span:first-child {
  transform: rotate(45deg);
}

.ck-site-header.is-menu-open .ck-header-menu span:last-child {
  transform: rotate(-45deg);
}

.ck-home,
.ck-first {
  color: var(--ck-ink);
  background: var(--ck-white);
}

.ck-home-container {
  width: min(1120px, calc(100% - 40px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ck-service-hero {
  padding: clamp(96px, 10vw, 144px) 0;
  color: var(--ck-white);
}

.ck-service-hero span,
.ck-home-section-head span,
.ck-home-final span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  color: #d6b65f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ck-service-hero h1 {
  margin: 0;
  color: var(--ck-white);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.20;
  letter-spacing: 0;
}

.ck-service-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .80);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.95;
}

.ck-home-section {
  padding: clamp(82px, 9vw, 128px) 0;
  background: var(--ck-white);
}

.ck-home-dark {
  width: 100%;
  margin-left: 0;
  background: linear-gradient(180deg, var(--ck-dark) 0%, var(--ck-dark-2) 100%);
  color: var(--ck-white);
}

.ck-home-section-head {
  max-width: 680px;
}

.ck-center {
  margin: 0 auto;
  text-align: center;
}

.ck-home-section-head h2,
.ck-home-final h2 {
  margin: 0;
  color: var(--ck-ink);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0;
}

.ck-home-hero h1,
.ck-service-hero h1,
.ck-home-section-head h2,
.ck-home-final h2 {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 900;
  -webkit-text-stroke: .012em currentColor;
  paint-order: stroke fill;
}

.ck-home-section-head p,
.ck-home-final p {
  margin: 22px 0 0;
  color: var(--ck-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.ck-home-dark h2,
.ck-home-dark h3,
.ck-home-dark p {
  color: var(--ck-white);
}

.ck-home-dark p {
  color: rgba(255, 255, 255, .76);
}

.ck-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px 58px;
}

.ck-split-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.ck-split figure {
  margin: 0;
}

.ck-split figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.ck-split-action {
  grid-column: 1;
  align-self: start;
}

.ck-split-reverse .ck-split-action {
  grid-column: 2;
}

.ck-home-dark .ck-split figure {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}

.ck-home-final {
  width: 100%;
  margin-left: 0;
  padding: clamp(86px, 10vw, 136px) 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .96) 100%),
    url("../image/footer/footer01.jpg") center / cover;
  color: var(--ck-white);
  text-align: center;
}

.ck-home-final h2,
.ck-home-final p {
  color: var(--ck-white);
}

.ck-home-final p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, .78);
}

.ck-home-final a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 20px;
  border-radius: var(--ck-radius);
  background: #f7c948;
  color: var(--ck-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .ck-split,
  .ck-split-reverse {
    grid-template-columns: 1fr !important;
  }

  .ck-split > .ck-home-section-head {
    order: 1;
  }

  .ck-split figure {
    order: 2;
    justify-self: center;
  }

  .ck-split-action {
    grid-column: 1 !important;
    order: 3;
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .ck-header-bar {
    grid-template-columns: 132px minmax(0, 1fr) auto;
  }

  .ck-header-logo img {
    width: 124px;
  }

  .ck-header-logo {
    width: 124px;
  }

  .ck-header-nav {
    justify-content: flex-start;
  }

  .ck-header-nav a {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  br.sp-only {
    display: inline;
  }

  br.pc-only {
    display: none;
  }

  .ck-site-header {
    padding: 6px 0;
  }

  .ck-header-bar {
    position: relative;
    grid-template-columns: 122px auto;
    justify-content: space-between;
    gap: 6px;
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    min-height: 48px;
    padding: 5px 6px 5px 10px;
  }

  .ck-header-logo img {
    width: 114px;
  }

  .ck-header-logo {
    width: 114px;
  }

  .ck-header-cta {
    display: none;
  }

  .ck-header-menu {
    display: inline-flex;
    justify-self: end;
  }

  .ck-header-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    width: 100%;
    max-height: calc(100dvh - 82px);
    margin: 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(229, 231, 235, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.98);
    transform-origin: top center;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
  }

  .ck-site-header.is-menu-open .ck-header-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .ck-header-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    color: #2f3540;
    font-size: 13px;
    background: transparent;
  }

  .ck-header-nav a:hover,
  .ck-header-nav a:focus-visible,
  .ck-header-nav a[aria-current="page"] {
    background: #f6f7f9;
  }

  .ck-header-nav a::after {
    right: 14px;
    bottom: 7px;
    left: 14px;
  }

  .ck-home-container {
    width: min(100% - 20px, 1120px);
  }

  .ck-home-section {
    padding: 64px 0;
  }

  .ck-service-hero {
    padding: 74px 0 86px;
  }
}
