/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ナビゲーションバー */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.register-btn {
    background-color: #3498db;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s !important;
}

.register-btn:hover {
    background-color: #2980b9;
    color: #fff !important;
}

/* コンテナの調整 */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.button.primary {
    background-color: #3498db;
    color: #fff;
}

.button.secondary {
    background-color: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}

/* 機能紹介セクション */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

/* フォームのスタイル */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

/* ボタンのスタイル */
button,
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

button:hover,
.button:hover {
    background-color: #2980b9;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* テーブルのスタイル */
.profile-table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.profile-table th,
.profile-table td,
.history-table th,
.history-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
}

.profile-table th,
.history-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: left;
    width: 30%;
}

/* メッセージのスタイル */
.error {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
}

.success {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 4px;
    color: #0c0;
}

/* リンクのスタイル */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

.record {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.field {
    margin-bottom: 15px;
}

.field h3 {
    color: #333;
    margin-bottom: 5px;
}

.field p {
    margin: 0;
    color: #666;
}

/* カスタムスタイル */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

/* ナビゲーションバー */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* カード */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ボタン */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* アイコン */
.bi {
    vertical-align: -0.125em;
}

/* フッター */
footer {
    border-top: 1px solid #dee2e6;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeIn 1s ease-out;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* フォーム要素のスタイル */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* エラーメッセージ */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-danger {
    background-color: #fee;
    color: #c00;
}

.alert-success {
    background-color: #efe;
    color: #0c0;
}

/* テーブル */
.table {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* プロフィールセクション */
.profile-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ログイン履歴 */
.login-history-section {
    margin-top: 2rem;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
} 