@charset "UTF-8";

html,
body {
  min-width: 0 !important;
}

#contents_bg {
  min-width: 0 !important;
}

#contents {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px;
  margin-inline: auto !important;
}

.ff-shell,
.ff-shell * {
  box-sizing: border-box;
}

.ff-shell {
  width: 100%;
  color: #30343b;
  font-family: "M PLUS 1p", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.ff-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 20px;
  color: #626a73;
  font-size: 0.875rem;
}

.ff-breadcrumb a,
.ff-switch a,
.ff-success a,
.ff-actions a {
  color: #8a4f16;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ff-card {
  overflow: hidden;
  border: 1px solid #e0d5c8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(65, 45, 22, 0.08);
}

.ff-card__header {
  padding: 34px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid #eadfd4;
  background: linear-gradient(135deg, #fffaf3 0%, #f7ede0 100%);
  text-align: left;
}

.ff-card__header h1 {
  margin: 0 0 12px;
  color: #4d2e17;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.35;
}

.ff-card__header p {
  max-width: 800px;
  margin: 0 0 10px;
}

.ff-eyebrow {
  color: #9a5c18;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ff-switch {
  margin-top: 16px !important;
}

.ff-form,
.ff-success,
.ff-error-summary {
  margin: 0;
  padding: 32px clamp(20px, 5vw, 64px);
}

.ff-error-summary {
  margin: 28px clamp(20px, 5vw, 64px) 0;
  padding: 20px 24px;
  border: 2px solid #b3261e;
  border-radius: 10px;
  background: #fff7f6;
  color: #721c18;
}

.ff-error-summary h2,
.ff-success h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.ff-error-summary ul {
  margin: 0;
  padding-left: 1.4em;
}

.ff-error-summary a {
  color: inherit;
  text-decoration: underline;
}

.ff-success {
  border-left: 7px solid #347a47;
  background: #f3fbf5;
}

.ff-required-note {
  margin: 0 0 20px;
  text-align: right;
}

.ff-required,
.ff-optional {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.08em;
}

.ff-required {
  background: #a22f27;
  color: #fff;
}

.ff-optional {
  background: #e7e9ec;
  color: #525861;
}

.ff-section {
  min-width: 0;
  margin: 0 0 30px;
  padding: 26px;
  border: 1px solid #ded7ce;
  border-radius: 12px;
  background: #fff;
}

.ff-section legend {
  padding: 0 10px;
  color: #58361e;
  font-size: 1.2rem;
  font-weight: 700;
}

.ff-grid {
  display: grid;
  gap: 22px;
}

.ff-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ff-field {
  min-width: 0;
  margin-bottom: 22px;
}

.ff-field:last-child {
  margin-bottom: 0;
}

.ff-field > label {
  display: block;
  margin-bottom: 7px;
  color: #33373d;
  font-weight: 700;
}

.ff-form input[type="text"],
.ff-form input[type="tel"],
.ff-form input[type="email"],
.ff-form input[type="date"],
.ff-form input[type="number"],
.ff-form select,
.ff-form textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #8b929a;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  font: inherit;
  line-height: 1.5;
}

.ff-form textarea {
  min-height: 150px;
  resize: vertical;
}

.ff-form input:focus,
.ff-form select:focus,
.ff-form textarea:focus {
  border-color: #7c4615;
  outline: 3px solid rgba(174, 111, 44, 0.25);
  outline-offset: 1px;
}

.ff-form [aria-invalid="true"] {
  border-color: #b3261e !important;
  background: #fff8f7 !important;
}

.ff-help,
.ff-calendar-note {
  margin: 7px 0 0;
  color: #5f6670;
  font-size: 0.875rem;
}

.ff-fixed-value {
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9c1b8;
  border-radius: 6px;
  background: #f4f1ed;
  color: #30343b;
  font-weight: 700;
}

.ff-confirm-list,
.ff-receipt {
  margin: 0 0 28px;
  border-top: 1px solid #dcd6ce;
}

.ff-confirm-list > div,
.ff-receipt > div {
  display: grid;
  grid-template-columns: minmax(150px, 28%) 1fr;
  border-bottom: 1px solid #dcd6ce;
}

.ff-confirm-list dt,
.ff-confirm-list dd,
.ff-receipt dt,
.ff-receipt dd {
  margin: 0;
  padding: 13px 15px;
}

.ff-confirm-list dt,
.ff-receipt dt {
  background: #f4f1ed;
  font-weight: 700;
}

.ff-confirm-list dd,
.ff-receipt dd {
  overflow-wrap: anywhere;
  white-space: normal;
}

.ff-confirm-actions {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.ff-confirm-actions form {
  width: min(100%, 520px);
  margin: 0;
}

.ff-back {
  width: 100%;
  min-height: 48px;
  border: 1px solid #666;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.ff-calendar-note {
  padding: 10px 12px;
  border-left: 4px solid #b7762d;
  background: #fff8ee;
  color: #594323;
}

.ff-field-error {
  margin: 7px 0 0;
  color: #a12620;
  font-weight: 700;
}

.ff-consent {
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: 9px;
  background: #f4f4f2;
}

.ff-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 700;
}

.ff-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
}

.ff-actions {
  text-align: center;
}

.ff-submit {
  width: min(100%, 520px);
  min-height: 58px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: #8b4d16;
  box-shadow: 0 5px 0 #5f330e;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
}

.ff-submit:hover {
  background: #713b0f;
}

.ff-submit:focus-visible {
  outline: 4px solid rgba(139, 77, 22, 0.35);
  outline-offset: 4px;
}

.ff-submit:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: 0.65;
}

.ff-actions p {
  margin: 16px 0 0;
}

.ff-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Keep the inherited desktop chrome inside the viewport on form pages. */
#header_bg1,
#header_bg,
#gnav_n,
#gnav_n #menu,
#title_bg {
  box-sizing: border-box;
  max-width: 100%;
}

#title_bg img,
.footer_copy_n img {
  max-width: 100%;
  height: auto;
}

.footer_copy_n {
  box-sizing: border-box;
  max-width: 100%;
}

.footer_n,
.footer_n > .clear_fix {
  box-sizing: border-box;
  width: 100%;
  max-width: 1300px;
}

.footer_link_bg_n {
  box-sizing: border-box;
  width: calc(100% - 520px);
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer_line {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

.footer_link1_n2,
.footer_link2_n2,
.footer_link3_n2,
.footer_link4_n2 {
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .footer_n {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer_logo_n,
  .footer_link_bg_n {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .footer_link_bg_n {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #header_bg1,
  #header_bg,
  #gnav_n,
  #gnav_bg,
  .footer_n,
  .footer_bg_n,
  .top_contact,
  .top_contact_bg,
  #title_bg,
  #title_bg2 {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #header_bg img,
  #title_bg img,
  .footer_n img,
  .top_contact img {
    max-width: 100% !important;
    height: auto !important;
  }

  #logo,
  #tel_bg,
  #mail_bnr,
  #line_bnr,
  #tel_bnr,
  .footer_logo_n,
  .footer_link_bg_n,
  .footer_link1_n,
  .footer_link2_n,
  .footer_link3_n,
  .footer_link4_n,
  .footer_link1_n2,
  .footer_link2_n2,
  .footer_link3_n2,
  .footer_link4_n2,
  .top_contact_box1,
  .top_contact_box2 {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #gnav_n li,
  .footer_n li {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  #gnav_n ul,
  .footer_n .clear_fix,
  .top_contact {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .footer_link_bg_n {
    display: block !important;
  }

  /* The shared desktop header is fixed and absolutely positions all three
     contact banners. Reflow that same markup into normal document flow on
     small screens so the form remains reachable and operable. */
  #header_fix_n {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    height: auto !important;
  }

  #header_bg2,
  #header_bg1,
  #header_bg {
    height: auto !important;
  }

  #header_bg {
    display: block !important;
    overflow: visible !important;
  }

  #logo {
    height: auto !important;
    padding: 8px 10px !important;
    text-align: center !important;
  }

  #logo img {
    width: min(100%, 360px) !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  #header_text_bg {
    display: none !important;
  }

  #tel_bg {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    height: auto !important;
    padding: 0 6px 8px !important;
  }

  #line_bnr,
  #mail_bnr,
  #tel_bnr {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  #line_bnr img,
  #mail_bnr img,
  #tel_bnr img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  #gnav_bg,
  #gnav_n {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
  }

  #gnav_bg {
    padding: 5px !important;
  }

  #gnav_n #menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #gnav_n #menu > li {
    position: static !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    border: 1px solid #e1def1 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  #gnav_n .submenu {
    display: none !important;
  }

  #title_bg2,
  #title_bg {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }

  #title_bg img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  #contents {
    width: min(100% - 20px, 1120px) !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  .ff-shell {
    font-size: 15px;
  }

  .ff-card {
    border-radius: 9px;
  }

  .ff-card__header,
  .ff-form,
  .ff-success {
    padding: 24px 16px;
  }

  .ff-error-summary {
    margin: 20px 16px 0;
    padding: 16px;
  }

  .ff-grid--2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ff-section {
    padding: 20px 14px;
  }

  .ff-required-note {
    text-align: left;
  }

  .ff-submit {
    width: 100%;
  }

  .ff-confirm-list > div,
  .ff-receipt > div {
    grid-template-columns: 1fr;
  }

  .ff-confirm-list dt,
  .ff-receipt dt {
    padding-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-shell * {
    scroll-behavior: auto !important;
  }
}
