:root {
  --gl-teal: #173e3b;
  --gl-ink: #1d2729;
  --gl-brass: #b28a4a;
  --gl-ivory: #f6f3ec;
  --gl-sage: #e7ece8;
  --gl-border: #d5d0c7;
  --gl-text: #202426;
  --gl-muted: #62696a;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--gl-text);
  background: var(--gl-ivory);
  text-rendering: optimizeLegibility;
}

.wp-site-blocks {
  padding: 0;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gl-brass);
  outline-offset: 3px;
}

.gl-skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  border-radius: 6px;
  background: #fff;
  color: var(--gl-teal);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(29, 39, 41, 0.18);
}

.gl-skip-link:focus {
  transform: translateY(0);
}

.gl-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--gl-border);
  background: rgba(246, 243, 236, 0.96);
  backdrop-filter: blur(12px);
}

.gl-site-header__inner,
.gl-site-footer__inner {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}

.gl-site-header__inner {
  min-height: 6rem;
}

.gl-brand {
  min-width: 15rem;
}

.gl-brand p {
  margin: 0;
  color: var(--gl-teal);
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.55;
}

.gl-site-header .wp-block-navigation-item__content {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.gl-header-cta .wp-block-button__link,
.gl-primary-button .wp-block-button__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gl-hero,
.gl-page-hero {
  border-bottom: 1px solid var(--gl-border);
}

.gl-hero {
  background: linear-gradient(90deg, var(--gl-ivory) 0 58%, var(--gl-sage) 58% 100%);
}

.gl-page-hero {
  background: var(--gl-sage);
}

.gl-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.gl-section--white {
  background: #fff;
}

.gl-section--teal {
  background: var(--gl-teal);
  color: #fff;
}

.gl-section--teal :where(h2, h3, p, a) {
  color: #fff;
}

.gl-eyebrow {
  margin-bottom: 1rem;
  color: #7b5a2c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gl-eyebrow::before {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--gl-brass);
  content: "";
}

.gl-hero__title {
  max-width: 12em;
  margin-block: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.gl-page-hero h1 {
  max-width: 16em;
  margin-block: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.gl-lead {
  max-width: 44rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.gl-profile-image img,
.gl-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 16px 56px 16px;
}

.gl-profile-image img {
  aspect-ratio: 4 / 5;
}

.gl-hero-image img {
  aspect-ratio: 4 / 3;
}

.gl-card {
  height: 100%;
  border: 1px solid var(--gl-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.gl-card > .wp-block-group__inner-container,
.gl-card {
  box-sizing: border-box;
}

.is-style-groove-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--gl-border);
  border-radius: 12px;
  background: #fff;
}

.is-style-groove-role-note {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid var(--gl-brass);
  border-radius: 8px;
  background: #eeeae2;
}

.gl-role-note {
  border-left: 4px solid var(--gl-brass);
  border-radius: 8px;
  background: #eeeae2;
}

.gl-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--gl-teal);
  color: #fff;
}

.gl-cta :where(h2, p) {
  color: #fff;
}

.gl-cta .wp-block-button__link {
  min-height: 52px;
  background: #fff;
  color: var(--gl-teal);
}

.gl-site-footer {
  background: var(--gl-ink);
  color: #fff;
}

.gl-site-footer :where(p, a, h2, h3) {
  color: #fff;
}

.gl-site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.gl-breadcrumbs {
  font-size: 0.875rem;
}

.gl-query-card .wp-block-post-title a {
  text-decoration: none;
}

.gl-query-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gl-query-card {
  height: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid var(--gl-border);
  border-radius: 12px;
  background: #fff;
}

.gl-faq-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--gl-border);
}

.gl-faq-item:first-child {
  border-top: 1px solid var(--gl-border);
}

.gl-faq-item .wp-block-post-title {
  margin-top: 0;
}

.gl-meta-label {
  color: #7b5a2c;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wp-block-group.gl-mobile-actions {
  display: none !important;
}

.gl-price-table {
  width: 100%;
  border-collapse: collapse;
}

.gl-price-table th,
.gl-price-table td {
  padding: 1rem;
  border: 1px solid var(--gl-border);
  text-align: left;
  vertical-align: top;
}

.gl-price-table th {
  background: var(--gl-sage);
  color: var(--gl-teal);
}

.gl-office-table table {
  width: 100%;
  border-collapse: collapse;
}

.gl-office-table th,
.gl-office-table td {
  padding: 1rem;
  border: 1px solid var(--gl-border);
  text-align: left;
  vertical-align: top;
}

.gl-office-table th {
  width: 12rem;
  background: var(--gl-sage);
  color: var(--gl-teal);
}

@media (max-width: 781px) {
  body {
    font-size: 1rem;
  }

  .gl-site-header__inner,
  .gl-site-footer__inner {
    width: min(100% - 2rem, 1200px);
  }

  .gl-site-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 5.75rem;
  }

  .gl-brand {
    min-width: 0;
  }

  .gl-brand p {
    font-size: 1rem;
    white-space: nowrap;
  }

  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

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

  .gl-hero {
    background: var(--gl-ivory);
  }

  .gl-hero__content {
    order: 1;
  }

  .gl-hero__media {
    order: 2;
  }

  .gl-section {
    padding-block: 4rem;
  }

  .gl-price-table thead {
    display: none;
  }

  .gl-price-table,
  .gl-price-table tbody,
  .gl-price-table tr,
  .gl-price-table td {
    display: block;
    width: 100%;
  }

  .gl-price-table td::before {
    display: block;
    margin-bottom: 0.25rem;
    color: #7b5a2c;
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .gl-price-table td:nth-child(1)::before {
    content: "業務";
  }

  .gl-price-table td:nth-child(2)::before {
    content: "報酬";
  }

  .gl-price-table td:nth-child(3)::before {
    content: "確認事項";
  }

  .gl-price-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--gl-border);
    border-radius: 10px;
    overflow: hidden;
  }

  .gl-price-table td {
    box-sizing: border-box;
    border-width: 0 0 1px;
  }

  .gl-price-table td:last-child {
    border-bottom: 0;
  }

  .gl-office-table table,
  .gl-office-table tbody,
  .gl-office-table tr,
  .gl-office-table th,
  .gl-office-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .gl-office-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--gl-border);
    border-radius: 10px;
    overflow: hidden;
  }

  .gl-office-table th,
  .gl-office-table td {
    border-width: 0 0 1px;
  }

  .gl-office-table td {
    border-bottom: 0;
  }

  .gl-query-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .gl-site-footer {
    padding-bottom: 4.5rem !important;
  }

  .wp-block-group.gl-mobile-actions {
    position: fixed;
    z-index: 200;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 4.5rem;
    margin: 0;
    border-top: 1px solid var(--gl-border);
    background: #fff;
    box-shadow: 0 -6px 20px rgba(29, 39, 41, 0.1);
  }

  .gl-mobile-actions p {
    min-width: 0;
    margin: 0;
  }

  .gl-mobile-actions a {
    display: flex;
    width: 100%;
    min-height: 4.5rem;
    align-items: center;
    justify-content: center;
    color: var(--gl-teal);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
  }

  .gl-mobile-actions p:nth-child(2) a {
    background: var(--gl-teal);
    color: #fff;
  }
}

.gl-contact-form {
  max-width: 48rem;
}

.gl-contact-form p,
.gl-contact-form fieldset {
  margin: 0 0 1.5rem;
}

.gl-contact-form fieldset {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gl-border);
  border-radius: 10px;
}

.gl-contact-form legend,
.gl-contact-form label {
  color: var(--gl-ink);
  font-weight: 700;
}

.gl-contact-form input[type="text"],
.gl-contact-form input[type="email"],
.gl-contact-form input[type="tel"],
.gl-contact-form select,
.gl-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #697575;
  border-radius: 6px;
  background: #fff;
  color: var(--gl-text);
  font: inherit;
}

.gl-contact-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.gl-contact-form .wpcf7-list-item {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 0 1.25rem 0 0;
}

.gl-contact-form input[type="checkbox"],
.gl-contact-form input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.45rem;
}

.gl-contact-required,
.gl-contact-optional {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.gl-contact-required {
  background: var(--gl-teal);
  color: #fff;
}

.gl-contact-optional {
  background: var(--gl-sage);
  color: var(--gl-ink);
}

.gl-contact-note,
.gl-contact-warning {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
}

.gl-contact-warning {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--gl-brass);
  background: var(--gl-ivory);
}

.gl-contact-form input[type="submit"] {
  min-width: 12rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gl-teal);
  border-radius: 999px;
  background: var(--gl-teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gl-contact-form input[type="submit"]:hover {
  background: #fff;
  color: var(--gl-teal);
}

/* Keep Contact Form 7 controls usable if its inner wrapper class changes. */
.gl-contact-form-section .wpcf7-form input[type="text"],
.gl-contact-form-section .wpcf7-form input[type="email"],
.gl-contact-form-section .wpcf7-form input[type="tel"],
.gl-contact-form-section .wpcf7-form select,
.gl-contact-form-section .wpcf7-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--gl-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gl-text);
  font: inherit;
}

.gl-contact-form-section .wpcf7-form input[type="submit"] {
  min-width: 12rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gl-teal);
  border-radius: 999px;
  background: var(--gl-teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gl-contact-form-section .wpcf7-form input[type="submit"]:not(:disabled):hover {
  background: #fff;
  color: var(--gl-teal);
}

.gl-contact-form-section .wpcf7-list-item,
.gl-contact-form-section .wpcf7-list-item label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.gl-contact-form-section .wpcf7-list-item label {
  gap: 0.45rem;
  cursor: pointer;
}

.gl-contact-form-section .wpcf7-list-item input[type="checkbox"],
.gl-contact-form-section .wpcf7-list-item input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

@media (max-width: 781px) {
  .gl-contact-form-section .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

.gl-contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.gl-contact-details {
  border-top: 1px solid var(--wp--preset--color--sage-gray);
  margin-block-start: clamp(3rem, 6vw, 5rem);
  padding-block-start: clamp(2rem, 4vw, 3rem);
}

.gl-contact-details .wp-block-list {
  max-width: 50rem;
}

.gl-contact-details li {
  margin-block: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
