/* ============================================
   芦屋美容クリニック - タッチパネルUI v1.2.0
   横向きiPad最適化 + 並び替えUI
   ============================================ */

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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    touch-action: manipulation;
}

/* バージョン表示 */
.version-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 画面切り替え */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* アバター画像 */
.avatar-container {
    text-align: center;
    margin: 20px 0;
}

.avatar-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* タイトル */
h1 {
    text-align: center;
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

h2 {
    text-align: center;
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
}

/* 免責文 */
.disclaimer {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ボタン */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 30px auto;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-back {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    min-width: 200px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* お悩み選択 */
.campaign-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.campaign-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.campaign-card {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.campaign-card:hover {
    transform: scale(1.05);
}

.concerns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.concern-btn {
    background: white;
    border: none;
    padding: 40px 20px;
    font-size: 22px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: bold;
}

.concern-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* 追加質問 */
.question-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.8;
}

/* 安全確認 */
.safety-checks {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.check-item {
    margin: 25px 0;
}

.check-item label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.check-item select {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

/* 条件選択 */
.conditions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.condition-item {
    margin: 25px 0;
}

.condition-item label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.condition-item select {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.condition-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 候補提示（2列固定） */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

.treatment-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.treatment-card h3 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.treatment-card .description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.treatment-card .info-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.treatment-card .info-label {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
    margin-bottom: 8px;
}

.treatment-card .info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.treatment-card .price-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
}

.treatment-card .price-label {
    font-weight: bold;
    color: #c19a6b;
    font-size: 16px;
    margin-bottom: 8px;
}

.treatment-card .price-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.treatment-card .url-link {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.treatment-card .url-link:hover {
    text-decoration: underline;
}

/* 最終案内 */
.closing-text {
    background: white;
    padding: 25px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.8;
    margin: 20px 0;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.phone-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-top: 15px;
}

/* 管理画面 */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.tab-content.active {
    display: block;
}

.treatments-list {
    margin-top: 20px;
}

.treatment-item {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treatment-info h4 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 8px;
}

.treatment-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* 並び替えUI */
.order-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    min-height: 400px;
}

.order-item {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.order-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.order-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.order-name {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.drag-handle {
    font-size: 24px;
    color: #999;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.help-text {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #1976d2;
    font-size: 16px;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin: 20px 0;
}

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

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

/* 管理画面起動トリガー */
.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    user-select: none;
}

.admin-trigger:hover {
    transform: scale(1.1);
}

.admin-trigger:active {
    transform: scale(0.95);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .concerns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .concern-btn {
        padding: 30px 15px;
        font-size: 18px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
}
