/* 常連さんシステム - スタイルシート */

/* 全体のベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* スクロール防止 */
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.5;
    padding: 2vh 3vw; /* 上下左右に薄い余白 */
}

/* ヘッダー */
h1 {
    color: #888888; /* 常連は灰色 */
    font-size: 2em;
    margin-top: 3vh;
    margin-bottom: 2.5vh;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.1em;
}

h2 {
    color: #666666;
    font-size: 1.5em;
    margin: 2vh 0 1vh 0;
    font-weight: 300;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5vh;
}

h3 {
    color: #666666;
    font-size: 1.1em;
    margin: 1.5vh 0 0.5vh 0;
    font-weight: 400;
}

/* コンテナ */
.container {
    max-width: 1200px;
    height: 96vh; /* ビューポートの高さに合わせる */
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2vh 3vw;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto; /* 必要な場合のみスクロール */
    overflow-x: hidden;
}

/* リンク */
a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #555555;
    text-decoration: underline;
}

/* Google Sign-In Button */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    margin: 1vh auto;
    display: block;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

/* ボタン */
button, .btn {
    background-color: #888888;
    color: #ffffff;
    border: none;
    padding: 1vh 2vw;
    font-size: 0.95em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0.5vh 0.5vw;
}

button:hover, .btn:hover {
    background-color: #666666;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 削除ボタン */
button.danger {
    background-color: #e74c3c;
}

button.danger:hover {
    background-color: #c0392b;
}

/* フォーム */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8vh 1vw;
    margin: 0.5vh 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #888888;
}

input[readonly] {
    background-color: #f8f8f8;
}

textarea {
    resize: vertical;
    min-height: 8vh;
    max-height: 12vh;
}

/* メッセージ */
.error {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 1vh 1.5vw;
    border-radius: 5px;
    margin: 1vh 0;
    border-left: 4px solid #e74c3c;
    font-size: 0.9em;
}

.success {
    color: #27ae60;
    background-color: #d4edda;
    padding: 1vh 1.5vw;
    border-radius: 5px;
    margin: 1vh 0;
    border-left: 4px solid #27ae60;
    font-size: 0.9em;
}

/* カード */
.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5vh 1.5vw;
    margin: 1vh 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-highlight {
    background-color: #f8f9fa;
    border: 2px solid #888888;
}

/* セクション */
.section {
    margin: 30px 0;
}

/* ユーザー情報 */
.user-info {
    text-align: center;
    margin: 1vh 0;
    padding: 1vh 1.5vw;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.95em;
}

/* スライドショートグル */
input[type="checkbox"] {
    cursor: pointer;
    margin-right: 0.3vw;
}

label {
    cursor: pointer;
    user-select: none;
}

/* ナビゲーション */
.nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.nav li {
    margin: 10px 0;
}

/* HR */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* 注意書き */
.note {
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 0.95em;
}

.warning {
    background-color: #ffe6e6;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin: 1vh 0;
    font-size: 0.75em;
}

.pagination button {
    margin: 0 0.5vw;
    padding: 0.5vh 1.5vw;
    font-size: 0.85em;
}

.pagination span {
    font-size: 0.85em;
    color: #666666;
}

/* ヘッダーバー */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

/* フッター */
.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888888;
    font-size: 0.9em;
}

