/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* 基本設定 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f1e8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #333;
}

/* タイトル - 白ふちの丸文字 */
h1 {
    font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
    font-weight: 800;
    font-size: 2em;
    color: #D00;
    text-shadow: 
        3px 3px 0px #fff,
        -3px 3px 0px #fff,
        3px -3px 0px #fff,
        -3px -3px 0px #fff,
        4px 4px 8px rgba(0, 0, 0, 0.3);
    margin: 10px 0;
    text-align: center;
}

h2 {
    font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    color: #333;
}

/* コンテナ */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

/* フォーム要素 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
select {
    font-family: 'Zen Maru Gothic', sans-serif;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ボタン基本スタイル */
button,
input[type="submit"] {
    font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #aaa;
    color: white;
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* 段落 */
p {
    line-height: 1.8;
    color: #555;
}

/* リスト */
ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* チェックボックスラベル */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    button,
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ホバー対応デバイス用のスタイル */
@media(hover: hover) and (pointer: fine) {
    button:hover,
    input[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
}

.debug-mode-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.85em;
    color: #856404;
    margin-bottom: 8px;
    text-align: center;
}

/* デバッグモード タイトルオーバーレイ */
.title-wrapper {
    position: relative;
    display: inline-block;
}

.debug-title-overlay {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) rotate(-20deg);
    color: rgba(220, 0, 0, 0.65);
    font-size: clamp(0.7em, 2vw, 1.1em);
    font-weight: 900;
    font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
    border: 2px solid rgba(220, 0, 0, 0.65);
    padding: 2px 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    letter-spacing: 2px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
}
