:root {
  --ab-blue: #1f4fbf;
  --ab-deep-blue: #13327a;
  --ab-ink: #182036;
  --ab-muted: #68708a;
  --ab-line: #e1e4ee;
  --ab-pale: #f6f8fc;
}

.ab-cms-main {
  min-height: 70vh;
  color: var(--ab-ink);
}

.ab-cms-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

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

.ab-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(22, 36, 78, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(22, 36, 78, 0.12);
}

.ab-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ab-card-image {
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #edf2ff, #dfe8ff);
}

.post-type-archive-ab_member .ab-card-image {
  aspect-ratio: 4 / 5;
}

.ab-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.ab-card:hover .ab-card-image img {
  transform: scale(1.025);
}

.ab-card-placeholder {
  color: var(--ab-blue);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

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

.ab-card-body time,
.ab-article-head time,
.ab-work-category {
  display: block;
  margin-bottom: 9px;
  color: var(--ab-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ab-work-category {
  margin: 0 0 9px !important;
  color: var(--ab-blue) !important;
}

.ab-work-archive-client {
  margin-bottom: 8px !important;
  color: #4c5367 !important;
  font-size: 12px !important;
  font-weight: 650;
}

.ab-card-body h2 {
  margin: 0 0 13px;
  font-size: 20px;
  line-height: 1.55;
}

.ab-card-body p {
  margin: 0;
  color: var(--ab-muted);
  font-size: 14px;
  line-height: 1.85;
}

.post-type-archive-ab_column .ab-publication-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 10px;
}

.post-type-archive-ab_column .ab-publication-meta time {
  margin: 0;
  color: var(--ab-muted);
  font-size: 11px;
}

.post-type-archive-ab_column .ab-publication-source {
  color: var(--ab-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ab-publication-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ab-blue);
  font-size: 12px;
  font-weight: 700;
}

.ab-publication-more i {
  font-style: normal;
  transition: transform 180ms ease;
}

.ab-card:hover .ab-publication-more i {
  transform: translate(2px, -2px);
}

/* Member archive */
.post-type-archive-ab_member .ab-person-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-type-archive-ab_member .ab-person-card {
  min-width: 0;
  text-align: center;
}

.post-type-archive-ab_member .ab-person-card-link {
  display: flex;
  height: 100%;
  align-items: center;
  flex-direction: column;
  padding: 34px 28px 30px;
  border: 1px solid var(--ab-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 36, 78, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.post-type-archive-ab_member .ab-person-photo {
  display: grid;
  width: min(64%, 190px);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #e3e9fb, #f7f8fc);
  box-shadow: 0 20px 50px rgba(22, 36, 78, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-type-archive-ab_member .ab-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms ease;
}

.post-type-archive-ab_member .ab-person-photo > span {
  color: var(--ab-blue);
  font-size: 64px;
  font-weight: 650;
}

.post-type-archive-ab_member .ab-person-card:hover .ab-person-card-link {
  border-color: rgba(22, 36, 78, 0.16);
  box-shadow: 0 24px 64px rgba(22, 36, 78, 0.11);
  transform: translateY(-5px);
}

.post-type-archive-ab_member .ab-person-card:hover .ab-person-photo {
  box-shadow: 0 24px 58px rgba(22, 36, 78, 0.17);
}

.post-type-archive-ab_member .ab-person-card:hover .ab-person-photo img {
  transform: scale(1.04);
}

.post-type-archive-ab_member .ab-person-body {
  display: flex;
  width: 100%;
  align-items: stretch;
  flex: 1;
  flex-direction: column;
  padding: 24px 0 0;
}

.post-type-archive-ab_member .ab-person-role {
  margin: 0 0 8px;
  color: var(--ab-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.post-type-archive-ab_member .ab-person-body h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.4;
  text-align: center;
}

.post-type-archive-ab_member .ab-person-meta {
  display: grid;
  width: 100%;
  margin: 21px 0 0;
  padding: 0;
  border-top: 1px solid var(--ab-line);
}

.post-type-archive-ab_member .ab-person-meta > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ab-line);
  text-align: left;
}

.post-type-archive-ab_member .ab-person-meta dt,
.post-type-archive-ab_member .ab-person-meta dd {
  margin: 0;
}

.post-type-archive-ab_member .ab-person-meta dt {
  color: var(--ab-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.post-type-archive-ab_member .ab-person-meta dd {
  color: var(--ab-ink);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
}

.post-type-archive-ab_member .ab-person-excerpt {
  margin: 14px 0 0;
  color: var(--ab-muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

.post-type-archive-ab_member .ab-person-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 650;
}

.post-type-archive-ab_member .ab-person-more i {
  font-style: normal;
}

.ab-member-role {
  color: var(--ab-blue) !important;
  font-weight: 600;
}

.ab-member-division {
  margin: -12px 0 8px;
  color: var(--ab-muted);
  font-size: 13px;
  font-weight: 650;
}

.ab-work-detail-client {
  margin: -8px 0 0;
  color: var(--ab-muted);
  font-size: 15px;
  font-weight: 600;
}

.ab-work-detail-lead {
  margin: -12px 0 42px;
  color: var(--ab-muted);
  font-size: 18px;
  line-height: 1.9;
  text-align: center;
}

.ab-single-shell {
  width: min(880px, calc(100% - 40px));
}

.ab-article-head {
  margin-bottom: 44px;
  text-align: center;
}

.ab-article-head h1,
.ab-article > h1 {
  margin: 0 0 20px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.5;
}

.ab-article-type {
  margin: 0 0 12px;
  color: var(--ab-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ab-article-hero {
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 20px;
}

.ab-article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.ab-entry-content {
  font-size: 17px;
  line-height: 2;
}

.ab-entry-content > * + * {
  margin-top: 1.5em;
}

.ab-entry-content h2 {
  margin-top: 2.2em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--ab-blue);
  font-size: 29px;
  line-height: 1.55;
}

.ab-entry-content h3 {
  margin-top: 2em;
  font-size: 23px;
  line-height: 1.6;
}

.ab-entry-content a {
  color: var(--ab-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ab-back-link {
  margin-top: 72px;
  text-align: center;
}

.ab-back-link a {
  display: inline-block;
  min-width: 180px;
  padding: 14px 24px;
  color: #fff;
  text-decoration: none;
  background: var(--ab-blue);
  border-radius: 999px;
}

.navigation.pagination {
  margin-top: 56px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.nav-links .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: var(--ab-ink);
  text-decoration: none;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  place-items: center;
}

.nav-links .current {
  color: #fff;
  background: var(--ab-blue);
  border-color: var(--ab-blue);
}

.ab-empty {
  padding: 64px 24px;
  text-align: center;
  background: var(--ab-pale);
  border-radius: 18px;
}

.ab-home-cms {
  padding: 100px 0;
  background: var(--ab-pale);
}

.ab-home-cms:nth-of-type(even) {
  background: #fff;
}

.ab-home-cms-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ab-home-cms-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.ab-home-cms-head p {
  margin: 8px 0 0;
  color: var(--ab-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ab-home-cms-head a {
  color: var(--ab-blue);
  font-weight: 600;
  text-decoration: none;
}

.ab-contact-form input[type="text"],
.ab-contact-form input[type="email"],
.ab-contact-form input[type="tel"],
.ab-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
}

.ab-form-message {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 10px;
}

.ab-form-message.is-success {
  color: #135a35;
  background: #eaf8f0;
}

.ab-form-message.is-error {
  color: #8e2630;
  background: #fff0f1;
}

.ab-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.site-footer {
  padding: 72px 0 28px;
  color: #fff;
  background: #10182c;
}

.ab-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 1fr;
  gap: 60px;
}

.ab-footer-logo {
  width: min(300px, 100%);
  height: auto;
}

.ab-footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.ab-footer-grid nav a {
  color: #fff;
  text-decoration: none;
}

.ab-footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

  .post-type-archive-ab_member .ab-person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ab-cms-shell {
    width: min(100% - 28px, 1120px);
    padding: 56px 0 80px;
  }

  .ab-card-grid,
  .ab-footer-grid {
    grid-template-columns: 1fr;
  }

  .post-type-archive-ab_member .ab-person-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .post-type-archive-ab_member .ab-person-card-link {
    padding: 28px 22px 26px;
  }

  .post-type-archive-ab_member .ab-person-photo {
    width: min(56vw, 190px);
  }

  .ab-home-cms {
    padding: 72px 0;
  }

  .ab-home-cms-head {
    display: block;
  }

  .ab-home-cms-head > a {
    display: inline-block;
    margin-top: 18px;
  }

  .ab-entry-content {
    font-size: 16px;
  }
}
