/* 
ファイル場所: C:\xampp\htdocs\ak-0816-app\public\css\losszero.css
新規ファイル作成してこの内容をコピー&ペースト
*/

/* 基本スタイル */
body {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
    margin: 0;
    padding: 20px;
//    background-color: #f5f5f5;
    background-image: url('../img/bg70.png');
    line-height: 1.6;
}

h1 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
}

h3 {
    color: #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.form_table {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* テーブルスタイル */
.waku {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.waku td, .waku th {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.waku th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: left;
}

.waku th.left {
    text-align: left;
}

/* フォーム要素 */
input[type="text"], 
input[type="email"], 
select, 
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

.textfield {
    width: 100%;
}

select {
    height: 40px;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ラベルとテキスト */
.ash {
    color: #666;
    font-weight: normal;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 5px;
}

/* エラースタイル */
.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

/* アラートスタイル */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* ボタンスタイル */
input[type="submit"], 
button {
    background-color: #2c5aa0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, 
button:hover {
    background-color: #1e3f73;
}

button[type="button"] {
    background-color: #6c757d;
    padding: 6px 12px;
    font-size: 12px;
}

button[type="button"]:hover {
    background-color: #545b62;
}

/* チェックボックスとラジオボタン */
input[type="checkbox"], 
input[type="radio"] {
    margin-right: 8px;
    width: auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form_table {
        margin: 0;
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .waku td, .waku th {
        padding: 8px;
        font-size: 14px;
    }
    
    input[type="text"], 
    input[type="email"], 
    select, 
    textarea {
        font-size: 16px; /* iOS のズーム防止 */
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* 追加のスタイル調整 */
table {
    width: 100%;
}

ul {
    margin: 10px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

small {
    font-size: 0.85em;
}

/* 文字数カウンター */
#message-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
}

/* フォーカス時のスタイル */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.25);
}

/* リンクスタイル */
a {
    color: #2c5aa0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}