body {
  background: #f3ebe3 !important;
  color: #3f342c;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}

.header-container,
.container,
.article,
.footer {
  background-color: #fffaf4;
}

.entry-content a,
.menu-header a,
.menu-drawer a,
.lead-footer-cta a,
.lead-phone {
  color: #7d4e34;
}

.lead-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 4px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #7d4e34;
  color: #fffaf4 !important;
  font-weight: 600;
  text-decoration: none;
}

.header-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lead-menu-cta a {
  background: transparent;
}

.menu-drawer .lead-menu-cta a,
.menu-drawer .lead-menu-cta .item-label {
  color: #7d4e34 !important;
  font-weight: 600;
}

.lead-footer-cta {
  margin: 0 0 8px;
}

.lead-footer-cta a {
  display: inline-block;
  margin: 0 12px 8px 0;
  color: #7d4e34;
  font-weight: 600;
  text-decoration: underline;
}

.lead-hero-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}

.lead-sub {
  margin-top: 8px;
}

.lead-btn,
button.lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #7d4e34;
  color: #fffaf4 !important;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #7d4e34;
  cursor: pointer;
  font-size: 16px;
}

.lead-btn-ghost {
  background: #fffaf4;
  color: #7d4e34 !important;
}

.lead-block {
  margin: 28px 0;
  padding: 8px 0 0;
}

.lead-block h2 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

.lead-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lead-cards li {
  background: #f6f1e6;
  border-radius: 18px;
  padding: 16px 16px;
  margin: 0;
}

.lead-cards h3,
.lead-steps h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.lead-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: leadstep;
}

.lead-steps > li {
  counter-increment: leadstep;
  position: relative;
  padding: 0 0 4px 56px;
  margin: 0 0 14px;
}

.lead-steps > li::before {
  content: counter(leadstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7d4e34;
  color: #fffaf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.lead-faq details {
  border-top: 1px solid #eadfce;
  padding: 12px 0;
}

.lead-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.lead-todo {
  background: #fff7cc;
  border: 1px dashed #954e2a;
  border-radius: 10px;
  padding: 12px 14px;
}

.lead-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #f6f1e6;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.lead-next p {
  margin: 0;
  flex: 1 1 220px;
}

.lead-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 14px;
}

.lead-hint {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #9bb0cc;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

.lead-form textarea {
  min-height: 140px;
}

.lead-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}

.lead-check input {
  margin-top: 4px;
}

.lead-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-phone {
  font-weight: 700;
}

.lead-sticky {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  display: flex;
  gap: 8px;
}

.lead-sticky-phone {
  display: none;
}

.lead-sticky-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #7d4e34;
  color: #fffaf4 !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.lead-sticky-label-mobile {
  display: none;
}

.lead-sticky-menu {
  display: none;
}

.lead-plain {
  margin: 0;
  background: #f3ebe3;
  color: #3f342c;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}

.lead-plain-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 80px;
  background: #fffaf4;
  min-height: 100vh;
  box-sizing: border-box;
}

.lead-error {
  background: #fdf2f2;
  border-radius: 10px;
  padding: 10px 12px;
}

.lead-admin-list {
  list-style: none;
  padding: 0;
}

.lead-admin-list li {
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .article .entry-content,
  .article .entry-content p,
  .article .entry-content li,
  .lead-sub,
  .lead-next p,
  .lead-plain,
  .lead-plain p,
  .lead-plain li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .article h1.entry-title {
    font-size: 1.55rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px;
  }

  .article .entry-content h2,
  .lead-block h2,
  .lead-plain h2 {
    font-size: 1.28rem !important;
    line-height: 1.45 !important;
    margin: 1.3em 0 0.7em;
  }

  .article .entry-content h3,
  .lead-cards h3,
  .lead-steps h3,
  .lead-plain h3 {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
  }

  .entry-content,
  .content,
  .content-in,
  .main,
  .wrap,
  .article {
    max-width: 100%;
  }

  .entry-content img,
  .article img,
  figure {
    max-width: 100%;
    height: auto;
  }

  .wp-block-table {
    margin-left: 0;
    margin-right: 0;
  }

  .wp-block-table table,
  .wp-block-table thead,
  .wp-block-table tbody,
  .wp-block-table tr,
  .wp-block-table th,
  .wp-block-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    word-break: break-word;
  }

  .wp-block-table thead {
    display: none;
  }

  .lead-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-cards li {
    padding: 16px;
  }

  .lead-steps > li {
    margin-bottom: 18px;
    padding-bottom: 8px;
  }

  .lead-faq summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.5;
    padding: 8px 0;
  }

  .lead-hero-actions,
  .lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lead-hero-actions .lead-btn,
  .lead-actions .lead-btn,
  .lead-next .lead-btn {
    width: 100%;
  }

  .lead-form input[type="text"],
  .lead-form input[type="tel"],
  .lead-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .lead-form textarea {
    min-height: 140px;
  }

  .lead-check {
    font-size: 16px;
    line-height: 1.6;
  }

  .lead-check input {
    width: 22px;
    height: 22px;
    flex: none;
  }

  .lead-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .menu-drawer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
  }

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

  main.main {
    margin: 0 !important;
    padding: 12px 16px 0 !important;
    box-sizing: border-box;
  }

  .article .entry-title,
  .article h2,
  .article h3,
  .article h4,
  .article h5,
  .article h6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .entry-content h1.wp-block-heading {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .lead-form {
    margin-bottom: 24px;
  }
}

.photo-slot {
  margin: 4px 0 16px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #efe4d6;
  line-height: 0;
}

.photo-slot.is-empty {
  display: none;
}

.photo-hero {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
}

.photo-staff {
  width: min(220px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 0 14px;
}

#tantou {
  overflow: hidden;
}

.photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

@media (min-width: 769px) {
  .photo-staff {
    float: right;
    width: 220px;
    margin: 0 0 12px 20px;
  }
}

@media (max-width: 1023px) {
  .mobile-footer-menu-buttons {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    pointer-events: none;
  }

  .mobile-footer-menu-buttons .home-menu-button,
  .mobile-footer-menu-buttons .top-menu-button,
  #navi-menu-open {
    display: none !important;
  }

  .mobile-footer-menu-buttons .menu-content,
  .mobile-footer-menu-buttons .menu-close-button,
  #navi-menu-close {
    pointer-events: auto;
  }

  .navi-menu-content .menu-drawer {
    padding-bottom: 120px;
  }

  body.mblt-footer-mobile-buttons,
  body.mblt-header-and-footer-mobile-buttons {
    margin-bottom: 0 !important;
  }

  .lead-sticky {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fffaf4;
    border-top: 1px solid #eadfce;
    gap: 8px;
  }

  .lead-sticky-menu {
    display: inline-flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 48px;
    padding: 6px 4px;
    border-radius: 14px;
    border: 2px solid #eadfce;
    background: #fffaf4;
    color: #3e342c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
  }

  .lead-sticky-phone,
  .lead-sticky-form {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
  }

  .lead-sticky-phone {
    background: #fffaf4;
    color: #7d4e34 !important;
    border: 2px solid #7d4e34;
  }

  .lead-sticky-form {
    background: #7d4e34;
    color: #fffaf4 !important;
    border: 2px solid #7d4e34;
  }

  .lead-sticky-label-desk {
    display: none;
  }

  .lead-sticky-label-mobile {
    display: inline;
  }

  body {
    padding-bottom: 104px !important;
  }
}
