/* =========================
   ClipMail base (元CSS)
========================= */

/* for body */
body {
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  font: 90% 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',Meiryo,メイリオ,Osaka,'MS PGothic',arial,helvetica,sans-serif;
}
#head {
  background: #00428e;
  color: #fff;
}
#head-in {
  padding: 8px 2em;
}
h1 {
  font-size: 135%;
  margin: 0;
}
#body {
  margin-left: 1.5em;
}

/* for table */
#form-tbl {
  margin-left: 1.5em;
}
#form {
  border-collapse: collapse;
  margin: 1em 0;
}
#form th, #form td {
  border: 1px solid #666;
  padding: 8px;
}
#form th {
  white-space: nowrap;
  background: #e8e8e8;
}
#form td {
  background: #fff;
}
p.btn input {
  width: 110px;
  height: 32px;
}

/* for title */
h2 {
  font-size: 100%;
  text-align: left;
  border-left: solid 4px #ef002d;
  border-bottom: 1px solid gray;
  padding: 4px 6px;
  margin: 1.5em 0;
  width: 500px;
}

/* for message */
p.msg {
  color: #dd0000;
  margin: 2em;
}
span.msg {
  color: #dd0000;
}

/* for back-button */
form.back {
  margin-top: 2em;
}

/* スマホ用 */
@media only screen and (max-width: 480px) {
  #body { margin-left: 0; }

  /* 投稿フォーム */
  #form-tbl { margin: 0 auto; text-align: center; }
  #form { width: 96%; margin: 10px auto; }
  #form th, #form td {
    text-align: left;
    width: 100%;
    display: block;
    padding: 6px 3px;
    border-top: none;
  }
  #form tr:first-child th { border-top: 1px solid #666; }
  p.btn input { width: 10em; }

  /* 小見出し */
  h2 { margin: 1em 3px; width: 90%; }

  /* サンクス */
  p.msg { margin: 1em auto; }
}

/* =========================
   Tsunagaru-kun skin（宇宙版）
   ↑これが無いと「元に戻る」
========================= */
:root{
  --bg:#0b0c10;
  --card:rgba(17,19,25,.78);
  --text:#e9ec1f1;
  --muted:#a7afbd;
  --line:rgba(255,255,255,.10);
  --radius:18px;
}

html, body{ height:100%; }

body{
  margin:0;
  color: rgba(233,236,241,.92);
  background:
    radial-gradient(900px 520px at 20% -10%, rgba(123,220,255,.18), transparent 55%),
    radial-gradient(760px 520px at 95% 10%, rgba(183,255,123,.10), transparent 55%),
    linear-gradient(180deg, #07080b 0%, var(--bg) 65%, #07080b 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

/* ヘッダーを透明化してトップと統一 */
#head{
  background: transparent !important;
  color: rgba(233,236,241,.92) !important;
  border-bottom: 1px solid var(--line);
}
#head-in{
  padding: 16px 16px !important;
}
#head-in h1{
  font-size: 18px !important;
  letter-spacing:.02em;
}

/* メイン領域をカード化 */
#body{
  max-width: 980px;
  margin: 18px auto 60px !important;
  padding: 0 16px;
  margin-left: auto !important; /* 元CSSのmargin-left打ち消し */
}
#form-tbl{
  margin-left: 0 !important;    /* 元CSSのmargin-left打ち消し */
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
}

/* 見出し */
h2{
  width: auto !important;
  font-size: 14px !important;
  color: rgba(167,175,189,.95) !important;
  font-weight: 650;
  border-bottom: 1px solid var(--line) !important;
  border-left: solid 4px rgba(239,0,45,.9) !important;
}

/* テーブルをガラス風 */
#form{
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
#form th, #form td{
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
}

/* ボタン */
p.btn input,
input[type="submit"],
input[type="button"],
button{
  width: auto !important;
  height: auto !important;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(123,220,255,.18), rgba(255,255,255,.02));
  color: rgba(233,236,241,.95);
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
}

/* =========================
   可読性：フォーム本体をダーク化（強制）
========================= */
#form td{
  background: rgba(255,255,255,.03) !important;
  color: rgba(233,236,241,.88) !important;
}

#form th{
  background: rgba(0,0,0,.18) !important;
  color: rgba(233,236,241,.78) !important;
}

/* 入力欄 */
#form input[type="text"],
#form input[type="email"],
#form textarea,
#form select{
  background: rgba(0,0,0,.28) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
}

#form textarea{ min-height: 140px; }

#form input[type="text"]::placeholder,
#form input[type="email"]::placeholder,
#form textarea::placeholder{
  color: rgba(255,255,255,.55) !important;
}

#form input[type="text"]:focus,
#form input[type="email"]:focus,
#form textarea:focus,
#form select:focus{
  background: rgba(0,0,0,.36) !important;
  border-color: rgba(123,220,255,.75) !important;
  box-shadow: 0 0 0 2px rgba(123,220,255,.20) !important;
}

/* CLIPMAIL クレジットは右下で静かに */
a[href="https://www.kent-web.com/"]{
  display:block;
  text-align:right;
  margin: 22px 14px 12px;
  font-size: 11px;
  color: rgba(233,236,241,.45);
  text-decoration:none;
}
a[href="https://www.kent-web.com/"]:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}


.back-home{
  display:inline-block;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(123,220,255,.18), rgba(255,255,255,.02));
  color:#e9ecf1;
  text-decoration:none;
  font-weight:650;
}
.back-home:hover{
  filter:brightness(1.15);
}


.back-home {
  margin-top: 20px;
  margin-bottom: 40px;
}

.back-home a {
  color: #7bdcff;
  font-weight: 600;
}

.back-home a:hover {
  color: #b6f0ff;
}


.back-home {
  margin-top: 24px;
  margin-bottom: 40px;
}

.back-home a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(123,220,255,.18), rgba(255,255,255,.02));
  color: #e9ecf1;
  text-decoration: none;
  font-weight: 600;
}

.back-home a:hover {
  background: linear-gradient(180deg, rgba(123,220,255,.28), rgba(255,255,255,.05));
}
