:root {
  --remake-green: #16845b;
  --remake-green-dark: #0d5f42;
  --remake-green-soft: #eaf6f1;
  --remake-mint: #65b891;
  --remake-ink: #1a2b2b;
  --remake-muted: #667776;
  --remake-line: #dfe9e5;
  --remake-bg: #f7faf8;
  --remake-container: 1140px;
  --remake-wide: 1320px;
  --remake-gutter: 1.5rem;
}

body {
  color: var(--remake-ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

.site-main {
  margin-top: 0;
}

.admin-bar .site-header.sticky-top {
  top: 32px;
}

a {
  color: var(--remake-green-dark);
}

.remake-page-content > :where(:not(.alignfull)) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--remake-container);
  padding-left: var(--remake-gutter);
  padding-right: var(--remake-gutter);
}

.remake-page-content > .alignfull {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

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

.remake-page-content > .wp-block-group.alignfull,
.remake-page-content > .wp-block-cover.alignfull {
  margin-bottom: 0;
  margin-top: 0;
}

.remake-page-content > .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--remake-wide);
  padding-left: var(--remake-gutter);
  padding-right: var(--remake-gutter);
}

.remake-page-content > .wp-block-group.alignfull > :where(:not(.alignfull):not(.alignwide)),
.remake-page-content > .wp-block-cover.alignfull .wp-block-cover__inner-container > :where(:not(.alignfull):not(.alignwide)) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--remake-container);
  padding-left: var(--remake-gutter);
  padding-right: var(--remake-gutter);
}

.remake-page-content > .wp-block-group.alignfull > .alignwide,
.remake-page-content > .wp-block-cover.alignfull .wp-block-cover__inner-container > .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--remake-wide);
  padding-left: var(--remake-gutter);
  padding-right: var(--remake-gutter);
}

.remake-page-content > .wp-block-group.alignfull > .wp-block-columns {
  width: min(100% - (var(--remake-gutter) * 2), var(--remake-container));
}

.remake-page-content > .wp-block-group.alignfull > .wp-block-table {
  width: min(100% - (var(--remake-gutter) * 2), var(--remake-container));
}

.post-type-archive-remake_work .page-hero > .container,
.post-type-archive-remake_work .section > .container,
.tax-remake_work_type .page-hero > .container,
.tax-remake_work_type .section > .container,
.single-remake_work .page-hero > .container,
.single-remake_work .section > .container {
  max-width: var(--remake-container);
  padding-left: var(--remake-gutter);
  padding-right: var(--remake-gutter);
  width: 100%;
}

.site-header .navbar {
  min-height: 76px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--remake-green), var(--remake-mint));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: .02em;
  width: 42px;
}

.brand-mark-light {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
}

.custom-logo {
  height: auto;
  max-height: 48px;
  width: auto;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  color: var(--remake-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--remake-green-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.navbar-nav .nav-link {
  color: var(--remake-ink);
  font-weight: 700;
}

.navbar-nav .nav-link:hover {
  color: var(--remake-green-dark);
}

.nav-cta {
  background: var(--remake-green);
  border-radius: 999px;
  color: #fff !important;
  padding: .6rem 1rem !important;
}

.hero {
  background: var(--remake-bg);
  min-height: calc(100vh - 76px);
  position: relative;
}

.hero-slide {
  min-height: calc(100vh - 76px);
  position: relative;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(7, 39, 28, .78) 0%, rgba(7, 39, 28, .52) 42%, rgba(7, 39, 28, .12) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-img {
  height: calc(100vh - 76px);
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-content {
  color: #fff;
  max-width: 720px;
  padding: 8rem 0 7rem;
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  color: var(--remake-green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: .7rem;
  text-transform: uppercase;
}

.hero-kicker {
  color: #bde9d5;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 1.3rem;
}

.remake-hero-cover {
  min-height: calc(100vh - 76px);
}

.remake-hero-cover .wp-block-cover__inner-container {
  color: #fff;
}

.remake-hero-cover h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 1.3rem;
  max-width: 760px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  margin-bottom: 2rem;
  max-width: 640px;
}

.btn-remake:not(.wp-block-button) {
  background: var(--remake-green);
  border: 1px solid var(--remake-green);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.wp-block-button.btn-remake {
  background: transparent;
  border: 0;
  padding: 0;
}

.wp-block-button.btn-remake .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--remake-green);
  border: 1px solid var(--remake-green);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.btn-remake:not(.wp-block-button):hover {
  background: var(--remake-green-dark);
  border-color: var(--remake-green-dark);
  color: #fff;
}

.wp-block-button.btn-remake .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--remake-green-dark);
  border-color: var(--remake-green-dark);
  color: #fff;
}

.btn-outline-remake {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.btn-outline-remake:hover {
  background: #fff;
  color: var(--remake-green-dark);
}

.remake-hero-cover .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,.75);
  color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 999px;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.remake-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #fff;
  color: var(--remake-green-dark);
}

.section {
  padding: 5.5rem 0;
}

.wp-block-group.section {
  padding-bottom: 5.5rem;
  padding-top: 5.5rem;
}

.section.bg-soft {
  background: var(--remake-bg);
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--remake-muted);
  font-size: 1.06rem;
  max-width: 760px;
}

.service-card,
.content-card,
.work-card {
  background: #fff;
  border: 1px solid var(--remake-line);
  border-radius: 8px;
  overflow: hidden;
}

.contact-panel {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(16, 43, 36, .08);
  overflow: visible;
}

.service-card {
  height: 100%;
}

.service-card img,
.card-img,
.work-card img,
.service-card-image img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.service-card-image {
  margin-bottom: 1.25rem;
}

.service-card-body,
.card-body,
.work-card-body {
  padding: 1.5rem;
}

.service-number {
  color: var(--remake-green);
  font-weight: 900;
  letter-spacing: .08em;
}

.service-card h3,
.card-title,
.work-card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.35;
}

.message-band {
  background: linear-gradient(135deg, var(--remake-green-dark), #183d35);
  color: #fff;
}

.message-band h1,
.message-band h2,
.message-band h3,
.message-band p {
  color: inherit;
}

.message-band .section-kicker,
.message-band .section-lead {
  color: #c9f0df;
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-block-columns.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 1.2rem;
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, var(--remake-green-dark), var(--remake-green));
  color: #fff;
  padding: 6rem 0;
}

.page-hero.compact {
  padding: 4.5rem 0;
}

.post-type-archive-remake_work .page-hero,
.tax-remake_work_type .page-hero,
.single-remake_work .page-hero {
  align-items: center;
  display: flex;
  min-height: 320px;
  padding-bottom: 6rem;
  padding-top: 6rem;
}

.page-hero .section-kicker {
  color: #bde9d5;
}

.page-hero .section-lead {
  color: rgba(255,255,255,.9);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.18;
}

.info-table th {
  color: var(--remake-green-dark);
  font-weight: 800;
  width: 11rem;
}

.wp-block-table.info-table {
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(13, 95, 66, .16);
  margin-bottom: 1.5rem;
}

.wp-block-table.info-table table {
  background: #fff;
  border: 0 !important;
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table.info-table tr,
.wp-block-table.info-table th,
.wp-block-table.info-table td {
  border-left: 0 !important;
  border-right: 0 !important;
}

.wp-block-table.info-table td,
.wp-block-table.info-table th {
  border-bottom: 1px solid rgba(13, 95, 66, .2) !important;
  border-top: 0 !important;
  padding: 1rem;
  vertical-align: top;
}

.wp-block-table.info-table tr:last-child td,
.wp-block-table.info-table tr:last-child th {
  border-bottom: 0 !important;
}

.wp-block-table.info-table td:first-child {
  background: #fff;
  border-left: 4px solid var(--remake-green) !important;
  color: var(--remake-green-dark);
  font-weight: 800;
  width: 11rem;
}

.wp-block-table.info-table tr:nth-child(even) td {
  background: rgba(255,255,255,.72);
}

.wp-block-table.info-table tr:nth-child(even) td:first-child {
  background: #fff;
}

.list-panel {
  background: #fff;
  border: 1px solid var(--remake-line);
  border-radius: 8px;
  padding: 1.5rem;
}

.list-panel li + li {
  border-top: 1px solid var(--remake-line);
  margin-top: .7rem;
  padding-top: .7rem;
}

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

.card-date,
.work-meta,
.small-label {
  color: var(--remake-muted);
  font-size: .9rem;
  font-weight: 700;
}

.taxonomy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.taxonomy-pills a,
.taxonomy-pills span {
  background: var(--remake-green-soft);
  border-radius: 999px;
  color: var(--remake-green-dark);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 800;
  padding: .35rem .75rem;
  text-decoration: none;
}

.before-after {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after figure {
  margin: 0;
}

.before-after img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.contact-panel {
  padding: 2rem;
}

.form-control,
.form-select {
  border-color: var(--remake-line);
  border-radius: 8px;
  min-height: 48px;
}

.contact-panel input[type="text"],
.contact-panel input[type="email"],
.contact-panel input[type="tel"],
.contact-panel input[type="url"],
.contact-panel input[type="number"],
.contact-panel select,
.contact-panel textarea,
.contact-panel .smf-text-control__control,
.contact-panel .smf-textarea-control__control,
.contact-panel .smf-select-control__control {
  border: 1px solid var(--remake-line);
  border-radius: 8px;
  min-height: 48px;
  padding: .65rem .8rem;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--remake-green);
  box-shadow: 0 0 0 .2rem rgba(22, 132, 91, .18);
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
  border-color: var(--remake-green);
  box-shadow: 0 0 0 .2rem rgba(22, 132, 91, .18);
  outline: 0;
}

.contact-panel .smf-item + .smf-item {
  margin-top: 1rem;
}

.contact-panel .smf-item__label {
  font-weight: 700;
}

.contact-panel .smf-button-control__control,
.contact-panel button[type="submit"],
.contact-panel input[type="submit"] {
  background: var(--remake-green);
  border: 1px solid var(--remake-green);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.contact-panel .smf-button-control__control:hover,
.contact-panel button[type="submit"]:hover,
.contact-panel input[type="submit"]:hover {
  background: var(--remake-green-dark);
  border-color: var(--remake-green-dark);
}

.site-footer {
  background: #102b24;
  color: #dce9e3;
}

.footer-brand {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-sub,
.footer-copy,
.footer-bottom {
  color: #b8c9c2;
}

.footer-heading {
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-links li + li {
  margin-top: .5rem;
}

.footer-links a,
.footer-link,
.footer-widget a {
  color: #dce9e3;
  text-decoration: none;
}

.footer-links a:hover,
.footer-link:hover,
.footer-widget a:hover {
  color: #fff;
}

.footer-widget,
.footer-widget p {
  color: #b8c9c2;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}

.narrow {
  max-width: 880px;
}

@media (max-width: 991.98px) {
  .nav-cta {
    display: inline-block;
    margin-top: .5rem;
  }

  .hero,
  .hero-slide,
  .hero-img {
    min-height: 680px;
  }

  .hero-content {
    padding: 6rem 0 5rem;
  }
}

@media (max-width: 767.98px) {
  .site-header .navbar {
    min-height: 68px;
  }

  .brand-title {
    font-size: .95rem;
  }

  .brand-subtitle {
    font-size: .65rem;
  }

  .section {
    padding: 4rem 0;
  }

  .stats,
  .before-after {
    grid-template-columns: 1fr;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: 0;
    padding-bottom: .2rem;
  }
}
