@charset "utf-8";

/* ============================================================
   お問い合わせフォーム
   ============================================================ */

/* --- Theme Variables (ShortLinkから引用) --- */
:root {
  --bg: #F9F7F7;
  --bg-card: #ffffff;
  --bg-input: #DBE2EF;
  --bg-hover: #cdd6e8;
  --accent: #3F72AF;
  --accent-hover: #345f96;
  --accent-soft: rgba(63,114,175,0.08);
  --accent-glow: rgba(63,114,175,0.15);
  --green: #22c55e;
  --red: #ef4444;
  --text: #112D4E;
  --text-secondary: #3a5070;
  --text-muted: #7a8da6;
  --border: rgba(17,45,78,0.10);
  --border-hover: rgba(17,45,78,0.18);
  --shadow-sm: 0 1px 3px rgba(17,45,78,0.05);
  --shadow-md: 0 2px 10px rgba(17,45,78,0.07);
}

/* ダークモード対応 (OSの設定に自動追従させる場合) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222831;
    --bg-card: #2c3340;
    --bg-input: #393E46;
    --bg-hover: #434a55;
    --accent: #00ADB5;
    --accent-hover: #009da5;
    --accent-soft: rgba(0,173,181,0.10);
    --accent-glow: rgba(0,173,181,0.22);
    --text: #EEEEEE;
    --text-secondary: #b8bcc4;
    --text-muted: #7a808a;
    --border: rgba(238,238,238,0.08);
    --border-hover: rgba(238,238,238,0.14);
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
    line-height: 1.8;
}

/* --- Typography & Elements --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.5; color: var(--text); }
p { margin: 0 0 1.5em; }
ul, ol { list-style: none; }
dt { font-weight: bold; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
img { vertical-align: middle; max-width: 100%; height: auto; }
strong, b { font-weight: bold; }

/* --- Table --- */
table { border-collapse: collapse; border-spacing: 0; }
th, td { font-weight: normal; text-align: left; }

.table {
    width: 100%;
    margin-bottom: 25px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.table th {
    padding: 15px;
    background: var(--bg-input); /* ヘッダーを少し目立たせる */
    color: var(--text);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-weight: bold;
    width: 30%;
}
.table td {
    padding: 15px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

@media screen and (max-width: 600px) {
    .table th, .table td { display: block; width: 100%; border-right: none; }
    .table th { border-bottom: none; padding-bottom: 5px; }
    .table td { border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding-top: 5px; }
}

/* --- Form Inputs --- */
input, textarea, select {
    margin: 0; font-family: inherit; font-size: inherit; outline: none;
}

input[type=text],
input[type=password],
input[type=email],
input[type=tel],
textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 8px; /* ShortLink合わせ */
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type=text]:focus,
input[type=password]:focus,
textarea:focus { 
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

textarea {
    max-width: 100%;
    min-height: 120px;
    resize: vertical;
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px; /* ShortLink合わせ */
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(0) !important; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 8px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) { 
    background: var(--accent-hover); 
    transform: translateY(-1px); 
    box-shadow: 0 3px 14px var(--accent-glow); 
}
.btn-primary:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}
.btn-secondary:hover { 
    color: var(--text); 
    border-color: var(--text-muted); 
}

.button_box { text-align: center; margin-top: 20px; }
.flex_buttons { display: flex; justify-content: center; gap: 15px; }

/* --- Main Layout --- */
#wrapper {
    width: 90%;
    max-width: 720px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px; /* ShortLinkのカード合わせ */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

#main { padding: 40px 30px; }

@media screen and (max-width: 600px) {
    #wrapper { margin: 20px auto; width: 95%; }
    #main { padding: 20px 15px; }
}

/* --- Sections --- */
.section { margin-bottom: 0; }
.section__ttl {
    padding: 15px 20px;
    margin: -40px -30px 30px -30px;
    font-weight: 800;
    color: var(--text);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 1.2rem;
    text-align: center;
}
@media screen and (max-width: 600px) {
    .section__ttl { margin: -20px -15px 20px -15px; }
}

/* --- Texts & Helpers --- */
#txt_explain { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.9rem; }
.red_txt { color: var(--red); font-weight: bold; margin-bottom: 15px; font-size: 0.9rem;}
.tac { text-align: center !important; }

/* 簡易スパムチェックボックスの枠組み */
.spam_check_box {
    text-align: center; 
    margin: 25px 0; 
    padding: 15px; 
    background: var(--accent-soft); 
    border-radius: 8px; 
    border: 1px solid var(--accent-glow);
    color: var(--text);
}

/* 戻るリンク */
.back_link { margin-top: 30px; font-size: 0.9rem; font-weight: 600;}
.back_link a { 
    display: inline-block; 
    padding: 8px 16px; 
    border-radius: 8px; 
    background: var(--bg-input); 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: all 0.2s;
}
.back_link a:hover { 
    background: var(--border); 
    color: var(--text); 
}