@charset "utf-8";

/* ===========================================================
   Zyzo Labs お問い合わせフォーム
   本体サイト（index.html / assets/style.css）と同じ配色・トーン。

   {$form_data} が生成する table の中身はサーバー側が組み立てるため、
   クラス名に依存せず th / td / input など要素セレクタで組み立てている。
   =========================================================== */

:root {
  --base: #12091c;
  --base-2: #1c1030;
  --on-base: #f4f0ff;

  --main: #c6ff2e;
  --on-main: #12091c;

  --accent: #a855f7;
  --on-accent: #ffffff;

  --panel: #f4f0ff;
  --on-panel: #12091c;

  --muted: #6b6280;
  --field: #ffffff;
  --border: #d9d2e8;
  --error: #ff2f5e;

  --font-display: "Arial Black", "Helvetica Neue", Impact,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;

  --skew: -8deg;
  --cut: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* ----------------------------------------------------------
   リセット
------------------------------------------------------------- */
html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, code, form, fieldset, legend, table, th, td, caption, a, article, aside,
nav, section, figure, figcaption, footer, header, main {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, nav, section, figure, footer, header, main { display: block; }
fieldset, legend, img { border: 0; }
* { box-sizing: border-box; }

/* ----------------------------------------------------------
   ベース
------------------------------------------------------------- */
html {
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background: var(--base);
  color: var(--on-base);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  word-wrap: break-word;
}

/* 本体サイトと同じ集中線を薄く敷く */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 170vmax;
  height: 170vmax;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: .09;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    var(--main) 0deg 3.4deg,
    transparent 3.4deg 7.5deg,
    var(--accent) 7.5deg 10.4deg,
    transparent 10.4deg 15deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
  mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
}

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: bold; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
img { vertical-align: middle; }
em, strong, b { font-weight: 900; font-style: normal; }

table { border-collapse: collapse; border-spacing: 0; }
th, td { text-align: left; font-weight: normal; }

/* ----------------------------------------------------------
   ヘッダー / フッター
------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 3px solid var(--main);
  box-shadow: 0 6px 0 rgba(198, 255, 46, .28);
  background: var(--base);
}

.site-header__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 言語切り替え（本体サイトと同じ見た目） */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  padding: 5px 13px;
  border: 2px solid var(--main);
  background: transparent;
  color: var(--main);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.6;
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: background .18s, color .18s, border-color .18s;
}

.lang-btn.is-active { background: var(--main); color: var(--on-main); }

.lang-btn:not(.is-active):hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 900;
  color: var(--on-base);
  text-decoration: none;
  transform: skewX(var(--skew));
}

.logo em { color: var(--main); font-style: italic; }

.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--main);
  color: var(--on-main);
  font-size: 20px;
  font-style: italic;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 22px 0;
  border-top: 3px solid var(--main);
  background: var(--base);
  color: var(--muted);
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  letter-spacing: .1em;
}

/* ----------------------------------------------------------
   本体
------------------------------------------------------------- */
#wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 20px;
}

#main {
  padding: 34px 30px 30px;
  background: var(--panel);
  color: var(--on-panel);
  border: 3px solid var(--main);
}

.section { margin-bottom: 34px; }
.section:last-child { margin-bottom: 0; }

/* 見出し（本体サイトのラベルと同じ斜めカット） */
.section__ttl {
  display: inline-block;
  margin-bottom: 24px;
  padding: 9px 26px;
  background: var(--main);
  color: var(--on-main);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  clip-path: var(--cut);
  transform: skewX(var(--skew));
}

.section__body { padding: 0; }

#txt_explain {
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--on-panel);
  font-size: 13px;
}

#txt_explain .note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

#txt_explain p:last-child { margin-bottom: 0; }

/* エラー表示 */
.red_txt {
  color: var(--error);
  font-weight: 900;
}

.red_txt:not(:empty) {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 2px solid var(--error);
  background: rgba(255, 47, 94, .08);
  font-size: 13px;
}

/* ----------------------------------------------------------
   入力項目のテーブル（中身はサーバー側が生成する）
------------------------------------------------------------- */
.table {
  width: 100%;
  margin-bottom: 26px;
  border: 2px solid var(--on-panel);
}

.table th {
  width: 32%;
  padding: 15px 16px;
  background: var(--on-panel);
  color: var(--main);
  border-bottom: 2px solid var(--panel);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  vertical-align: top;
}

.table tr:last-child th { border-bottom: none; }

.table td {
  padding: 15px 16px;
  background: var(--field);
  border-bottom: 1px solid var(--border);
  color: var(--on-panel);
  font-size: 13px;
  vertical-align: top;
}

.table tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------
   フォーム部品
------------------------------------------------------------- */
input, textarea, select {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password],
input[type=number],
textarea,
select {
  width: 100%;
  max-width: 420px;
  padding: 9px 12px;
  background: var(--field);
  color: var(--on-panel);
  border: 2px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}

textarea {
  max-width: 100%;
  min-height: 160px;
  overflow: auto;
  vertical-align: top;
  line-height: 1.7;
}

select { max-width: 100%; width: auto; min-width: 180px; }

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=password]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--on-panel);
  box-shadow: 0 0 0 3px rgba(198, 255, 46, .55);
}

input[type=checkbox],
input[type=radio] {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  vertical-align: -3px;
  accent-color: var(--accent);
  cursor: pointer;
}

label { cursor: pointer; }

/* ----------------------------------------------------------
   ボタン
------------------------------------------------------------- */
.button_box {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 6px 0;
  text-align: center;
}

/* 送信系ボタン。表示文言を翻訳できるよう button 要素も対象にする
   （.lang-btn は type="button" の button なのでここには含まれない） */
input[type=submit],
input[type=button],
button[type=submit] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 180px;
  padding: 15px 32px;
  border: none;
  border-radius: 0;
  background: var(--main);
  color: var(--on-main);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  clip-path: var(--cut);
  transform: skewX(var(--skew));
  transition: background .15s, color .15s, transform .15s;
}

input[type=submit]:hover,
input[type=button]:hover,
button[type=submit]:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: skewX(var(--skew)) translateY(-3px);
}

input[type=submit]:active,
input[type=button]:active,
button[type=submit]:active {
  transform: skewX(var(--skew)) translateY(1px);
}

/* 「戻る」は塗りで区別する。clip-path が枠線を切ってしまうため border は使わない。
   （value はサーバー側の処理分岐に使われるため変更しない） */
input[type=submit][value="戻る"],
button[type=submit][value="戻る"] {
  background: var(--on-panel);
  color: var(--panel);
}

input[type=submit][value="戻る"]:hover,
button[type=submit][value="戻る"]:hover {
  background: var(--accent);
  color: var(--on-accent);
}

input[type=submit]:disabled,
input[type=button]:disabled,
button[type=submit]:disabled {
  opacity: .45;
  cursor: default;
  transform: skewX(var(--skew));
}

/* サイトへ戻るリンク */
.backlink {
  margin-top: 26px;
  text-align: center;
}

/* 明るい紙面の上に置くため、ライムではなく地の色で描く */
.backlink a {
  display: inline-block;
  padding: 11px 26px;
  background: transparent;
  color: var(--on-panel);
  border: 2px solid var(--on-panel);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  transform: skewX(var(--skew));
  transition: background .15s, color .15s, border-color .15s;
}

.backlink a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ----------------------------------------------------------
   完了画面
------------------------------------------------------------- */
.done {
  text-align: center;
  padding: 14px 0 6px;
}

.done__mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  background: var(--on-panel);
  color: var(--main);
  /* チェック記号は Arial Black に字形がないので本文フォントで描く */
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.done #txt_explain {
  display: inline-block;
  text-align: left;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   汎用（既存テンプレートが使う可能性のあるもの）
------------------------------------------------------------- */
.left_txt { text-align: left; }
.tal { text-align: left !important; }
.tar { text-align: right !important; }
.tac { text-align: center !important; }
.dispN { display: none !important; }
.fontBold { font-weight: 900 !important; }
.clear, .cf { clear: both; }
.clearfix:before, .clearfix:after,
.cf:before, .cf:after { content: " "; display: table; }
.clearfix:after, .cf:after { clear: both; }

/* ----------------------------------------------------------
   スマホ
------------------------------------------------------------- */
@media (max-width: 640px) {
  #wrapper { margin-top: 24px; padding: 0 14px; }
  #main { padding: 24px 16px 22px; }

  .section__ttl { font-size: 16px; padding: 8px 20px; }

  /* th / td を縦に積む */
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr { border-bottom: 2px solid var(--on-panel); }
  .table tr:last-child { border-bottom: none; }

  .table th {
    padding: 10px 14px;
    border-bottom: none;
    font-size: 13px;
  }

  .table td {
    padding: 14px;
    border-bottom: none;
  }

  input[type=text],
  input[type=email],
  input[type=tel],
  input[type=password],
  input[type=number],
  textarea,
  select { max-width: 100%; width: 100%; }

  .button_box { gap: 12px; }

  input[type=submit],
  input[type=button],
  button[type=submit] {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
  }

  .site-header__inner { height: 60px; padding: 0 14px; }
  .logo { font-size: 17px; }
}