/* Layout and component styles from the approved r2 build. */
.gv-root,
.gf-panel {
  --ink: #292821;
  --orange: #d64a0c;
  --soft: #fff5e9;
  --line: #dfdfd6;
  color: var(--ink);
  font-family: var(--font-noto), sans-serif;
}
.gv-main {
  width: min(1192px, 90%);
  margin: auto;
}
.gv-bread {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #68665e;
  padding: 22px 0;
}
.gv-bread a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gf-kicker{
  font:
    700 11px/1.5 var(--font-plex),
    Arial,
    sans-serif;
  letter-spacing: 0.13em;
}
.gf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ac431d;
}
.gf-kicker i {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #ed5719;
}
.gv-inlinehead p {
  font-size: 15px;
  line-height: 1.95;
  margin: 17px 0;
  color: #4d4c44;
}
.gf-primary {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--orange);
  border-radius: 8px;
  min-height: 52px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}
.gv-meta,
.gf-nav,
.gf-head,
.gc-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gv-other h2 {
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.035em;
  margin: 6px 0 0;
}
.gv-other p{
  font-size: 13px;
  line-height: 1.8;
  color: #656157;
}
.gv-other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.gv-meta,
.gv-other a{
  display: flex;
  gap: 9px;
  align-items: center;
}
.gv-other {
  padding: 42px 0;
}
.gv-other > div:last-child {
  display: grid;
  gap: 8px;
}
.gv-other a {
  font-weight: 650;
  min-height: 45px;
}
.gv-other a > svg:first-child {
  color: var(--orange);
  width: 19px;
}
.gv-other a small {
  font: 500 14px var(--font-plex);
}
.gv-meta {
  font-size: 12px;
  padding: 18px 0;
  color: #6a675f;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.gv-meta span {
  margin-left: auto;
  letter-spacing: 0.14em;
}
.gv-inlinehead {
  padding: 8px 0 22px;
}
.gv-inlinehead h1 {
  font-size: 34px;
  margin: 7px 0;
  line-height: 1.45;
}
.gv-inlinehead p {
  margin: 6px 0;
}
.gv-inline {
  max-width: 780px;
  margin: auto;
  scroll-margin: 15px;
}
.gf-dialog {
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 18px;
  width: min(616px, 95vw);
  max-height: 92dvh;
  overscroll-behavior: contain;
  color: var(--ink);
}
.gf-dialog[open] {
  animation: gf-enter 0.18s ease-out;
}
.gf-dialog::backdrop {
  background: #24221c78;
}
.gf-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gf-head {
  justify-content: flex-start;
  min-height: 58px;
  background: #faf9f6;
  border-bottom: 1px solid var(--line);
  padding: 8px 24px;
}
.gf-head b {
  font-size: 15px;
}
.gf-x {
  margin-left: auto;
}
.gf-panel button {
  cursor: pointer;
}
.gf-panel button:disabled {
  cursor: default;
}
.gf-x,
.gc-month button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.gf-body,
.gf-finish {
  padding: 20px 26px 24px;
}
.gf-progress,
.gf-note,
.gf-help {
  font-size: 13px;
  line-height: 1.8;
  color: #625e55;
}
.gf-progress {
  font-weight: 650;
}
.gf-bars {
  display: flex;
  gap: 4px;
  margin: 8px 0 18px;
}
.gf-bars i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e9e6df;
}
.gf-bars i[data-active="true"] {
  background: #de5319;
}
.gf-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  animation: gf-enter 0.18s ease-out;
}
.gv-inlinehead h1 > .gf-phrase {
  display: inline-block;
  max-width: 100%;
  color: inherit;
}
.gf-prompt > div,
.gf-options button > span {
  min-width: 0;
}
.gf-prompt h2,
.gf-finish h2,
.gf-options b,
.gf-options small {
  text-wrap: balance;
  line-break: strict;
  word-break: auto-phrase;
}
.gf-prompt img {
  flex-shrink: 0;
}
.gf-phone-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f6f2;
  font-size: 13px;
  line-height: 1.7;
}
.gf-phone-note svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.gf-phone-note strong {
  font-size: 14px;
}
.gf-phone-note p {
  margin: 3px 0;
}
.gf-phone-note a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
}
.gf-prompt img {
  width: 65px;
  height: 74px;
  object-fit: contain;
}
.gf-prompt h2,
.gf-finish h2 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.035em;
  font-weight: 730;
  margin: 0;
}
.gf-prompt p,
.gf-finish p {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.8;
}
.gf-options,
.gf-topics {
  display: grid;
  gap: 9px;
}
.gf-options button {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
  min-height: 72px;
}
.gf-options svg {
  color: var(--orange);
  flex-shrink: 0;
}
.gf-options button > svg:last-child {
  width: 17px;
  margin-left: auto;
}
.gf-options span {
  display: grid;
  gap: 4px;
}
.gf-options small {
  font-size: 13px;
  color: #625e55;
  line-height: 1.6;
}
.gf-options button:hover,
.gf-check:has(:checked),
.gf-options button[aria-pressed="true"] {
  border-color: #c86532;
  background: #fff5eb;
}
.gf-help {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.gf-help svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.gf-field {
  display: grid;
  gap: 7px;
  font-size: 15px;
  font-weight: 650;
  margin: 14px 0 5px;
}
.gf-field input,
.gf-field textarea {
  width: 100%;
  border: 1px solid #aba99f;
  border-radius: 7px;
  padding: 12px;
  font: 400 16px/1.6 inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}
.gf-field textarea {
  min-height: 90px;
}
.gf-field em {
  font: 600 11px var(--font-noto);
  color: #98360a;
  background: #fff0e7;
  padding: 2px 5px;
}
.gf-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}
.gf-check input {
  width: 18px;
  height: 18px;
  accent-color: #bd420b;
  flex-shrink: 0;
}
.gf-note{
  margin: 9px 0;
}
.gf-error {
  font-size: 14px;
  color: #9b241c;
  margin: 8px 0;
}
.gf-policy,
.gf-finish a:not(.gf-primary) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  color: #99431e;
  font-size: 14px;
}
.gf-primary {
  width: 100%;
  margin-top: 10px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
}
.gf-primary.sending:before,
.gf-primary.sent:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #a0390a;
  transform-origin: left;
  animation: gf-fill 0.6s forwards;
  z-index: -1;
}
.gf-primary.sent:before {
  animation: none;
}
.gf-nav {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
.gf-nav button,
.gc-picked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
}
.gf-reset {
  background: #faf5ed;
  padding: 12px;
}
.gf-reset button {
  min-height: 44px;
  margin-right: 20px;
  text-decoration: underline;
}
.gc-month {
  padding: 0 2px;
}
.gc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.gc-grid b {
  font-size: 13px;
  padding: 7px;
}
.gc-grid button {
  min-height: 44px;
  background: #faf8f3;
  border-radius: 6px;
}
.gc-grid button:disabled,
.gc-month button:disabled {
  background: #f6f6f4;
  color: #9b9993;
}
.gc-grid button[aria-pressed="true"] {
  background: #bf430d;
  color: white;
}
.gc-picked {
  margin-right: 12px;
  color: #933510;
}
.gf-finish {
  text-align: center;
}
.gf-finish img {
  width: 96px;
  margin: auto;
}
.gf-finish .gf-kicker {
  margin: 12px;
}
.gf-finish ol {
  list-style: decimal;
  text-align: left;
  padding: 12px 40px;
  background: var(--soft);
  border-radius: 9px;
  margin: 12px 0;
}
.gf-panel :focus-visible,
.gv-root a:focus-visible {
  outline: 3px solid #296a89;
  outline-offset: 2px;
}
.gf-panel h2:focus {
  outline: none;
}
.gf-panel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.gv-root a:hover {
  opacity: 0.9;
}
@keyframes gf-enter {
  from {
    opacity: 0.3;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gf-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.86);
  }
}
@media (max-width: 760px) {
  .gv-main {
    width: 90%;
  }
  .gv-bread {
    padding: 15px 0;
  }
  .gv-other {
    flex-wrap: wrap;
  }
  .gv-other {
    padding: 28px 0;
  }
  .gf-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 17px 17px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: white;
  }
  .gf-dialog[open] {
    animation: gf-sheet 0.2s ease-out;
  }
  .gf-head {
    padding: 6px 15px;
    min-height: 54px;
  }
  .gf-body,
  .gf-finish {
    padding: 15px;
  }
  .gf-prompt {
    padding: 10px;
    gap: 7px;
  }
  .gf-prompt img {
    width: 46px;
    height: 59px;
  }
  .gf-options button {
    padding: 12px;
    gap: 9px;
  }
  .gf-options b {
    font-size: 15px;
  }
  .gf-nav {
    gap: 4px;
    flex-wrap: wrap;
  }
  .gv-inlinehead h1 {
    font-size: 29px;
  }
  .gv-inlinehead p {
    font-size: 14px;
  }
  .gf-inline .gf-body {
    padding: 12px;
  }
  .gc-grid {
    gap: 1px;
  }
  .gf-check {
    padding: 9px;
  }
  .gf-kicker {
    font-size: 10px;
  }
}
@keyframes gf-sheet {
  from {
    transform: translateY(15%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gf-dialog[open],
  .gf-prompt,
  .gf-primary:before {
    animation: none !important;
  }
}

/* Isolated document and CF7 adapter. */
:where(.jgf-embedded) {
  margin: 0;
  background: white;
  font-size: 14px;
  line-height: 1.9;
  --font-noto: "Noto Sans JP Variable", "Yu Gothic", "Meiryo";
  --font-plex: "IBM Plex Sans", Arial;
}
:where(.jgf-embedded) * { box-sizing: border-box; }
:where(.jgf-embedded) :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
}
:where(.jgf-embedded) :where(a) { color: inherit; }
:where(.jgf-embedded) :where(img) { max-width: 100%; height: auto; }
.jgf-embedded-panel { border: 0; border-radius: 0; }
.jgf-frame-document {
  overflow-anchor: none;
  overscroll-behavior-y: contain;
}
.jgf-dialog[open] {
  --jgf-dialog-height: min(92dvh, max(1px, calc(var(--jgf-viewport-height, 100dvh) - 16px)));
  --jgf-bottom-padding: 0px;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
  top: var(--jgf-viewport-top, 0px);
  bottom: var(--jgf-viewport-bottom, 0px);
  max-height: var(--jgf-dialog-height);
  padding-bottom: var(--jgf-bottom-padding);
}
.jgf-dialog iframe {
  display: block;
  width: 100%;
  height: min(var(--jgf-frame-height, 360px), max(1px, calc(var(--jgf-dialog-height) - var(--jgf-bottom-padding))));
  border: 0;
}
.jgf-dialog-loading { padding: 24px; }
.jgf-dialog-loading[hidden] { display: none; }
.jgf-dialog iframe:not([data-jgf-visible]) { height: 0; visibility: hidden; }
.gf-panel [hidden] { display: none !important; }
.gf-panel .jgf-visually-hidden,
.jgf-embedded .screen-reader-response {
  clip-path: inset(50%);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.gf-panel.jgf-enhanced { display: flex; flex-direction: column; }
.jgf-enhanced .jgf-fallback {
  display: none;
  order: 3;
  padding: 0 26px 12px;
}
.jgf-enhanced.jgf-contact-active .jgf-fallback { display: block; }
.jgf-enhanced :is(.jgf-standard-fields,.jgf-standard-actions,.wpcf7-response-output,.screen-reader-response) {
  display: none;
}
.jgf-enhanced.jgf-contact-active .jgf-fallback:not(:has(.wpcf7-turnstile iframe)) { padding: 0; }
.gf-panel .jgf-turnstile { max-width: 100%; }
.gf-panel .jgf-nojs { background: var(--soft); margin-bottom: 18px; padding: 14px; }
.gf-panel:has(.jgf-nojs) .jgf-standard-actions { display: none; }
.jgf-standard-fields fieldset { margin: 15px 0; }
.jgf-standard-fields fieldset legend { font-weight: 650; }
.jgf-standard-fields select {
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #aba99f;
}
.gv-inline { scroll-margin-top: 94px; }
.gf-finish img { display: block; height: auto; aspect-ratio: 340 / 360; }
.gf-primary svg { flex-shrink: 0; }
.gf-field em { font-style: normal; }
.jgf-embedded[data-jgf-shell="wide"] .gf-head { padding: 8px 24px; min-height: 58px; }
.jgf-embedded[data-jgf-shell="wide"] :is(.gf-body,.gf-finish) { padding: 20px 26px 24px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-kicker { font-size: 11px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-prompt { padding: 15px; gap: 12px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-prompt img { width: 65px; height: 74px; }
.jgf-embedded[data-jgf-shell="wide"] :is(.gf-prompt h2,.gf-finish h2) { font-size: 24px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-options button { padding: 15px; gap: 15px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-options b { font-size: inherit; }
.jgf-embedded[data-jgf-shell="wide"] .gc-grid { gap: 3px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-check { padding: 10px 12px; }
.jgf-embedded[data-jgf-shell="wide"] .gf-nav { flex-wrap: nowrap; }
.jgf-embedded[data-jgf-shell="wide"] .jgf-fallback { padding-inline: 26px; }
.gf-panel [data-jgf-cf7] { display: none; }
.jgf-enhanced.jgf-contact-active [data-jgf-cf7] { display: block; }
.jgf-enhanced [data-jgf-unavailable] { display: none; }
.jgf-unavailable { padding: 18px; background: #fff5e9; border-radius: 9px; }
.jgf-unavailable a { display: inline-block; min-height: 44px; text-decoration: underline; }
.jgf-contact-intro { background: #fff5e9; border-radius: 9px; margin-bottom: 22px; padding: 18px; }
.jgf-contact-intro h2 { margin: 0 0 6px; }
.jgf-contact-intro .cta { margin-top: 12px; }
@media (max-width: 767px) {
  .jgf-dialog[open] {
    --jgf-dialog-height: min(94dvh, var(--jgf-viewport-height, 100dvh));
    --jgf-bottom-padding: env(safe-area-inset-bottom, 0px);
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 17px 17px 0 0;
    animation-name: gf-sheet;
  }
  .jgf-enhanced .jgf-fallback { padding-inline: 15px; }
}
