/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ボディ全体のスタイル */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダーとナビゲーション */
header {
    background-color: #333;
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

/* ナビゲーションメニュー */
.navbar-nav {
    list-style: none;
    display: flex;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.navbar-nav a:hover {
    background-color: #555;
    transform: scale(1.05);
    /* ホバー時に拡大 */
}

/* メニューアイコン（3本線） */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* メインフォームのスタイル */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    /* 入力フィールドのフォーカス時のアニメーション */
}

.input-group input:focus {
    border-color: #333;
    outline: none;
}

.submit-btn {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* ホバー時のアニメーション */
}

.submit-btn:hover {
    background-color: #555;
    transform: scale(1.05);
    /* ホバー時に拡大 */
}

/* エラーメッセージと成功メッセージのスタイル */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    color: #28a745;
    /* 成功メッセージの色 */
    background-color: #d4edda;
    /* 背景色 */
    border: 1px solid #c3e6cb;
    /* ボーダー色 */
    border-radius: 5px;
    /* 角を丸く */
    padding: 15px;
    /* 内側の余白 */
    margin-bottom: 20px;
    /* 下の余白 */
    text-align: center;
    /* 中央揃え */
}

/* パスワード入力フォームとアイコンのスタイル */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
    /* アイコンが表示されるスペースを確保 */
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #555;
    /* アイコンの色 */
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* ヘッダーとナビゲーションの配置 */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メニューアイコン（3本線） */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    /* メニューアイコンを右端に配置 */
    z-index: 10;
    /* メニューアイコンを前面に表示 */
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    /* バーの上下の間隔を均等に */
    transition: 0.4s;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
        /* スマートフォンで表示 */
    }

    .navbar-nav {
        display: none;
        /* デフォルトで非表示 */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        /* ナビゲーションメニューの位置 */
        right: 0;
        width: 250px;
    }

    .navbar-nav.active {
        display: flex;
        /* メニューアイコンがクリックされたときに表示 */
    }

    /* ×ボタンのアニメーション */
    .menu-icon.open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .menu-icon.open .bar:nth-child(2) {
        opacity: 0;
        /* 真ん中のバーを非表示に */
    }

    .menu-icon.open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    /* ナビゲーションメニューのリストアイテム */
    .navbar-nav li {
        margin-left: 20px;
        height:40px;
        /* リストアイテムの間隔を広げる */
    }

    .navbar-nav a {
        color: #fff;
        text-decoration: none;
        padding: 8px 15px;
        transition: background-color 0.3s ease;
        border-radius: 4px;
        font-size: 1.2rem;
        /* フォントサイズを大きくする */
        /* 必要に応じて他のスタイルを追加 */
    }
}

.dashboard {
    margin-bottom: 20px; /* ダッシュボードとボタン間に余白を追加 */
    text-align: center; 
}

.button-container {
    margin-top: 20px; /* ボタンの上部にスペースを追加 */
    text-align: center; 
}

.button3 {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px; /* ボタンのパディング */
    background-color: #333; /* ボタンの背景色 */
    color: white; /* ボタンの文字色 */
    text-decoration: none; /* リンクの下線を消す */
    border-radius: 5px; /* ボタンの角を丸く */
    transition: background-color 0.3s ease; /* ホバー時の背景色の変化にスムーズさを追加 */
}

.button3:hover {
    background-color: #555; /* ホバー時の背景色 */
}

