/* ====================================
   NERD TECH - GLOBAL STYLES
   ==================================== */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-main: #f0f0f0;
    --text-sub: #888;
    --neon-pink: #ff66aa; 
    --neon-green: #00ff41;
    --grid-line: rgba(255, 255, 255, 0.04);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
    /* 背景のグリッドデザイン */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, nav, .btn, .en, label, input, select, button { 
    font-family: 'Roboto Mono', monospace; 
}

/* ====================================
   HEADER & FOOTER (既存サイト共通)
   ==================================== */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(8px);
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}
.logo a { 
    color: #fff; font-weight: 700; text-decoration: none; 
    font-size: 1.2rem; letter-spacing: 1px; 
}

footer { 
    border-top: 1px solid #222; padding: 50px 0; 
    text-align: center; color: #555; font-size: 0.8rem; 
    background: #000; margin-top: auto; 
}

/* ====================================
   RESERVATION PAGE STYLES (新規追加)
   ==================================== */
section {
    padding: 0 20px 100px; /* 上は余白なし、左右20px、下100px */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* タイトルエリア */
.page-title-area {
    padding-top: 150px;
    text-align: center;
    padding-bottom: 50px;
}
.section-title {
    font-size: 3rem; margin: 0; line-height: 1; 
    letter-spacing: 2px; color: #fff;
}
.section-sub {
    font-size: 0.9rem; color: var(--neon-pink); 
    margin-top: 10px; font-weight: bold;
}

/* フォームを囲むカード */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 40px 30px;
    box-sizing: border-box;
    transition: 0.3s;
    /* 初期状態は影なし */
}

/* ホバー時にNERD TECHっぽく光らせる */
.form-container:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 5px 20px rgba(255, 102, 170, 0.15);
    transform: translateY(-2px);
}

/* 入力ラベル */
label {
    display: block;
    color: var(--neon-pink);
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 入力エリア（テキスト・セレクトボックス） */
input[type="text"],
select {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background: #0a0a0a; /* 背景はほぼ黒 */
    border: 1px solid #333;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif; /* 入力文字は読みやすく */
    font-size: 1rem;
    margin-bottom: 30px;
    transition: 0.3s;
    border-radius: 0; /* 角丸なし（テック感） */
    appearance: none; /* ブラウザ標準スタイルを消す */
}

/* セレクトボックスの矢印調整 */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff66aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* フォーカス時のネオン発光 */
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 102, 170, 0.3);
    background: #000;
}

/* 日付選択時のカーソル */
#date { cursor: pointer; }

/* 送信ボタン */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--neon-pink);
    color: #000;
    border: 1px solid var(--neon-pink);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px var(--neon-pink);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* 戻るリンク */
.works-link {
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: 0.3s;
}
.works-link:hover {
    color: var(--neon-pink) !important;
}

/* ====================================
   FUNCTIONAL UI (LIFF & LOADING)
   ==================================== */

/* LIFFユーザー情報表示エリア */
#user-info {
    display: none;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 102, 170, 0.05);
    border: 1px solid var(--neon-pink);
}
#user-thumb {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    margin-right: 15px;
}
#user-name {
    color: var(--neon-pink);
    font-weight: bold;
    margin: 0;
}

/* ローディング画面 */
#loading {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* 濃いめの背景 */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}
.loader-spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(255, 102, 170, 0.2);
    border-top: 3px solid var(--neon-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ====================================
   SWEET ALERT 2 CUSTOM (上書き)
   ==================================== */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: #0f0f0f !important;
    border: 1px solid var(--neon-pink) !important;
    border-radius: 0 !important;
}
div:where(.swal2-icon).swal2-success {
    border-color: var(--neon-pink) !important;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    background-color: var(--neon-pink) !important;
}
.swal2-title, .swal2-html-container {
    color: #fff !important;
    font-family: 'Zen Kaku Gothic New', sans-serif !important;
}
button.swal2-confirm {
    background-color: var(--neon-pink) !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-family: 'Roboto Mono', monospace !important;
    font-weight: bold !important;
    box-shadow: none !important;
}
button.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(255,102,170,0.5) !important;
}

/* ====================================
   MOBILE RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .page-title-area { padding-top: 120px; padding-bottom: 30px; }
    .section-title { font-size: 2rem; }
    .form-container { padding: 30px 20px; }
    input[type="text"], select { padding: 12px; font-size: 16px; /* iOS拡大防止 */ }
}