.inquiry-page {
  --forest: #243e35;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: #fafaf5;
}
.inquiry-page [hidden] { display: none !important; }
.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; }

.inquiry-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 5%; border-bottom: 1px solid var(--line); gap: 20px; }
.back-to-works { font-size: 14px; display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.back-to-works span { font-size: 20px; }
.inquiry-layout { width: min(800px, calc(100% - 64px)); margin: 0 auto; padding-block: 40px 96px; }
.inquiry-intro { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.inquiry-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.5; letter-spacing: .035em; color: var(--forest); }
.intro-description { font-size: 16px; line-height: 1.9; margin-top: 16px; color: #536158; }
.inquiry-content { min-width: 0; padding-top: 24px; }
.inquiry-layout:has(#confirmation:not([hidden])) .intro-description,
.inquiry-layout:has(#completion:not([hidden])) .intro-description { display: none; }

.preview-note { padding: 14px 18px; border-left: 2px solid #a4aa83; background: #efefe6; font-size: 14px; line-height: 1.8; color: #47563b; margin-bottom: 28px; }
.form-steps { list-style: none; display: flex; justify-content: space-between; margin: 0 0 32px; padding: 0; border-bottom: 1px solid var(--line); gap: 24px; }
.form-steps li { font-size: 14px; color: #657168; position: relative; padding: 0 0 16px; flex: 1; white-space: nowrap; }
.form-steps li span { font-family: var(--serif); margin-right: 10px; }
.form-steps li[aria-current] { color: var(--forest); font-weight: 500; }
.form-steps li[aria-current]:after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--forest); left: 0; right: 0; }
.inquiry-content fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section-heading { margin-bottom: 24px; }
.form-section-heading h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.6; }
.form-section-heading > p { font-size: 14px; color: #58665c; margin-top: 8px; }
.form-section-heading.second { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.topic-field legend, .field > label { font-size: 16px; margin-bottom: 12px; display: block; }
.required, .optional { font-size: 12px; letter-spacing: .02em; margin-left: 10px; font-weight: 400; }
.required { color: #4c6540; }
.optional { color: #657168; }
.inquiry-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry-topics label { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #c6d0c3; border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s; }
.inquiry-topics label:hover { background: #f0f3ec; border-color: #8d9e87; }
.inquiry-topics label:has(input:checked) { border-color: #536d59; background: #e9eee5; }
.inquiry-topics input { margin: 5px 0 0; flex: none; accent-color: var(--forest); width: 18px; height: 18px; }
.inquiry-topics span { font-size: 16px; line-height: 1.7; }
.inquiry-topics small { display: block; font-size: 14px; color: #58665c; margin-top: 3px; line-height: 1.7; }
.field { margin-top: 32px; }
.field input, .field textarea { appearance: none; font: inherit; font-size: 16px; color: var(--ink); display: block; width: 100%; border: 1px solid #becabb; background: #fffefa; border-radius: 4px; padding: 14px 16px; line-height: 1.7; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 200px; }
.field-hint { font-size: 14px; color: #58665c; line-height: 1.85; margin: 8px 0 14px; }
.field input + .field-hint { margin-bottom: 0; }
.field input:focus, .field textarea:focus { outline: 2px solid #536d59; outline-offset: 2px; border-color: #536d59; }
.inquiry-content :is(button,input):focus-visible { outline: 2px solid #536d59; outline-offset: 4px; }
.field-error { font-size: 14px; line-height: 1.7; color: #9c392d; margin-top: 8px; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #a54235; }
.topic-field:has([aria-invalid="true"]) .inquiry-topics { outline: 1px solid #a54235; outline-offset: 4px; border-radius: 4px; }
.work-context { border-left: 2px solid #9aaa8e; padding: 14px 18px; margin-top: 28px; background: #eef1e9; }
.work-context > p { font-size: 13px; color: #58664e; }
.work-context > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-context strong { font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }
.work-context button { border: 0; background: transparent; font: inherit; font-size: 14px; text-decoration: underline; color: #4e6047; cursor: pointer; padding: 8px; flex: none; }
.information-use { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.information-use h3 { font-size: 16px; font-weight: 500; }
.information-use > p { font-size: 14px; color: #58665c; line-height: 1.9; margin-top: 10px; }
.information-use a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; margin-top: 24px; cursor: pointer; padding-block: 10px; }
.consent-label input { width: 19px; height: 19px; flex: none; accent-color: var(--forest); margin: 4px 0 0; }
.form-primary { font: inherit; background: var(--forest); color: #fffdf3; border: 1px solid var(--forest); width: 100%; max-width: 360px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; font-size: 16px; border-radius: 4px; cursor: pointer; margin: 32px auto 0; transition: background .2s; }
.form-primary:hover:not(:disabled) { background: #365844; }
.form-primary > span:last-child { font-size: 23px; line-height: 1; }
.form-primary:disabled { cursor: not-allowed; background: #e0e4da; color: #596653; border-color: #c8d1c0; }
.button-note { font-size: 13px; text-align: center; color: #58665c; margin-top: 12px; line-height: 1.8; }
.form-back { font: inherit; font-size: 15px; cursor: pointer; background: transparent; color: var(--forest); border: 0; border-bottom: 1px solid #a6b0a1; margin: 24px auto 0; padding: 10px 0; display: block; }
.form-alert { background: #f6ece4; border-left: 2px solid #af6550; font-size: 14px; line-height: 1.9; padding: 18px; margin-top: 24px; color: #773d2a; }
.confirmation-values { margin: 28px 0 0; }
.confirmation-values > div { border-bottom: 1px solid var(--line); padding: 24px 0; }
.confirmation-values dt { font-size: 14px; color: #58665c; margin-bottom: 10px; }
.confirmation-values dd { font-size: 16px; margin: 0; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.captcha-section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; text-align: center; }
.captcha-section h3 { font-size: 16px; font-weight: 500; }
.captcha-section > p { font-size: 14px; line-height: 1.85; color: #58665c; margin: 10px 0 20px; }
#captcha-widget { display: flex; justify-content: center; }
.captcha-retry { font: inherit; font-size: 14px; border: 0; border-bottom: 1px solid #a6b0a1; background: transparent; color: var(--forest); padding: 10px 0; margin-top: 18px; cursor: pointer; }
.completion-break { display: none; }
.inquiry-content .keep-together { white-space: nowrap; }
.inquiry-content #completion { padding-block: 8px 40px; }
#completion h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.65; }
#completion > p:not(.eyebrow) { font-size: 16px; line-height: 2; margin-top: 24px; }
#completion .line-link { margin-top: 32px; font-size: 15px; }
.inquiry-footer { border-top: 1px solid var(--line); padding: 24px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; color: #58665c; }
.inquiry-footer > span { letter-spacing: .13em; }
.inquiry-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.inquiry-footer a { display: inline-flex; align-items: center; gap: 16px; padding-block: 10px; }

@media (max-width: 600px) {
  .completion-break { display: block; }
  .inquiry-header { padding: 18px 20px; gap: 16px; }
  .inquiry-header .brand { gap: 10px; }
  .inquiry-header .brand > span { font-size: 15px; }
  .inquiry-header .brand svg { width: 23px; height: 32px; }
  .inquiry-header .brand small { font-size: 9px; }
  .back-to-works { font-size: 12px; gap: 12px; }
  .back-to-works span { font-size: 18px; }
  .inquiry-layout { width: calc(100% - 40px); padding-block: 32px 64px; }
  .inquiry-intro { padding-bottom: 26px; }
  .inquiry-intro h1 { font-size: clamp(25px, 6.5vw, 30px); letter-spacing: .02em; }
  .intro-description { font-size: 15px; margin-top: 16px; }
  .inquiry-content { padding-top: 26px; }
  .form-steps { margin-bottom: 30px; gap: 16px; }
  .form-steps li { font-size: 14px; }
  .form-section-heading h2 { font-size: 24px; }
  .form-section-heading.second { margin-top: 40px; padding-top: 28px; }
  .inquiry-topics { grid-template-columns: 1fr; gap: 10px; }
  .inquiry-topics label { padding: 16px; }
  .field { margin-top: 28px; }
  .field input, .field textarea { padding: 14px; }
  .field textarea { min-height: 180px; }
  .form-primary { max-width: none; padding: 20px; }
  .inquiry-footer { padding: 22px 20px; display: block; }
  .inquiry-footer nav { margin-top: 12px; gap: 4px 22px; }
}
