/* 共通CSS - common.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'Meiryo', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    line-height: 1.6;
}

/* ヘッダー */
.header {
    background: white;
    color: #4a90e2;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.header h1 {
    color: #4a90e2;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header h1::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../images/logo_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header .subtitle {
    color: #357abd;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.4;
}

.menu-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 18px;
    color: #ffd700;
}

/* コンテンツエリア */
.content {
    padding: 20px;
    max-width: 100%;
}

/* フォームコンテナ */
.form-container {
    background: white;
    min-height: 100vh;
}

.form-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.4;
}

.step-indicator {
    font-size: 14px;
    color: #666;
}

.form-content {
    padding: 20px;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

/* すべての入力要素のフォントサイズを統一 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
    font-size: 18px;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;  /* 14px → 18px に拡大 */
    background: white;
    color: #333;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;  /* 14px → 18px に拡大 */
    background: white;
    color: #333;
    line-height: 1.5;
}

/* ボタン */
.start-button, .next-button, .prev-button {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c3e50;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.start-button:active, .next-button:active, .prev-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

.confirm-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 16px;
}

.upload-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* 特殊要素 */
.note {
    font-size: 14px;
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
}

.explanation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.additional-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

.additional-note strong {
    color: #d32f2f;
}

/* アップロード関連 */
.photo-upload {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.photo-samples {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.photo-sample {
    width: 100px;
    height: 120px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    border: 2px solid #ecf0f1;
}

.upload-area {
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

/* ドロップダウン選択肢 */
.dropdown-options {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.dropdown-option {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #e3f2fd;
}

.dropdown-option.selected {
    background: #e3f2fd;
    color: #1976d2;
}

/* ナビゲーション */
.navigation {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.nav-button {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-button.primary {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.nav-button:hover {
    background: #f8f9fa;
}

.nav-button.primary:hover {
    background: #357abd;
}

.nav-button.suspend {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    flex: 0.5;
}

.nav-button.suspend:hover {
    background: #5a6268;
}

/* 入力行の複数表示 */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-row .form-input {
    flex: 1;
}

/* スキップボタン */
.skip-button {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 375px) {
    .content {
        padding: 15px;
    }
    
    .form-content {
        padding: 15px;
    }
    
    .photo-samples {
        gap: 10px;
    }
    
    .photo-sample {
        width: 80px;
        height: 100px;
        font-size: 30px;
    }
}

/* 確認画面用の共通スタイル */
.confirmation-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4a90e2;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.data-item {
    display: flex;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.data-label {
    font-weight: 600;
    min-width: 120px;
    color: #495057;
    font-size: 15px;
}

.data-value {
    flex: 1;
    color: #212529;
    font-size: 15px;
}

.empty-value {
    color: #6c757d;
    font-style: italic;
}

.edit-button {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.edit-button:hover {
    background: #138496;
}

/* 動的項目の追加・削除ボタン */
.add-entry-button,
.remove-entry-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-entry-button {
    background: #28a745;
    color: white;
}

.add-entry-button:hover {
    background: #218838;
}

.remove-entry-button {
    background: #dc3545;
    color: white;
}

.remove-entry-button:hover {
    background: #c82333;
}

/* 入力セクションの区切り */
.entry-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    position: relative;
}

.entry-section-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeIn 0.3s ease-out;
}

/* 和暦表示用 */
.wareki-display {
    cursor: pointer;
    color: #333;
}
.wareki-display::placeholder {
    color: #999;
}