/* ページ共通（ヘッダー・本文・フッターは Web Components 側で描画される） */
html, body { margin: 0; padding: 0; }
body {
  background: #141416;
  color: #141416;
  /* 現行(Wix)の既定書体。部品(Shadow DOM)の多くはこれを継承して描画されるので変えない */
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { display: block; }
site-header, site-footer { display: block; }

/* ===== 問い合わせ（現行サイトの実測値に合わせる） ===== */
.contact {
  background: linear-gradient(90deg, rgb(32, 80, 77) 8.3162%, rgb(54, 22, 62) 100%);
  padding: 0 16px 48px;
  scroll-margin-top: 80px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif;
}
.contact-head { text-align: center; padding: 40px 0 28px; color: #fff; }
.contact-head h2 { margin: 0; font-weight: 700; line-height: 1.1; }
.contact-head .en {
  display: block;
  font-family: "Assistant", "Archivo", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 9vw, 64px);
  letter-spacing: .01em;
  white-space: nowrap;
}
.contact-head .ja { display: block; font-size: clamp(16px, 2.4vw, 22px); font-weight: 500; margin-top: 10px; letter-spacing: .08em; }

.contact-panel {
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgb(238, 238, 245);
  padding: 24px;
}
#contact-form { display: flex; flex-direction: column; gap: 22px; font-size: 15px; }
.f-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-group legend, .f-line .lb { font-size: 13px; padding: 0; margin-bottom: 8px; display: block; }
.f-group.invalid legend { color: #c62828; }

/* 区分：チェックボックス */
.ck { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; width: fit-content; }
.ck input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 15px; height: 15px; border: 1px solid rgba(20, 20, 22, .6); background: transparent; border-radius: 0;
  display: grid; place-content: center; cursor: pointer; flex: none;
}
.ck input:checked { background: #141416; border-color: #141416; }
.ck input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ck input:focus-visible { outline: 2px solid #EF7900; outline-offset: 2px; }

/* 種類：タグ選択（下線） */
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(20, 20, 22, .6);
  transition: background-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: #141416; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #EF7900; outline-offset: 2px; }

/* 入力欄：下線のみ */
.f-line { display: block; }
.f-line input, .f-line textarea {
  display: block; width: 100%; box-sizing: border-box;
  border: 0; border-bottom: 1px solid rgba(20, 20, 22, .6); border-radius: 0;
  background: transparent; color: #141416; font: inherit; font-size: 15px;
  padding: 8px 2px;
}
.f-line textarea { resize: vertical; min-height: 80px; }
.f-line input:focus, .f-line textarea:focus { outline: none; border-bottom: 2px solid #141416; }
.f-line.invalid input, .f-line.invalid textarea { border-bottom: 2px solid #c62828; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  width: 100%; height: 40px; border: 0; border-radius: 100px;
  background: #EF7900; color: #fff; font: inherit; font-size: 15px; cursor: pointer;
}
.submit:hover { opacity: .9; }
.submit:disabled { opacity: .6; cursor: default; }
.f-status { margin: 0; min-height: 1.5em; font-size: 14px; text-align: center; }
.f-status.ok { color: #1B7A3E; }
.f-status.err { color: #c62828; }

@media (max-width: 760px) {
  .contact { padding: 0 0 32px; }
  .contact-head { padding: 32px 16px 22px; }
  .contact-panel { padding: 20px 16px; }
}

/* 404 */
.nf { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 120px 16px 60px; }
.nf-code { font-size: 64px; font-weight: 700; margin: 0 0 8px; font-family: "Assistant", Helvetica, Arial, sans-serif; }
.nf a { color: #fff; }
