@charset 'UTF-8'; /* PC */
/**
 * ViewportScale v0.2.1
 * Copyright (c) 2018 Kite
 * MIT License
 */
/*==========================================================================
# reset - ブラウザの差異や不要なスタイルを無くすためのスタイル
========================================================================== */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td,
small,
button,
time,
figure {
    border: 0;
    /* font: inherit; */
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    /* font-family: "source-han-sans-japanese", sans-serif; */
    /* font-weight: 400; */
    /* font-style: normal; */
}

html {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

li,
dd {
    list-style-type: none;
}

header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
    display: block;
}

img {
    border: none;
    vertical-align: bottom;
}

a {
    /* cursor: pointer; */
    text-decoration: none;
}

html {
    font-size: 62.5%;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    position: relative;
    color: #000;
    font-family: "source-han-sans-japanese", "ヒラギノ角ゴ Pro W3",
        "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック",
        "MS PGothic", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    background: #fff;
}

p {
    word-wrap: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
}

a,
a:hover {
    text-decoration: none;
    color: #000000;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

a:hover {
    opacity: 0.6;
}

.left,
.fl {
    float: left;
}

.right,
.fr {
    float: right;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}

.hv:hover {
    opacity: 0.6;
}

/*
.font-min {
    font-family: ten-mincho, serif;
    font-weight: 400;
    font-style: normal;
}
*/
.sp {
    display: none;
}

.pc {
    display: block;
}

.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flexbox;
    display: -moz-flexbox;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-box-lines: multiple;
    -moz-box-lines: multiple;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.txt-center {
    text-align: center;
}

.scroll::-webkit-scrollbar {
    width: 8px;
}

.scroll::-webkit-scrollbar-thumb {
    background: #f8c384;
    border-radius: 10px;
}

.scroll::-webkit-scrollbar-track-piece:start {
    background: #ffead2;
}

.scroll::-webkit-scrollbar-track-piece:end {
    background: #fff;
}

/*============================
COMMON
============================*/
img {
    max-width: 100%;
    height: auto;
}

.hide {
    display: none;
}

.btn01 {
    display: block;
    color: #fff;
    background: #68ea68;
    padding: 18px 3% 20px calc(3% + 30px);
    border-radius: 50px;
    max-width: 250px;
    position: relative;
}

.btn01::before {
    content: "";
    background-image: url(../img/v_01_white.svg);
    width: 15px;
    height: 17px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: calc(3% + 20px);
}

.btn01:hover {
    color: #fff;
}

.btn02 {
    display: block;
    color: #68ea68;
    padding: 18px 3% 20px calc(3% + 50px);
    border-radius: 50px;
    position: relative;
    border: 1px solid;
    max-width: 250px;
}

.btn02::before {
    content: "";
    background-image: url(../img/v_01_red.svg);
    width: 15px;
    height: 17px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: calc(3% + 20px);
}

.btn02:hover {
    color: #68ea68;
}

.btn02.white {
    color: #fff;
}

.btn02.white::before {
    background-image: url(../img/v_01_white.svg);
}

.btn02.white:hover {
    color: #fff;
}

.btn03 {
    display: block;
    color: #fff;
    padding: 0 0 0 30px;
    position: relative;
}

.btn03::before {
    content: "";
    background-image: url(../img/v_01_white.svg);
    width: 15px;
    height: 17px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
}

.btn03:hover {
    color: #fff;
}

.section {
    padding: 20px 3% 20px;
}

.section__ttl {
    color: #68ea68;
    font-size: 20px;
}

.section__ttl .en {
    font-size: 44px;
    display: block;
    line-height: 1;
    padding: 0 0 6px;
    color: #000;
    font-family: "din-condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.1em;
}

.section__ttl.center {
    text-align: center;
}

.section__ttl.center .en {
}

.section__ttl.white {
    color: #fff;
}

.section__ttl.white .en {
    color: #fff;
}

.header {
    /* position: fixed; */
    z-index: 99;
    width: 100%;
    padding: 30px 0;
    position: absolute;
}

.header .container {
    max-width: 100%;
    padding: 0 3%;
    align-items: center;
}

.header_logo__wrap {
    width: 420px;
}

.header_logo__wrap a {
    display: block;
}

.header_logo {
}

.header_logo img {
}

.header_navi__wrap {
    width: calc(100% - 500px);
    align-items: center;
}

.header_navi {
    width: calc(100% - 250px);
}

.header_navi__list {
    justify-content: flex-end;
}

.header_navi__list li {
    margin: 0 3% 0 0;
}

.header_navi__list a {
    font-size: 14px;
    color: #fff;
}

.header_contact {
}

.header_contact .btn01 {
    width: 250px;
    padding: 18px 3% 20px calc(3% + 57px);
}

.sp_menu {
    display: none;
    width: 50px;
    height: 50px;
    background: #68ea68;
    position: relative;
}

.sp_menu span {
    height: 2px;
    position: absolute;
    background: #fff;
    margin: auto;
    left: 0;
    right: 0;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.sp_menu span:nth-child(1) {
    width: 30px;
    top: 18px;
}

.sp_menu span:nth-child(2) {
    width: 15px;
    top: 27px;
    left: 15px;
}

.footer {
    padding: 80px 3%;
}

.footer .container {
}

.footer_sns__wrap {
    margin: 0 auto 30px;
}

.footer_sns {
    justify-content: center;
}

.footer_sns li {
    margin: 0 3%;
    width: 38px;
}

.footer_sns a {
}

.footer_sns img {
}

.footer_logo__wrap {
}

.footer_logo {
    display: block;
    width: 420px;
    margin: 0 auto 20px;
}

.footer_logo img {
}

.footer_logo__text {
    text-align: center;
}

.footer_navi__wrap {
    padding: 80px 0 40px;
}

.footer_navi {
}

.footer_navi__list {
    align-items: center;
    justify-content: center;
}

.footer_navi__list li {
    margin: 0 2%;
}

.footer_navi__list a {
    font-weight: normal;
}

.login-page {
    background-image: url('{{ asset("images/background.png") }}');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-form-container div {
    margin-bottom: 20px;
}

.login-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form-container input[type="login_id"],
.login-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form-container button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form-container button[type="submit"]:hover {
    background-color: #0056b3;
}

.dashboard-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.user-info-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.container {
    display: flex; /* 内部要素のフレックス */
    flex-direction: column; /* 要素を縦方向に並べる */
    justify-content: center; /* コンテンツの垂直方向の中央寄せ */
    align-items: center; /* コンテンツの水平方向の中央寄せ */
}

.dashboard-container h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.dashboard-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.dashboard-container .logout-btn {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.dashboard-container .logout-btn:hover {
    background-color: #b02a37;
}
.user_info {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.user-info-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.section__ttl {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.user-row {
    display: flex; /* フレックスボックスで配置 */
    align-items: center; /* 縦方向を中央揃え */
    margin-bottom: 10px;
}

.user_text {
    flex: 0 0 150px; /* ラベルの幅を固定 */
    font-weight: bold; /* ラベルを太字に */
    text-align: left; /* 左揃え */
    margin: 0; /* 余白をリセット */
}

.user_value {
    flex: 1; /* 値の部分を伸縮可能に */
    text-align: left; /* 左揃え */
    margin: 0; /* 余白をリセット */
    padding-left: 10px; /* ラベルとの間に余白を追加 */
}

.user-row span,
.user-row p {
    line-height: 1.5; /* 行の高さを揃えて見やすくする */
}

.user_name,
.user_email {
    margin-left: 20px; /* 必要に応じて余白を調整 */
}

.results-table {
    width: 100%; /* テーブルをコンテナいっぱいに広げる */
    border-collapse: collapse; /* 枠線を統一 */
    margin-top: 15px; /* テーブル上部に余白を追加 */
    text-align: center; /* 中央揃え */
}

.results-table th,
.results-table td {
    border: 1px solid #ccc; /* 枠線の色を指定 */
    padding: 10px; /* セルの余白を調整 */
}

.results-table th {
    background-color: #f7f7f7; /* ヘッダーの背景色 */
    font-weight: bold; /* ヘッダーの文字を太字 */
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9; /* 偶数行の背景色 */
}

.dropdown-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* ドロップダウンと次の要素の間隔 */
    margin-bottom: 20px; /* ドロップダウンと次の要素の間隔 */
}

.dropdown-label {
    font-size: 14px;
    margin-right: 10px; /* ラベルとセレクトボックスの間隔 */
    color: #333; /* テキスト色 */
}

.dropdown-select {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.table-records {
    width: 100%;
    border-collapse: collapse;
}

.table-records__header,
.table-records__cell {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table-records__header {
    background-color: #f4f4f4;
}

.form-record {
    margin-bottom: 20px;
}

.btn-record {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-record:hover {
    background-color: #45a049;
}

.modal-users-overlay {
    position: absolute;
    top: 100%; /* ボタンの下に配置 */
    left: 0;
    width: 20%;
    background-color: rgba(0, 0, 0, 0.1); /* 背景の透明度 */
    display: none; /* 初期状態は非表示 */
    z-index: 1000;
}

.modal-users-content {
    background-color: #fff; /* 白背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
    width: 100%; /* ボタン幅に合わせる */
}

.input-user-id {
    width: 24px; /* ボタン幅に合わせる */
}
.user-register .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.user-register h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: #68ea68;
}

.user-register .form-group {
    margin-bottom: 20px;
}

.user-register .form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.user-register .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.user-register .form-control:focus {
    border-color: #68ea68;
    outline: none;
}

.user-register .button {
    width: 100%;
    background-color: #68ea68;
    color: #fff;
    font-size: 16px;
    padding: 14px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-register .button:hover {
    background-color: #4c1fab;
}

.user-register .alert {
    background-color: #ffdede;
    color: #a33;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.user-list table {
    width: 100%;
    border-collapse: collapse;
}

.user-list table th,
.user-list table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.user-list table thead tr {
    background-color: #68ea68;
    color: #fff;
}

.user-list .button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #68ea68;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.user-list .button:hover {
    background-color: #4a1d94;
}

.user-list .register-button-wrapper {
    margin-bottom: 15px;
}

.user-list .user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-list .user-table th,
.user-list .user-table td {
    border: 1px solid #000;
    padding: 10px;
}

.user-list .user-table thead tr {
    background-color: #68ea68;
    color: #fff;
}

.user-list .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    justify-content: center;
    gap: 8px;
}

.user-list .pagination li {
    display: inline-block;
}

.user-list .pagination li a,
.user-list .pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #68ea68;
    color: #68ea68;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.user-list .pagination li a:hover {
    background-color: #68ea68;
    color: #fff;
}

.user-list .pagination li.active span {
    background-color: #68ea68;
    color: white;
    border-color: #68ea68;
    cursor: default;
}

.user-list .pagination li.disabled span {
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

.daily-ranking .top3 {
    display: flex;
    flex-direction: column; /* ← まずは縦に3位まで並べる */
    gap: 12px;
    align-items: flex-start;
}

.daily-ranking .top-card {
    display: flex;
    align-items: center;
    gap: 200px;
    background: #f2f2f2;
    padding: 16px 24px;
    border-radius: 8px;

    /* 横幅を広くする */
    max-width: 1000px; /* ← 例: 必要に応じて変更可能 */
    width: 100%;
}

.daily-ranking .rank-big {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    min-width: 50px;
}

.daily-ranking .user {
    font-size: 16px;
    color: #333;
}

.daily-ranking .points-big {
    font-size: 16px;
    color: #333;
    margin-left: auto; /* ポイントを右端に寄せる */
}

.daily-ranking .user {
    margin: 0 auto;
    text-align: center;
    display: block;
}

.daily-ranking .points-big {
    font-size: 18px;
    color: #333;
}

.daily-ranking .rank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列に固定 */
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.daily-ranking .rank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

.daily-ranking .rank-card .rank {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    min-width: 50px;
}

.daily-ranking .rank-card .user {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.daily-ranking .rank-card .points {
    font-size: 14px;
    color: #666;
    margin-left: auto; /* ポイントを右端に寄せる */
}

.daily-ranking .space {
    margin-top: 30px;
}
.daily-ranking .top-1 {
    background: linear-gradient(
        135deg,
        #ffd700,
        #ffeeaa
    ); /* ゴールド風グラデーション */
    color: #000;
    font-weight: bold;
}

.daily-ranking .top-2 {
    background: linear-gradient(
        135deg,
        #e9e9e9,
        #c4c4ff
    ); /* シルバー風グラデーション */
    color: #000;
    font-weight: bold;
}

.daily-ranking .top-3 {
    background: linear-gradient(
        135deg,
        #cd7f32,
        #ffd58d
    ); /* ブロンズ風グラデーション */
    color: #fff;
    font-weight: bold;
}

.daily-ranking .top-4 {
    background: linear-gradient(
        135deg,
        #b0e0e6,
        #cdffff
    ); /* 4位：ペールブルー調 */
    color: #333;
    font-weight: bold;
}

.daily-ranking .top-5 {
    background: linear-gradient(135deg, #d8bfd8, #c6c6ff); /* 5位：淡い紫系 */
    color: #333;
    font-weight: bold;
}

.medal-info-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 500px; /* 2つ並べても窮屈でない幅に拡張 */
    width: 100%;
    margin: 0 auto; /* 中央寄せ */
}
.medal-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

    padding: 0, 30px, 30px, 30px;
    max-width: 500px; /* 2つ並べても窮屈でない幅に拡張 */
    width: 100%;
    margin: 0 auto; /* 中央寄せ */
}

.medal-images {
    width: calc(50% - 15px); /* 2列に収まるように幅調整 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-button {
    display: flex;
    /* display: inline-block; */
    padding: 4px 12px;
    background-color: #68ea68;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    justify-content: center;
}

.edit-button:hover {
    background-color: #4b1fa0;
}

.user-info-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.yakuman-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.yakuman-table th,
.yakuman-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.site-header {
    background-color: #ffffff;
    /* padding: 15px 20px; */
    text-align: left;
}

.site-header .container {
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 0 20px; */
    display: flex;
    align-items: center;
}

.logo {
    height: 100px;
}
.ranking-table {
    width: 700px; /* 最大幅を700pxに固定 */
    max-width: 90vw; /* 画面幅が狭い場合は90%まで縮小 */
    margin: 1rem auto 0; /* 上マージン1rem、左右中央寄せ */
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ranking-table th,
.ranking-table td {
    border: 1px solid #ccc;
    padding: 0.6rem 1rem;
    text-align: center;
}

.ranking-table th {
    background-color: #68ea68;
    color: white;
    font-weight: bold;
}

.ranking-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ranking-table tbody tr:hover {
    background-color: #d0e7ff;
    transition: background-color 0.3s ease;
}

@media (max-width: 600px) {
    .ranking-table {
        width: 100%; /* モバイルは幅100% */
    }
    .ranking-table th,
    .ranking-table td {
        padding: 0.4rem 0.6rem;
    }
}
