/* =========================================================
   Subpage Common
   Ciel v2
========================================================= */

.l-subpage {
  background: var(--ciel-paper);
  color: var(--ciel-ink);
}

.l-subpage__body {
  padding: 0;
}

.l-subpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.l-subpage__main {
  min-width: 0;
}

.l-subpage__side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 28px;
  align-self: start;
  min-width: 0;
}

/* =========================================================
   Subpage Band
========================================================= */

.c-subpage-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(184, 220, 232, .28) 0%,
      rgba(255, 255, 255, .72) 48%,
      rgba(232, 219, 201, .42) 100%
    ),
    var(--ciel-paper);
  border-bottom: 1px solid var(--ciel-line);
}

.c-subpage-band::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - var(--ciel-container)) / 2));
  bottom: 28px;
  width: min(260px, 28vw);
  height: 1px;
  background: var(--ciel-line-blue);
  pointer-events: none;
}

.c-subpage-band__inner {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  padding-bottom: 62px;
}

.c-subpage-band__eyebrow {
  margin: 0 0 12px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.c-subpage-band__title {
  margin: 0;
  color: var(--ciel-ink);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .08em;
}

.c-subpage-band__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--ciel-muted);
  font-size: .96rem;
  line-height: 2;
}

/* =========================================================
   Breadcrumb
========================================================= */

.c-breadcrumb {
  background: rgba(255, 255, 255, .58);
  border-bottom: 1px solid var(--ciel-line);
}

.c-breadcrumb__inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ciel-muted);
  font-size: .78rem;
  line-height: 1.7;
}

.c-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.c-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(47, 43, 39, .32);
}

.c-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.c-breadcrumb a:hover,
.c-breadcrumb a:focus-visible {
  color: var(--ciel-blue-deep);
}

/* =========================================================
   Entry
========================================================= */

.c-entry {
  min-width: 0;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--ciel-line);
  padding: clamp(28px, 4vw, 48px);
}

.c-entry__meta {
  margin: 0 0 14px;
  color: var(--ciel-blue-deep);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.c-page-title {
  margin: 0 0 28px;
  color: var(--ciel-ink);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
}

.c-entry__thumb {
  margin: 0 0 30px;
  overflow: hidden;
  background: var(--ciel-paper);
}

.c-entry__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content {
  color: var(--ciel-ink);
  font-size: .96rem;
  line-height: 2.05;
  letter-spacing: .035em;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p {
  margin: 0 0 1.55em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ciel-ink);
  line-height: 1.55;
}

.entry-content h2 {
  margin: 2.4em 0 1em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ciel-line);
  font-size: 1.35rem;
}

.entry-content h3 {
  margin: 2em 0 .85em;
  font-size: 1.15rem;
}

.entry-content a {
  color: var(--ciel-blue-deep);
}

/* =========================================================
   Archive Cards
========================================================= */

.c-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.c-card {
  min-width: 0;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--ciel-line);
}

.c-card__link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.c-card__thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(184, 220, 232, .16);
}

.c-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .35s ease,
    filter .35s ease;
}

.c-card__link:hover .c-card__thumb img,
.c-card__link:focus-visible .c-card__thumb img {
  transform: scale(1.035);
  filter: brightness(1.03);
}

.c-card__meta,
.c-card__title,
.c-card__excerpt {
  margin-right: 22px;
  margin-left: 22px;
}

.c-card__meta {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.c-card__title {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ciel-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .05em;
}

.c-card__excerpt {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--ciel-muted);
  font-size: .88rem;
  line-height: 1.9;
}

/* =========================================================
   Sidebar
========================================================= */

.c-side-nav {
  position: static;
  padding: 26px 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--ciel-line);
}

.c-side-nav__title {
  margin: 0 0 16px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.c-side-nav__link,
.c-side-nav a {
  display: block;
  padding: 12px 0;
  color: var(--ciel-ink);
  font-size: .92rem;
  line-height: 1.5;
  text-decoration: none;
  border-top: 1px solid var(--ciel-line);
}

.c-side-nav__link:hover,
.c-side-nav__link:focus-visible,
.c-side-nav a:hover,
.c-side-nav a:focus-visible,
.c-side-nav__link[aria-current="page"],
.c-side-nav a[aria-current="page"] {
  color: var(--ciel-blue-deep);
}

.c-side-nav__children {
  margin: -2px 0 10px;
  padding: 2px 0 4px 14px;
  border-top: 1px solid var(--ciel-line);
}

.c-side-nav__child-link,
.c-side-nav .c-side-nav__child-link {
  position: relative;
  padding: 7px 0 7px 14px;
  color: color-mix(in srgb, var(--ciel-ink) 72%, #ffffff);
  font-size: .82rem;
  line-height: 1.5;
  border-top: 0;
}

.c-side-nav__child-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 5px;
  height: 1px;
  background: var(--ciel-blue-deep);
  opacity: .55;
}

.c-side-nav__child-link:hover,
.c-side-nav__child-link:focus-visible,
.c-side-nav .c-side-nav__child-link:hover,
.c-side-nav .c-side-nav__child-link:focus-visible {
  color: var(--ciel-blue-deep);
}

/* =========================================================
   Side Recruit Banner
========================================================= */

.c-side-recruit-banner {
  margin: 0;
}

.c-side-recruit-banner__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.c-side-recruit-banner__link:hover,
.c-side-recruit-banner__link:focus-visible {
  text-decoration: none;
}

.c-side-recruit-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   Pager / Entry Nav
========================================================= */

.c-pager,
.c-entry-nav {
  margin-top: 36px;
}

.c-entry-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.c-entry-nav a {
  display: block;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--ciel-line);
  color: inherit;
  text-decoration: none;
}

.c-entry-nav span {
  display: block;
  margin-bottom: 4px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
}

/* =========================================================
   Fixed Header Offset
========================================================= */

body:not(.home) .c-subpage-band {
  margin-top: 80px;
}

@media (max-width: 767px) {
  body:not(.home) .c-subpage-band {
    margin-top: 70px;
  }
}

/* =========================================================
   Subpage Button
   same as Front Page .c-button
========================================================= */

.l-subpage .c-button,
.entry-content a.c-button,
.entry-content a.c-button:link,
.entry-content a.c-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--ciel-blue-deep);
  background: var(--ciel-blue-deep);
  color: var(--ciel-white);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-decoration: none;
}

.l-subpage .c-button:hover,
.l-subpage .c-button:focus-visible,
.entry-content a.c-button:hover,
.entry-content a.c-button:focus-visible {
  background: var(--ciel-white);
  color: var(--ciel-blue-deep);
  text-decoration: none;
}

/* =========================================================
   404 CTA Center
========================================================= */

.l-subpage--404 .c-entry__button {
  margin-top: 32px;
  text-align: center;
}

/* =========================================================
   Blog Pagination
   same as Lunch page pagination
========================================================= */

.c-pager,
.p-lunch-menu-past__pagination {
  clear: both;
  width: 100%;
  margin-top: 48px;
}

.c-pager .navigation,
.p-lunch-menu-past__pagination .navigation {
  width: 100%;
  margin: 0;
}

.c-pager .nav-links,
.p-lunch-menu-past__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.c-pager .page-numbers li,
.p-lunch-menu-past__pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.c-pager a.page-numbers,
.c-pager span.page-numbers,
.p-lunch-menu-past__pagination a.page-numbers,
.p-lunch-menu-past__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 42px;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(138, 99, 56, 0.32);
  background: var(--ciel-white);
  color: var(--ciel-ink);
  font-size: .86rem;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.c-pager a.page-numbers:link,
.c-pager a.page-numbers:visited,
.p-lunch-menu-past__pagination a.page-numbers:link,
.p-lunch-menu-past__pagination a.page-numbers:visited {
  color: var(--ciel-ink);
  text-decoration: none;
}

.c-pager a.page-numbers:hover,
.c-pager a.page-numbers:focus-visible,
.p-lunch-menu-past__pagination a.page-numbers:hover,
.p-lunch-menu-past__pagination a.page-numbers:focus-visible {
  border-color: var(--ciel-wood);
  background: var(--ciel-paper);
  color: var(--ciel-wood);
  text-decoration: none;
  transform: translateY(-2px);
}

.c-pager span.page-numbers.current,
.p-lunch-menu-past__pagination span.page-numbers.current {
  border-color: var(--ciel-wood);
  background: var(--ciel-wood);
  color: #fff8df;
}

.c-pager span.page-numbers.dots,
.p-lunch-menu-past__pagination span.page-numbers.dots {
  min-width: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--ciel-muted);
}

.c-pager a.page-numbers.prev,
.c-pager a.page-numbers.next,
.p-lunch-menu-past__pagination a.page-numbers.prev,
.p-lunch-menu-past__pagination a.page-numbers.next {
  min-width: 72px;
  padding: 0 16px;
  letter-spacing: 0.06em;
}

/* =========================================================
   Responsive
========================================================= */

@media screen and (max-width: 640px) {
  .c-pager,
  .p-lunch-menu-past__pagination {
    margin-top: 48px;
  }

  .c-pager .nav-links,
  .p-lunch-menu-past__pagination .page-numbers {
    gap: 8px;
  }

  .c-pager a.page-numbers,
  .c-pager span.page-numbers,
  .p-lunch-menu-past__pagination a.page-numbers,
  .p-lunch-menu-past__pagination span.page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: .86rem;
  }

  .c-pager a.page-numbers.prev,
  .c-pager a.page-numbers.next,
  .p-lunch-menu-past__pagination a.page-numbers.prev,
  .p-lunch-menu-past__pagination a.page-numbers.next {
    min-width: 72px;
    padding: 0 16px;
  }

  .l-subpage__grid {
    display: block;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .l-subpage__main,
  .l-subpage__side {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .l-subpage__side {
    position: static;
    top: auto;
    display: grid;
    gap: 24px;
    margin-top: 48px;
  }

  .c-side-nav {
    width: 100%;
  }
}
