:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --text: #2a2620;
  --text-muted: #7a746b;
  --accent: #7ca982;
  --accent-hover: #5c8a6e;
  --border: #eae6de;
  --chip-bg: #eef3ec;
  --chip-text: #4a6b53;
  --badge-bg: #ecfdf5;
  --badge-text: #047857;
  --error: #c04a3d;
  --error-bg: #fdecea;
  --success-bg: #edf7ee;
  --success-text: #276a3c;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(42, 38, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(42, 38, 32, 0.06);
  --font-sans: "DM Sans", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tnum {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  flex: 1;
}

@media (min-width: 640px) {
  .page {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 0 32px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(10px);
}

.site-header__inner {
  max-width: 1100px;
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 14px 24px;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 14px 32px;
  }
}

.brand__name {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.brand__tag {
  display: none;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .brand__tag {
    display: block;
  }
}

.tabnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tabnav__item {
  position: relative;
  padding: 8px 2px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease-out;
}

.tabnav__item:hover {
  color: var(--text);
}

.tabnav__item--active {
  color: var(--text);
}

.tabnav__item--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  color: inherit;
  background: transparent;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--secondary:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: var(--chip-bg);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.route-fade {
  animation: routeFade 220ms ease-out both;
}

@keyframes routeFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list-top {
  padding-top: 32px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .list-top {
    padding-top: 40px;
  }
}

.list-heading {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 1024px) {
  .list-heading {
    margin-bottom: 36px;
  }
}

.list-heading__title {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .list-heading__title {
    font-size: 30px;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.case-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow-md);
}

.case-card__media {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
}

@media (min-width: 1024px) {
  .case-card__body {
    padding: 24px 24px 26px;
  }
}

.case-card__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  color: var(--accent);
}

.case-card__metric-number {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.05;
}

.case-card__metric-unit {
  font-size: 17px;
  font-weight: 500;
}

.case-card__metric-suffix {
  color: var(--text-muted);
  font-size: 13px;
}

.case-card__business {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.case-card__meta {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 600;
}

.industry-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #5f7c63;
  background: linear-gradient(135deg, #e8f0e4, #d6e4d4);
}

.industry-art[data-industry="顧客対応"] {
  color: #4f6679;
  background: linear-gradient(135deg, #dfe6ec, #c9d5df);
}

.industry-art[data-industry="建設・工務店"] {
  color: #8c7044;
  background: linear-gradient(135deg, #efe4d0, #e5d6bb);
}

.industry-art[data-industry="士業"] {
  color: #4f6679;
  background: linear-gradient(135deg, #dfe6ec, #c9d5df);
}

.industry-art[data-industry="不動産"] {
  color: #6d8253;
  background: linear-gradient(135deg, #e2e9d4, #ccd9b8);
}

.industry-art[data-industry="書類整理"] {
  color: #8c7044;
  background: linear-gradient(135deg, #efe4d0, #e5d6bb);
}

.industry-art[data-industry="日程調整"] {
  color: #6d8253;
  background: linear-gradient(135deg, #e2e9d4, #ccd9b8);
}

.industry-art::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid currentColor;
  border-radius: 38% 62% 48% 52%;
  opacity: 0.16;
  transform: rotate(-12deg);
}

.industry-art::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.08;
}

.industry-art svg {
  position: relative;
  width: 38%;
  max-width: 88px;
  opacity: 0.58;
  stroke-width: 1.4;
}

.detail {
  padding-top: 28px;
  padding-bottom: 80px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.detail-back svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.detail-hero-art {
  aspect-ratio: 21 / 8;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.detail h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.35;
}

.detail h2 {
  margin: 38px 0 12px;
  font-size: 19px;
  line-height: 1.4;
}

.detail p {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
}

.detail ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text);
  line-height: 1.85;
}

.metric-panel {
  margin: 24px 0 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}

.metric-panel__col {
  padding: 26px;
}

.metric-panel__divider {
  background: var(--border);
}

.metric-panel__label {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.metric-panel__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent);
}

.metric-panel__number {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
}

.metric-panel__unit {
  font-size: 18px;
  font-weight: 500;
}

.metric-panel__basis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.metric-panel__basis-tag {
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metric-panel__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 16px 26px;
  color: var(--text-muted);
  font-size: 14px;
}

.metric-panel__sub-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metric-panel__sub-arrow svg,
.ba-row__arrow svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.metric-panel__sub-after {
  color: var(--accent);
  font-weight: 600;
}

.ba-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.ba-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 84px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.ba-row + .ba-row {
  border-top: 1px solid var(--border);
}

.ba-row__label {
  font-weight: 500;
}

.ba-row__values {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.ba-row__after {
  color: var(--accent);
  font-weight: 600;
}

.ba-row__badge {
  text-align: right;
}

.cta-wrap {
  margin-top: 34px;
  text-align: center;
}

.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.contact h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.4;
}

.contact__lead {
  margin: 0 0 30px;
  color: var(--text-muted);
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.req {
  color: var(--error);
}

.field__input,
.field__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  line-height: 1.6;
}

.field__textarea {
  resize: vertical;
}

.field--error .field__input,
.field--error .field__textarea {
  border-color: var(--error);
  background: #fffafa;
}

.field__error {
  min-height: 18px;
  color: var(--error);
  font-size: 13px;
  line-height: 1.4;
}

.field--hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
}

.form-status--visible {
  display: block;
}

.form-status--error {
  background: var(--error-bg);
  color: var(--error);
}

.form-status--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.success-panel {
  text-align: center;
  padding: 56px 24px;
}

.success-panel__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.success-panel p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

.simple-page {
  padding: 64px 0 80px;
}

.simple-page article {
  max-width: 760px;
}

.simple-page h1 {
  max-width: none;
  font-size: 34px;
}

.simple-page h2 {
  margin-top: 34px;
  font-size: 22px;
}

.simple-page p,
.simple-page li {
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .metric-panel__grid {
    grid-template-columns: 1fr;
  }

  .metric-panel__divider {
    height: 1px;
  }

  .ba-row {
    grid-template-columns: 1fr;
  }

  .ba-row__badge {
    text-align: left;
  }

  .detail-hero-art {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 639px) {
  .site-header__inner {
    min-height: 66px;
  }

  .tabnav {
    gap: 16px;
  }

  .tabnav__item {
    font-size: 14px;
  }

  .case-card__metric-number,
  .metric-panel__number {
    font-size: 42px;
  }

  .submit-wrap .btn,
  .cta-wrap .btn {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 16px;
  }
}
