/* =========================
   ベーススタイル
========================= */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #C8A14D;
    margin: 0;
    padding: 0;
    display: flex;
    background-image: url(../images/Lighters_Logo.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 50%;
    height: 100vh;
}

body::after,
body::before {
    content: '';
    display: block;
    width: 100%;
    background-color: #411414;
    position: fixed;
}

body::before {
    height: 46px;
    top: 0;
    left: 0;
}

body::after {
    height: 24px;
    bottom: 0;
    left: 0;
}

header,
footer {
    background: #411414;
    color: #fff;
    text-align: center;
}

.container {
    max-width: 480px;
    /* PCでもスマホでも幅はほぼ同じ */
    width: 100%;
    margin-left: 50%;
    background: #f8f2e5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}
.container::-webkit-scrollbar {
    width: 8px;  /* 横幅 */
}

.container::-webkit-scrollbar-track {
    background: #f0f0f0;  /* 背景 */
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb {
    background: #FFC107;  /* 指で掴む部分 */
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #FFC107;
}

main {
    padding: 1rem;
}

h1 {
    margin: 0;
}

h3 {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #C8A14D, #eace95);
    color: #411414;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;        /* 上下の間隔 */
}

.flex {
    display: flex;
    gap: 2px;
}

.between {
    justify-content: space-between;
}

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

/* =========================
   カラースタイル
========================= */
.color-gold {
    color: #C8A14D !important;
}

.color-red {
    color: #7B1C23 !important;
}

.color-dark {
    color: #411414 !important;
}

.color-white {
    color: #fff !important;
}
.color-green{
    color:#006400;
}
.bg-gold {
    background: #C8A14D !important;
}

.bg-red {
    background: #7B1C23 !important;
}

.bg-dark {
    background: #411414 !important;
}

.bg-white {
    background: #fff !important;
}

/* =========================
   カレンダー（テーブル）
========================= */
.calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.calendar th,
.calendar td {
    width: 14.28%;
    border: 1px solid #ddd;
}

.calendar th {
    background: #C8A14D;
    color: #fff;
    font-weight: bold;
}
.calendar td {
    line-height: 32px;
    height: 100%;
}

#practice-calendar td.practice-day {
    background: linear-gradient(135deg, #ffeb3b, #FFC107);
    color: #411414;
    cursor: pointer;
    font-weight: bold;
}

#practice-calendar td.practice-day:hover {
    background: #ffc107;
}
#practice-modal{
    display:none;
    position:fixed;
    width: 75%;
    max-width: 480px;
    top:20%;
    left:50%;
    transform:translateX(-50%);
    background:#fff;
    padding:20px;
    border:1px solid #ccc;
    z-index:1000;
}
.practice-page-content {
    background-color: #fff;
    padding: .5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}
.practice-page-content p{
    margin-block-start: 0;
    margin-block-end: 0;
}
/* =========================
   チェックボックス付きセル
========================= */
.calendar label {
    display: block;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 2px;
}

/* チェックボックスは非表示 */
.calendar input[type="checkbox"] {
    display: none;
}

.calendar input[type="checkbox"]+span {
    display: inline-block;
    width: 100%;
    background: #aaa;
    color: #444;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* チェック時にラベル全体を着色 */
.calendar input[type="checkbox"]:checked+span {
    background: #90EE90;
    color: #006400;
}
#modal-children{
    padding:1rem 0;
}
/* =========================
   input,button
========================= */
/* 共通 */
input,
button,
.btn {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 14px;
    transition: all 0.2s ease-in-out;
}

/* 入力欄 */
input[type="text"],
input[type="password"],
input[type="email"] {
    border: 1px solid #ddd;
    background-color: #fff;
}

input:focus {
    border-color: #444;
    box-shadow: 0 0 0 3px rgba(68, 68, 68, 0.2);
    outline: none;
}

/* ボタン */
button,
.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: #2c2c2c;
    /* dark */
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background-color: #444;
}

button:active {
    background-color: #1a1a1a;
    transform: scale(0.98);
}

button:disabled {
    background-color: #aaa;
    color: #666;
    cursor: not-allowed;
}

/* =========================
　ログイン
========================= */
.login-remember input {
    width: 32px;
}

input[type="submit"] {
    background-color: #411414;
    color: #C8A14D;
    outline: none;
    border: none;
}

input[type="submit"]:hover {
    opacity: .75;
}

/* =========================
   スマホ用スタイル
========================= */
@media screen and (max-width: 480px) {
    body {
        background-size: 40%;
    }
    body::after,
    body::before {
        display: none;
    }

    .container {
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
        justify-content: start;
        background-image:none;
        overflow-y:auto;
    }

    .container.bg-none{
        /*background-image:none;*/
    }
    header,
    footer {
        font-size: 0.9rem;
    }

    main {
        padding: 0.5rem;
        flex:1;
    }
    main::before{
        content:'';
        display: block;
        width:100%;
        min-height: 140px;
        background-image: url(../images/Lighters_Logo-s.svg);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: contain;
    }
    h1 {
        font-size: 1.5rem;
    }
}