/* お問い合わせフォーム（437）改善の見本（2026-11-26〜）
   js/form-437.js が組み立てる .f4 の見た目。?form_test=1126 のときだけ読み込まれる。 */

.f4.f4 { --f4-grad: linear-gradient(to right, #dc82b4 0, #78c8ff 100%); max-width: 800px; margin-left: auto; margin-right: auto; color: #181818; font-size: 14px; }
.f4.f4 *, .f4.f4 *::before, .f4.f4 *::after { box-sizing: border-box; }
.f4.f4 button { font-family: inherit; }
.f4.f4 .f4-sample { margin: 0 0 20px; padding: 8px 12px; border-radius: 6px; background: #fff7d6; font-size: 12px; text-align: center; }

/* 行 */
.f4.f4 .f4-rows { display: flex; flex-direction: column; gap: 14px; }
.f4.f4 .f4-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 0; align-items: start; }
.f4.f4 .f4-head { display: flex; align-items: center; min-height: 56px; padding-right: 10px; font-weight: 400; }
.f4.f4 .f4-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 20px; margin-right: 10px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 700; }
.f4.f4 .f4-badge { padding-top: 2px; line-height: 1; }
.f4.f4 .f4-badge.is-req { background: #d50f25; }
.f4.f4 .f4-badge.is-opt { background: #5aaee8; }

/* 入力欄 */
.f4.f4 .f4-in { display: block; width: 100%; height: 56px; margin: 0; padding: 0 20px; border: 2px solid transparent !important; border-radius: 6px; background: #ebebeb !important; box-shadow: none; color: #181818; font-family: inherit; font-size: 16px; }
.f4.f4 .f4-in::placeholder { color: #9a9a9a; }
.f4.f4 .f4-in:focus { outline: 2px solid #2271b1; outline-offset: 1px; }
.f4.f4 .f4-ta { height: 120px; padding-top: 14px; padding-bottom: 14px; line-height: 1.6; resize: vertical; }
.f4.f4 .f4-row .f4-ta[placeholder^="例）https"] { height: 72px; }
.f4.f4 .f4-in.is-filled { background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box !important; }
.f4.f4 .f4-in.is-error { border-color: #d50f25 !important; background: #fff5f5 !important; }
.f4.f4 .f4-err { margin: 0; padding-top: 6px; color: #c8000b; font-size: 12px; line-height: 1.5; }
.f4.f4 .f4-err[hidden] { display: none; }
.f4.f4 .f4-note { margin: 0; padding-top: 6px; color: #c8000b; font-size: 12px; }
.f4.f4 .f4-web { margin: 0; padding: 12px 14px; border-radius: 6px; background: #f4f4f4; color: #555; font-size: 13px; }

/* 選ぶボタン */
.f4.f4 .f4-pills { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.f4.f4 .f4-pill { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px; border: 2px solid transparent; border-radius: 6px; background: #ebebeb; color: #181818; font-size: 14px; line-height: 1.35; text-align: center; cursor: pointer; transition: transform .08s ease-out; }
.f4.f4 .f4-pill:active { transform: scale(.97); }
.f4.f4 .f4-pill.is-on { background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box; font-weight: 700; }
.f4.f4 .f4-pill:focus-visible, .f4.f4 .f4-opt:focus-visible, .f4.f4 .f4-dd-btn:focus-visible, .f4.f4 .f4-dd-ok:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }

/* プルダウン */
.f4.f4 .f4-dd { position: relative; }
.f4.f4 .f4-dd-btn { position: relative; display: flex; align-items: center; width: 100%; min-height: 56px; padding: 8px 44px 8px 20px; border: 2px solid transparent; border-radius: 6px; background: #ebebeb; color: #181818; font-size: 15px; text-align: left; cursor: pointer; }
.f4.f4 .f4-dd-btn.is-filled { background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box; font-weight: 700; }
.f4.f4 .f4-dd-arrow { position: absolute; right: 20px; top: 50%; margin-top: -4px; pointer-events: none; transition: transform .14s ease-out; }
.f4.f4 .f4-dd.is-open .f4-dd-arrow { transform: rotate(180deg); }
.f4.f4 .f4-dd-cur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1 1 auto; min-width: 0; }
.f4.f4 .f4-dd-val { flex: 1 1 auto; min-width: 0; }
.f4.f4 .f4-dd-ph { color: #767676; font-weight: 400; }
.f4.f4 .f4-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #eaf5fd; font-size: 13px; font-weight: 700; white-space: nowrap; }
.f4.f4 .f4-chipbadge { flex: none; padding: 3px 12px; border: 2px solid transparent; border-radius: 999px; background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box; font-size: 13px; font-style: normal; font-weight: 700; white-space: nowrap; }
.f4.f4 .f4-dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: none; flex-direction: column; gap: 2px; padding: 6px; border: 2px solid transparent; border-radius: 10px; background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box; box-shadow: 0 10px 28px rgba(40, 60, 90, .16); }
.f4.f4 .f4-dd.is-open .f4-dd-list { display: flex; animation: f4Pop .14s ease-out both; transform-origin: 50% 0; }
.f4.f4 .f4-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: #181818; font-size: 15px; text-align: left; cursor: pointer; }
.f4.f4 .f4-opt:hover { background: #f2f8fd; }
.f4.f4 .f4-opt.is-on { background: #eaf5fd; }
.f4.f4 .f4-opt-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.f4.f4 .f4-opt-txt b { font-weight: 400; }
.f4.f4 .f4-opt.is-on .f4-opt-txt b, .f4.f4 .f4-opt-txt b:not(:only-child) { font-weight: 700; }
.f4.f4 .f4-opt-txt i { color: #555; font-size: 12px; font-style: normal; }
.f4.f4 .f4-check { display: none; flex: none; margin-left: auto; }
.f4.f4 .f4-opt.is-on .f4-check { display: inline-flex; }
.f4.f4 .f4-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border: 2px solid #9a9a9a; border-radius: 4px; background: #fff; }
.f4.f4 .f4-box svg { visibility: hidden; }
.f4.f4 .f4-opt.is-on .f4-box { border: 0; background: var(--f4-grad); }
.f4.f4 .f4-opt.is-on .f4-box svg { visibility: visible; }
.f4.f4 .f4-dd-note { margin: 4px 0 0; padding: 8px 14px 6px; border-top: 1px dotted #b4b4b4; color: #555; font-size: 12px; }
.f4.f4 .f4-dd-note a { color: #555; }
.f4.f4 .f4-dd-foot { display: flex; justify-content: flex-end; margin-top: 4px; padding: 6px 4px 2px; border-top: 1px dotted #b4b4b4; }
.f4.f4 .f4-dd-ok { min-height: 40px; padding: 0 20px; border: 2px solid transparent; border-radius: 6px; background: linear-gradient(#fff, #fff) padding-box, var(--f4-grad) border-box; font-size: 14px; font-weight: 700; cursor: pointer; }
@keyframes f4Pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* 出る・消える（高さごと縮める） */
.f4.f4 .f4-c { display: grid; grid-template-rows: 0fr; margin-top: -14px; opacity: 0; visibility: hidden; transition: grid-template-rows .22s cubic-bezier(.4, 0, .6, 1), opacity .16s ease-in, visibility 0s .22s; }
.f4.f4 .f4-c.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out, visibility 0s; }
.f4.f4 .f4-c-in { min-height: 0; overflow: hidden; }
.f4.f4 .f4-c.is-done > .f4-c-in { overflow: visible; }
.f4.f4 .f4-c-pad { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.f4.f4 .f4-body .f4-c { margin-top: 0; }
.f4.f4 .f4-body .f4-c-pad { padding-top: 0; }
.f4.f4.is-init .f4-c { transition: none; }

/* 件名のプルダウンは今と同じくらいの幅 */
.f4.f4 .f4-rows > .f4-row:first-child .f4-dd { max-width: 350px; }

/* 下 */
.f4.f4 .f4-privacy { margin: 28px 0 20px; font-size: 13px; text-align: center; }
.f4.f4 .f4-send { border: 0; cursor: pointer; }
.f4.f4 .f4-sendmsg { margin: 12px 0 0; color: #c8000b; font-size: 13px; text-align: center; }
.f4.f4 .f4-recaptcha { margin: 20px 0 0; color: #333; font-size: 11px; line-height: 1.6; text-align: center; }

/* フォームの上の案内（3つの箱） */
.f4-info.f4-info { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 800px; margin: 0 auto 32px; color: #181818; }
.f4-info .f4-info-item { padding: 18px; border-radius: 8px; background: #f5f5f5; }
.f4-info.f4-info p { margin: 0; padding: 0; }
.f4-info .f4-info-lab { color: #555; font-size: 12px; font-weight: 700; line-height: 1.4; }
.f4-info .f4-info-ic { flex: none; }
.f4-info .f4-info-main { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px !important; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.f4-info .f4-info-main.is-text { font-size: 18px; letter-spacing: 0; line-height: 1.66; }
.f4-info .f4-info-main a { color: #181818; text-decoration: none; }
.f4-info .f4-info-sub { color: #333; font-size: 13px; line-height: 1.5; }
.f4-info .f4-info-nowrap { white-space: nowrap; }
@media only screen and (min-width: 768px) { .f4-info .f4-info-main a { pointer-events: none; } }
@media only screen and (max-width: 767px) {
  .f4-info.f4-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; max-width: none; margin-bottom: 24px; }
  .f4-info .f4-info-item { padding: 14px; }
  .f4-info .f4-info-item:first-child { grid-column: 1 / -1; }
  .f4-info .f4-info-main { font-size: 24px; }
  .f4-info .f4-info-main.is-text { font-size: 16px; }
  .f4-info .f4-info-main a { text-decoration: underline; text-underline-offset: 4px; }
}

@media only screen and (max-width: 767px) {
  .f4.f4 .f4-rows, .f4.f4 .f4-c-pad { gap: 18px; }
  .f4.f4 .f4-c { margin-top: -18px; }
  .f4.f4 .f4-c-pad { padding-top: 18px; }
  .f4.f4 .f4-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .f4.f4 { max-width: none; }
  .f4.f4 .f4-head { min-height: 0; font-size: 15px; }
  .f4.f4 .f4-rows > .f4-row:first-child .f4-dd { max-width: none; }
  .f4.f4 .f4-pill { font-size: 13px; }
  .f4.f4 .f4-pills[style*="--cols:4"] { --cols: 2 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f4.f4 .f4-send { width: 100%; }
}

/* 細い列に置くとき（/lp/simple のパソコン側の右の列、幅約250px）：項目名を上、入力欄を下に並べる（2026-11-28） */
.lp-simple-aside .f4.f4 { max-width: none; font-size: 13px; }
.lp-simple-aside .f4.f4 .f4-rows, .lp-simple-aside .f4.f4 .f4-c-pad { gap: 14px; }
.lp-simple-aside .f4.f4 .f4-c { margin-top: -14px; }
.lp-simple-aside .f4.f4 .f4-c-pad { padding-top: 14px; }
.lp-simple-aside .f4.f4 .f4-body .f4-c { margin-top: 0; }
.lp-simple-aside .f4.f4 .f4-body .f4-c-pad { padding-top: 0; }
.lp-simple-aside .f4.f4 .f4-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.lp-simple-aside .f4.f4 .f4-head { min-height: 0; padding-right: 0; font-size: 13px; font-weight: 700; }
.lp-simple-aside .f4.f4 input.f4-in { height: 44px; padding: 0 12px; font-size: 14px; }
.lp-simple-aside .f4.f4 .f4-ta { height: 96px; padding: 10px 12px; font-size: 14px; }
.lp-simple-aside .f4.f4 .f4-pill { min-height: 44px; padding: 6px; font-size: 12px; }
.lp-simple-aside .f4.f4 .f4-pills { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lp-simple-aside .f4.f4 .f4-dd-btn { min-height: 44px; padding: 6px 34px 6px 12px; font-size: 13px; }
.lp-simple-aside .f4.f4 .f4-dd-arrow { right: 12px; }
.lp-simple-aside .f4.f4 .f4-opt { min-height: 42px; padding: 6px 10px; font-size: 13px; }
.lp-simple-aside .f4.f4 .f4-chipbadge { padding: 2px 8px; font-size: 11px; }
.lp-simple-aside .f4.f4 .f4-privacy { margin: 20px 0 12px; font-size: 11px; }
.lp-simple-aside .f4.f4 .f4-send { width: 100%; max-width: 100%; font-size: 14px; line-height: 52px; }
.lp-simple-aside .f4.f4 .f4-recaptcha { font-size: 10px; }
.lp-simple-aside .f4.f4 .f4-sample { font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .f4.f4 .f4-c, .f4.f4 .f4-c.is-open, .f4.f4 .f4-pill, .f4.f4 .f4-dd-arrow { transition: none; }
  .f4.f4 .f4-dd.is-open .f4-dd-list { animation: none; }
  .f4.f4 .f4-pill:active { transform: none; }
}

/* 送信用の本物のフォームと一緒に使うときの調整（2026-11-27〜） */
.f4-real { display: none !important; }
.f4.f4 .f4-pills.is-error .f4-pill, .f4.f4 .f4-dd.is-error .f4-dd-btn { border-color: #d50f25; background: #fff5f5; }
.f4.f4 .f4-send.is-busy { opacity: .6; cursor: progress; }
.f4.f4 .f4-send:disabled { pointer-events: none; }
.f4.f4 .f4-sendmsg { line-height: 1.6; }
.f4.f4 .f4-webhost .form-table { width: 100%; max-width: none; margin: 0; }
