@charset "utf-8";

/* 全ページ共通 */
#contents {
    padding: 20px 16px 30px 16px;
}

#footer {
    margin-bottom: 8px;
}

h2 {
    padding-left: 14px;
    color: rgb(78, 14, 57);
    font-weight: bold;
}

h3 {
    border-left: 6px solid #406;
    border-top: none/*1px solid #ccc*/;
    border-bottom: 1px solid #ccc;
    border-right: none/*1px solid #ccc*/;
    padding-left: 14px;
    color: rgb(78, 14, 57);
    font-weight: bold;
    margin-top: 20px;
}

.content {
    margin: 4px 14px 36px 14px;
}

.content ul {
    margin: 8px 14px;
}

.rule-title {
    margin-top: 24px;
    margin-bottom: 8px;
}

.period-date {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-left: 8px;
}

.rules {
    padding: 8px 20px;
    margin-bottom: 28px;
    background: #f8f8fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rules li {
    margin: 8px 18px;
    padding-left: 0;
    line-height: 1.6;
}

.rules li::marker {
    color: #6644aa;
    font-size: inherit;
}

.item-heading {
    font-weight: bold;
    margin-left: 0;
    margin-bottom: 6px;
}

.item-body {
    margin-left: 10px;
    margin-bottom: 14px;
}

/* 課題楽曲紹介 */
.music-title {
    font-family: 'Century Gothic';
    font-size: 40px;
    color: #888;
    text-align: center;
}

/* イベントページ */
.status {
    margin: 10px 10px;
}

.status-item {
    font-size: inherit;
    padding: 10px;
    display: inline-block;
    border-radius: 4px;
    border: 2px solid #000;
    margin: 8px;
}

.status-item-active {
    background: #ffb;
}

.schedule {
    margin: 8px;
}

.btn,
.btn:link,
.btn:visited {
    font-size: inherit;
    font-weight: bold;
    font-family: system-ui;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 8px;
    border: 1px solid #88d;
    background: #48486C;
    color: #fff;
    margin: 8px;
    text-decoration: none;
    box-shadow: 1px 1px 3px #888;
}

.btn:hover {
    background: #66a;
}

.btn-template-download,
.btn-template-download:link,
.btn-template-download:visited {
    border: 1px solid #8e0;
    background: #4a0;
}

.btn-template-download:hover {
    background: #4c0;
}

.btn-review {
    font-size: 12px !important;
    padding: 5px 10px !important;
    margin: 5px !important;
}

.btn-sm {
    font-size: 12px !important;
    padding: 5px 10px !important;
    margin: 5px !important;
}

.btn-md {
    font-size: 14px !important;
    padding: 8px 14px !important;
    margin: 6px !important;
}

.btn-review,
.btn-review:link,
.btn-review:visited {
    border: 1px solid #8e0;
    background: #4a0;
}

.btn-review:hover {
    background: #4c0;
}

.btn-danger,
.btn-danger:link,
.btn-danger:visited {
    border: 1px solid #f42;
    background: #d00;
}

.btn-danger:hover {
    background: #f84;
}

.btn-gray,
.btn-gray:link,
.btn-gray:visited {
    border: 1px solid #eee;
    background: #566;
}

.btn-gray:hover {
    background: #788;
}

.head-text {
    margin-bottom: 12px;
}

.content table {
    text-align: center;
    letter-spacing: 0.05em;
    margin: 20px;
    border-collapse: collapse;
}

.content td {
    text-align: center;
    padding: 0.4em;
    border: solid 1px black;
    min-width: 80px;
}

.content th {
    background: #555;
    color: #fff;
    text-align: center;
    padding: 0.4em;
    border: solid 1px black;
    min-width: 80px;
}

.application-form td {
    min-width: 140px;
}

.application-form textarea {
    width: 360px;
    height: 120px;
}

.application-form input,
.application-form select {
    width: 100%;
}

.application-form-label {
    background: #555;
    color: #fff;
}

.review-item p {
    margin-left: 20px;
    margin-bottom: 6px !important;
}

.review-table {
    table-layout: fixed;
    margin-top: 8px !important;
}

.review-table td {
    padding: 12px;
    text-align: left;
}

.review-table th {
    text-align: center;
    background: #555;
    color: #fff;
}

.review-impression-table td {
    padding: 4px;
    text-align: center;
}

.review-impression-table td.comment {
    padding-left: 12px;
    padding-right: 12px;
    text-align: left;
}

.width-xxs {
    min-width: 50px !important;
    max-width: 50px !important;
    width: 50px !important;
}

.width-xs {
    min-width: 80px !important;
    max-width: 80px !important;
    width: 80px !important;
}

.width-sm {
    width: 120px;
}

.width-md {
    width: 180px;
}

.width-lg {
    width: 240px;
}

.alert {
    display: block;
    padding: 20px;
    border-radius: 8px;
    margin: 12px 0;
}

.alert-info {
    background: #cef;
    border: 1px solid #abe;
}

.alert-success {
    background: #cfc;
    border: 1px solid #8d8;
}

.alert-danger {
    background: #fcc;
    border: 1px solid #e88;
}

.alert-warning {
    background: #ffc;
    border: 1px solid #ee8;
}

.alert p {
    margin: 0 12px !important;
}

.header-black {
    background: rgb(51, 19, 66);
    color: #fff;
}

.team-list li {
    margin-bottom:4px;
}

.team-list a:link,
.team-list a:visited,
.team-list a:hover,
.team-list a:active {
    color: #334;
}

.hidden {
    display: none;
}

/* =================================
   フォーム入力要素の基本スタイル
   ================================= */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #6644aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 68, 170, 0.15);
    outline: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
    border-color: #bbb;
}

/* チェックボックス */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    vertical-align: middle;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: #6644aa;
    border-color: #6644aa;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover {
    border-color: #6644aa;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(102, 68, 170, 0.15);
    outline: none;
}

/* =================================
   メンバー入力フォーム
   ================================= */

#members-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.member-row {
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.member-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.member-row.leader-row {
    border-left: 4px solid #6644aa;
}

.member-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.member-row-header .btn-delete-member {
    margin-left: auto;
}

.member-row-roles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
}

.member-label {
    min-width: 60px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.member-row.leader-row .member-label {
    color: #6644aa;
}

.member-name {
    flex: 1;
    min-width: 120px;
    max-width: 250px;
}

.btn-delete-member {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    background: #e55;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-delete-member:hover {
    background: #c33;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.checkbox-label:hover {
    background: #f0f0f0;
}

.other-text {
    width: 120px !important;
    min-width: 120px;
}

.other-text.hidden {
    display: none;
}

#add-member-btn {
    margin-top: 12px;
}

/* =================================
   フォームセクションスタイル
   ================================= */

.form-section {
    margin-bottom: 20px;
    background: #f8f8fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e8e8ec;
}

.form-section h3,
.form-section h4 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 15px;
    color: #444;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.form-section h4 {
    font-size: 14px;
    font-weight: normal;
}

.form-section .required {
    font-size: 10px;
    color: #fff;
    background: #d35;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.form-section .optional {
    font-size: 10px;
    color: #fff;
    background: #999;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.form-hint {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.form-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.form-field input {
    width: 100%;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="password"] {
    width: 100%;
    max-width: 400px;
}

.form-section textarea {
    width: 100%;
    max-width: 500px;
    min-height: 100px;
    resize: vertical;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 400px;
}

.input-with-prefix .input-prefix {
    font-size: inherit;
    color: #555;
}

.input-with-prefix input {
    flex: 1;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* =================================
   フォームフィールド行スタイル
   ================================= */

.form-field-row {
    margin-bottom: 16px;
}

.form-field-row:last-child {
    margin-bottom: 0;
}

.form-field-row > label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.form-field-row > input[type="text"],
.form-field-row > input[type="email"],
.form-field-row > input[type="password"],
.form-field-row > input[type="number"],
.form-field-row > textarea {
    width: 100%;
    max-width: 500px;
}

.form-field-row > .form-hint {
    margin: 0 0 6px 0;
}

.team-info {
    font-size: inherit;
    color: #333;
    margin: 0;
}

.song-section {
    border-left: 4px solid #6644aa;
}

/* =================================
   チェックリストスタイル
   ================================= */

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist label {
    flex: 1;
    cursor: pointer;
    line-height: 1.5;
}

/* =================================
   アップロードステータス
   ================================= */

.upload-status {
    margin-top: 12px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
}

.upload-status .status-ok {
    color: #2e7d32;
}

.upload-status span {
    color: #555;
    font-size: 13px;
}

.upload-status .form-hint {
    margin-top: 8px;
}

/* =================================
   評価フォームスタイル
   ================================= */

.song-info {
    font-size: 15px;
    color: #555;
    margin: 8px 0 0 0;
}

.form-actions-flex {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.form-actions-flex .btn {
    flex: 1;
    max-width: 200px;
}

/* =================================
   折りたたみ詳細
   ================================= */

details.rule-details {
    margin: 8px 0 8px 18px;
}

details.rule-details summary {
    cursor: pointer;
    color: #406;
    font-size: 14px;
}

details.rule-details summary:hover {
    text-decoration: underline;
}

details.rule-details[open] summary {
    margin-bottom: 8px;
}

details.rule-details ul {
    margin: 0;
    padding-left: 20px;
}
