body { font-family: sans-serif; background: #f9f9f9; color: #333; margin: 0; padding: 0; background-attachment: fixed; background-color: #000000; background-size: 100% 100%; background-repeat : no-repeat; background-position: center center; background-image: url(../img/musubi-bak.jpg); }
header { background: #ff6b81; color: #fff; padding: 15px; text-align: center; }
header h1 { margin: 0; font-size: 24px; }
nav { margin-top: 10px; }
nav a { color: #fff; margin: 0 10px; text-decoration: none; font-weight: bold; font-size: 14px; }
nav a:hover { text-decoration: underline; }
.container { max-width: 1000px; margin: 20px auto; padding: 30px; background: #ffffff; border: 16px double #e2b2bc; outline: 4px dotted #e2b2bc; outline-offset: -12px; box-shadow: 0 0 0 4px #fff inset, 0 0 15px rgba(226, 178, 188, 0.4), 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 4px; }
h2 { color: #ff6b81; border-bottom: 2px solid #ff6b81; padding-bottom: 5px; margin-top: 0; font-size: clamp(12px, 8.00px + 1.56vw, 18px); }
h3 { color: #ff6b81; border-bottom: 2px solid #ff6b81; padding-bottom: 5px; margin-top: 0; font-size: clamp(12px, 8.00px + 1.56vw, 18px); }
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; font-weight: bold; }
.alert-danger { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; font-weight: bold; }
.issued-pwd-box { background: #fff0f2; border: 2px dashed #ff6b81; padding: 15px; border-radius: 6px; margin-bottom: 25px; text-align: center; color: #c2185b; }
.issued-num { font-size: 28px; font-weight: bold; letter-spacing: 0.1em; color: #ff4757; margin: 10px 0; display: block; }
.flex-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.auth-box { flex: 1; min-width: 280px; background: #fffafb; border: 1px solid #ffccd2; padding: 10px; border-radius: 6px; box-sizing: border-box; display: flex; flex-direction: column; }
.auth-box form { display: flex; flex-direction: column; flex-grow: 1; }
.detail-box-btn { display: inline-block; background: #ff6b81; color: #fff !important; text-decoration: none !important; font-weight: bold; padding: 5px 10px; font-size: 11px; border-radius: 4px; cursor: pointer; }
.detail-box-btn:hover { background: #ff4757; }
.login-theme { background: #f4f6f7; border-color: #ced4da; }
.login-theme h2 { color: #34495e; border-color: #34495e; }
label { font-weight: bold; font-size: 13px; color: #555; display: block; margin-top: 10px; margin-bottom: 3px; }
input[type="text"], input[type="password"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 100%; box-sizing: border-box; font-size: 14px; }
.btn-submit { background: #ff6b81; color: #fff; border: none; padding: 10px 15px; font-weight: bold; border-radius: 4px; cursor: pointer; font-size: 14px; width: 100%; margin-top: auto; padding-top: 10px; box-shadow: 0 2px 4px rgba(255, 107, 129, 0.2); }
.btn-submit:hover { background: #ff4757; }
.btn-login-col { background: #34495e; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-login-col:hover { background: #2c3e50; }
table { width: 100%; border-collapse: collapse; margin-top: 25px; font-size: 13px; }
table th, table td { border: 1px solid #ddd; padding: 8px; text-align: center; vertical-align: middle; }
table th { background: #ffecf0; color: #ff6b81; position: relative; } /* position追加 */
tr:nth-child(even) { background: #fffafb; }
.thumb { width: 20px; height: 25px; object-fit: cover; background: #eee; text-align: center; display: inline-block; border: 1px solid #ddd; border-radius: 2px; }
.marriage-frame-container { max-width: 1000px; margin: 20px auto; padding: 35px 30px; border: 6px double #c5a059; border-radius: 8px; background-color: #fffdf9; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.marriage-title { font-size: 20px; font-weight: bold; color: #c5a059; text-align: center; margin: 0 0 25px 0; padding: 0; display: flex; align-items: center; justify-content: center; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; }
.marriage-title::before,.marriage-title::after { content: ""; flex-grow: 1; max-width: 40px; height: 1px; background-color: #c5a059; margin: 0 15px; }
.marriage-list { margin: 0; padding-left: 20px; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; }
.marriage-list li { font-size: 14px; line-height: 1.3; margin-bottom: 10px; color: #333333; text-align: left; }
.marriage-list li.no-number { list-style-type: none; margin-left: -20px; .marriage-list li:last-child {  margin-bottom: 0; }

.required::before, .required2::before { 
  font-size: 11px; 
  font-weight: bold; 
  padding: 3px 6px; 
  line-height: 1; 
  white-space: nowrap; 
  border-radius: 4px; 
  display: inline-block; 
  vertical-align: middle; 
  margin-right: 8px; /* バッジと文字の間の余白 */
}

/* 必須バッジの見た目 */
.required::before { 
  content: "必須"; 
  background-color: #dc2626; 
  color: #fff; 
}

/* 任意バッジの見た目 */
.required2::before { 
  content: "任意"; 
  background-color: #475569; 
  color: #fff; 
}

/* リストの黒丸を消して見やすくする設定 */
.marriage-frame-container123 ul {
  list-style: none;
  padding-left: 0;
}
.marriage-frame-container123 li {
  margin-bottom: 8px; /* 行間の余白 */
}
@media screen and (min-width: 1024px) {
    .container { margin: 30px auto; padding: 25px; }
    .auth-box { padding: 20px; }
}
@media (min-width: 835px) and (max-width: 1023px) {
    .container { margin: 15px; padding: 15px; }
    .flex-grid { gap: 15px; }
    table th, table td { padding: 8px; font-size: 12px; }
}
@media (min-width: 744px) and (max-width: 834px) {
    .container { margin: 10px; padding: 15px; }
    .flex-grid { gap: 12px; }
    .auth-box { min-width: 45%; }
    table { font-size: 11px; }
    table th, table td { padding: 6px 4px; }
    .issued-num { font-size: 24px; }
}
@media (min-width: 541px) and (max-width: 743px) {
    .container { margin: 8px; padding: 12px; border-radius: 6px; }
    .flex-grid { gap: 15px; margin-bottom: 20px; }
    .auth-box { min-width: 100%; }
    table { font-size: 11px; margin-top: 15px; }
    table th, table td { padding: 5px 2px; }
    .thumb { width: 18px; height: 22px; }
}
@media (min-width: 441px) and (max-width: 540px) {
    header h1 { font-size: 20px; }
    nav a { margin: 0 6px; font-size: 13px; }
    .container { margin: 5px; padding: 10px; }
    .auth-box { min-width: 100%; padding: 12px; }
    .issued-num { font-size: 22px; }
    .alert-success, .alert-danger { padding: 10px; font-size: 13px; }
    table { font-size: 10px; margin-top: 15px; }
    table th, table td { padding: 4px 2px; }
    .thumb { width: 16px; height: 20px; }
}
@media (min-width: 391px) and (max-width: 440px) {
    .container { margin: 5px; padding: 8px; }
    .auth-box { min-width: 100%; padding: 10px; }
    .issued-num { font-size: 20px; }
    table { font-size: 11px; table-layout: fixed; }
    table th, table td { padding: 4px 1px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
    .thumb { width: 14px; height: 18px; }
    .detail-box-btn { padding: 3px 5px; font-size: 10px; }
    table th { color: transparent !important; }
    table th::after { color: #ff6b81; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
    table th:nth-child(1)::after { content: "No"; }
    table th:nth-child(2)::after { content: "名前"; }
    table th:nth-child(3)::after { content: "性別"; }
    table th:nth-child(4)::after { content: "年齢"; }
    table th:nth-child(5)::after { content: "住所"; }
    table th:nth-child(6)::after { content: "血液"; }
    table th:nth-child(7)::after { content: "写真"; }
    table th:nth-child(8)::after { content: "詳細"; }
    table th:nth-child(9)::after { content: "回数"; }
    table th:nth-child(10)::after { content: "日付"; }
}
@media (min-width: 381px) and (max-width: 390px) {
    .container { margin: 4px; padding: 6px; }
    .auth-box { min-width: 100%; }
    table { font-size: 10px; table-layout: fixed; }
    table th, table td { padding: 3px 1px; }
    .thumb { width: 13px; height: 17px; }
    .detail-box-btn { padding: 2px 4px; font-size: 9px; }
    table th { color: transparent !important; }
    table th::after { color: #ff6b81; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
    table th:nth-child(1)::after { content: "No"; }
    table th:nth-child(2)::after { content: "名前"; }
    table th:nth-child(3)::after { content: "性別"; }
    table th:nth-child(4)::after { content: "年齢"; }
    table th:nth-child(5)::after { content: "住所"; }
    table th:nth-child(6)::after { content: "血液"; }
    table th:nth-child(7)::after { content: "写真"; }
    table th:nth-child(8)::after { content: "詳細"; }
    table th:nth-child(9)::after { content: "回数"; }
    table th:nth-child(10)::after { content: "日付"; }
}
@media (min-width: 375px) and (max-width: 380px) {
    header h1 { font-size: 18px; }
    nav a { margin: 0 5px; font-size: 12px; }
    .container { margin: 4px; padding: 5px; }
    table { font-size: 9.5px; table-layout: fixed; }
    table th, table td { padding: 3px 0px; }
    .thumb { width: 12px; height: 16px; }
    .detail-box-btn { padding: 1px 3px; font-size: 9px; }
    table th { color: transparent !important; }
    table th::after { color: #ff6b81; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
    table th:nth-child(1)::after { content: "No"; }
    table th:nth-child(2)::after { content: "名前"; }
    table th:nth-child(3)::after { content: "性別"; }
    table th:nth-child(4)::after { content: "年齢"; }
    table th:nth-child(5)::after { content: "住所"; }
    table th:nth-child(6)::after { content: "血液"; }
    table th:nth-child(7)::after { content: "写真"; }
    table th:nth-child(8)::after { content: "詳細"; }
    table th:nth-child(9)::after { content: "回数"; }
    table th:nth-child(10)::after { content: "日付"; }
}
@media (max-width: 374px) {
    header h1 { font-size: 16px; }
    nav a { margin: 0 3px; font-size: 11px; }
    .container { margin: 2px; padding: 4px; }
    .auth-box { padding: 8px; }
    .issued-num { font-size: 18px; }
    label { font-size: 12px; }
    input[type="text"], input[type="password"] { padding: 6px; font-size: 13px; }
    .btn-submit { padding: 8px 10px; font-size: 13px; }
    table { font-size: 9px; table-layout: fixed; }
    table th, table td { padding: 2px 0px; font-size: 8.5px; }
    .thumb { width: 12px; height: 16px; }
    .detail-box-btn { padding: 1px 2px; font-size: 8.5px; }
    table th { color: transparent !important; }
    table th::after { color: #ff6b81; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
    table th:nth-child(1)::after { content: "No"; }
    table th:nth-child(2)::after { content: "名前"; }
    table th:nth-child(3)::after { content: "性別"; }
    table th:nth-child(4)::after { content: "年齢"; }
    table th:nth-child(5)::after { content: "住所"; }
    table th:nth-child(6)::after { content: "血液"; }
    table th:nth-child(7)::after { content: "写真"; }
    table th:nth-child(8)::after { content: "詳細"; }
    table th:nth-child(9)::after { content: "回数"; }
    table th:nth-child(10)::after { content: "日付"; }
}
