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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 50%, #f8fafc 100%);
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
}

/* ボタンが非活性のとき */
.btn:disabled {
  background: #f3f4f6;       /* 薄いグレー */
  color: #9ca3af;            /* グレー文字 */
  border-color: #e5e7eb;     /* 薄いボーダー */
  cursor: not-allowed;       /* 禁止カーソル */
  box-shadow: none;          /* hover効果を無効化 */
  transform: none;
}

.btn:disabled:hover {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f3f4f6;
  box-shadow: none;
}

/* 入力欄が非活性のとき */
.input-field:disabled {
  background: #f9fafb;       /* 少し白っぽいグレー */
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 16px;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.header p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
}

.security-notice {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0 auto 0 auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #047857;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.security-icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .security-notice {
        flex-wrap: wrap;
        text-align: center;
        gap: 8px;
    }
}

.action-bar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 12px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    border-color: #10b981;
    color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.btn-primary {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #047857;
}

.btn-primary:hover {
    background: #dcfce7;
    border-color: #10b981;
}

.tabs-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.tab-button {
    padding: 16px 24px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #047857;
    background: #f0fdf4;
}

.tab-button.active {
    color: #047857;
    background: white;
    border-bottom-color: #10b981;
}

.tab-content {
    display: none;
    padding: 32px;
}

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

.card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.card-number {
    background: #f0fdf4;
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.delete-card-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-card-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.textarea-field {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox.checked {
    background: #10b981;
    border-color: #10b981;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.add-card-btn {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 20px;
}

.add-card-btn:hover {
    border-color: #10b981;
    color: #047857;
    background: #f0fdf4;
}

.password-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.password-section h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-section p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.password-input {
    max-width: 320px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 400px;
    width: 90%;
    border: 1px solid #e5e7eb;
}

.modal h3 {
    margin-bottom: 16px;
    color: #374151;
    text-align: center;
    font-weight: 500;
}

.modal input {
    width: 100%;
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0;
    display: none;
    text-align: center;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.info-section h4 {
    color: #374151;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 1rem;
}

/* フッター全体 */
.site-footer {
  background: #f9fafb;            /* 薄いグレー背景 */
  border-top: 1px solid #e5e7eb;  /* 上境界線 */
  padding: 24px 24px 16px;
  font-size: 0.85rem;
  color: #6b7280;                 /* グレー文字 */
  text-align: center;
}

/* 応援ボタン部分 */
.footer-support {
  margin-bottom: 20px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #047857;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.support-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4); */
  background: #f0fdfa;
}

.support-icon {
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* リンク部分 */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #2563eb; /* 青に変化 */
  text-decoration: underline;
}

/* コピーライト */
.footer-copy {
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .form-grid.grid-2,
    .form-grid.grid-3,
    .form-grid.grid-4 {
        grid-template-columns: 1fr;
    }
    
    .basic-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
}

.file-input {
    display: none;
}

.icon {
    font-size: 1rem;
}