/* トップページ全体のスタイル */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* メインレイアウト */
.toppage-main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ロゴセクション */
.toppage-logo {
    text-align: center;
    margin-bottom: 40px;
}

.toppage-logo h1 {
    font-size: 2.5rem;
    color: #004d99;
    margin: 0;
}

/* コンテンツエリア */
.toppage-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* ログインボックス */
.toppage-loginbox {
    width: 45%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toppage-loginbox h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.toppage-loginbox form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.toppage-loginbox form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.toppage-loginbox form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #004d99;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.toppage-loginbox form button:hover {
    background-color: #003366;
}

.toppage-register-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
}

.toppage-register-link:hover {
    text-decoration: underline;
}

/* ニュースボックス */
.toppage-newsbox {
    width: 45%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toppage-newsbox h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.toppage-newsbox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toppage-newsbox ul li {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.toppage-newsbox ul li strong {
    font-size: 1.2rem;
    color: #004d99;
}

.toppage-newsbox ul li p {
    margin: 5px 0;
    color: #333;
}

.toppage-newsbox ul li small {
    color: #666;
    font-size: 0.9rem;
}

/* 管理者ダッシュボード用スタイル */
.admin-dashboard-main {
    text-align: center;
    padding: 20px;
}

.admin-dashboard-main ul {
    list-style: none;
    padding: 0;
}

.admin-dashboard-main ul li {
    display: inline-block;
    margin: 10px;
}

.admin-dashboard-main ul li a {
    display: block;
    padding: 10px 20px;
    background-color: #004d99;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.admin-dashboard-main ul li a:hover {
    background-color: #003366;
}

/* ユーザー一覧用スタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    text-align: left;
    padding: 10px;
}

table th {
    background-color: #004d99;
    color: white;
}

table td {
    background-color: #f9f9f9;
}

/* 共通マイページレイアウト */
.mypage-main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.user-info {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info h2 {
    margin-top: 0;
}

/* 仮会員専用メニュー */
.temporary-menu a {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #ffc107;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.temporary-menu a:hover {
    background-color: #ff9800;
}

/* 本会員専用メニュー */
.member-menu a {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #004d99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.member-menu a:hover {
    background-color: #003366;
}

/* 仮会員マイページ */
.mypage-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mypage-user-info-box {
    width: 40%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mypage-user-info-box h2 {
    margin-top: 0;
    color: #004d99;
}

.mypage-user-info-box p {
    margin: 10px 0;
    font-size: 1rem;
}

.mypage-button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #ffc107;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.mypage-button:hover {
    background-color: #ff9800;
}

.mypage-logout-button {
    background-color: #e53935;
}

.mypage-logout-button:hover {
    background-color: #c62828;
}

.mypage-news-box {
    width: 55%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mypage-news-box h2 {
    margin-top: 0;
    color: #004d99;
}

.mypage-news-box ul {
    list-style: none;
    padding: 0;
}

.mypage-news-box ul li {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* プラン選択ページ */
.plantop-main {
    text-align: center;
    padding: 20px;
}

.plantop-main h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #004d99;
}

.plantop-main p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
}

.plans-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.plan-box {
    width: 30%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.plan-box h2 {
    font-size: 1.5rem;
    color: #004d99;
    margin-bottom: 15px;
}

.plan-box .plan-price {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.select-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffc107;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-button:hover {
    background-color: #ff9800;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #004d99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.back-button:hover {
    background-color: #003366;
}


/* プラン確認ページ */
.plan-confirm-main {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.plan-confirm-main h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #004d99;
}

.plan-details {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plan-details h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.plan-details .plan-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004d99;
    margin-bottom: 10px;
}

.contract-agreement {
    text-align: left;
    margin-bottom: 30px;
}

.contract-agreement h3 {
    font-size: 1.2rem;
    color: #004d99;
}

.contract-content {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.contract-agreement label {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.contract-agreement input[type="checkbox"] {
    margin-right: 10px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.back-button {
    padding: 10px 20px;
    background-color: #004d99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #003366;
}

.next-button {
    padding: 10px 20px;
    background-color: #ffc107;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.next-button:hover {
    background-color: #ff9800;
}

/* 決済ページ */
.settlement-main {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.settlement-main h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #004d99;
}

.plan-details {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plan-details h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.plan-details .plan-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004d99;
    margin-bottom: 10px;
}

.payment-methods {
    text-align: left;
    margin-bottom: 30px;
}

.payment-methods h3 {
    font-size: 1.2rem;
    color: #004d99;
    margin-bottom: 10px;
}

.payment-methods label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.payment-methods input[type="radio"] {
    margin-right: 10px;
}

.next-button {
    padding: 10px 20px;
    background-color: #ffc107;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.next-button:hover {
    background-color: #ff9800;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #004d99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.back-button:hover {
    background-color: #003366;
}

/* 売上確認ページ */
.sales-report-main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.sales-report-main h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #004d99;
}

.yearly-sales, .monthly-sales, .overdue-list {
    margin-bottom: 30px;
}

.yearly-sales h2, .monthly-sales h2, .overdue-list h2 {
    font-size: 1.5rem;
    color: #333;
}

.yearly-sales ul, .monthly-sales ul {
    list-style: none;
    padding: 0;
}

.yearly-sales ul li, .monthly-sales ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #666;
}

.overdue-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.overdue-list table th, .overdue-list table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.overdue-list table th {
    background-color: #004d99;
    color: white;
}

.overdue-list table td {
    background-color: #f9f9f9;
}

/* 振込確認ページ */
.bank-confirm-main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.bank-confirm-main h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #004d99;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

.pending-payments table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pending-payments table th, .pending-payments table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.pending-payments table th {
    background-color: #004d99;
    color: white;
}

.pending-payments table td {
    background-color: #f9f9f9;
}


/* ヘッダー */
.header {
    background-color: #004d99;
    color: white;
    padding: 10px 20px;
}

.header .logo {
    font-size: 1.5rem;
    margin: 0;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav ul li a:hover {
    text-decoration: underline;
}

/* フッター */
.footer {
    background-color: #f1f1f1;
    color: #333;
    text-align: center;
    padding: 10px 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 仮会員登録ページ */
.register-title {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    color: #004d99;
}

.register-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.register-button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #004d99;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-button:hover {
    background-color: #003366;
}

.error-message {
    color: #ff0000;
    text-align: center;
    margin-bottom: 15px;
}

.success-message {
    color: #008000;
    text-align: center;
    margin-bottom: 15px;
}

/* 共通マイページボタン */
.mypage-button {
    display: block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #004d99; /* メインカラー（青） */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mypage-button:hover {
    background-color: #003366; /* ホバー時の濃い青 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ログアウト専用ボタン */
.mypage-logout-button {
    background-color: #e53935; /* 赤 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mypage-logout-button:hover {
    background-color: #c62828; /* ホバー時の濃い赤 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
