
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
    --primary-bg: #000000;
    --accent-color: #f39c12;
    --text-color: #ecf0f1;
    --mobile-menu-bg: #0d151c;
    --pc-nav-link: #bdc3c7;
}

body{background-color: black;}
#allwrap{background-color: white;}
main{min-height: 100vh;background-color: white;}
footer{background-color: black;}
#copyright{color: white;text-align: center;padding: 1em;}
.footer1{padding: 0;}
.footer2{text-align: center;}
p{padding-bottom: 1em;}
.widthbox{
  max-width: 1000px;
  width: 100%;    
  margin: 0 auto;
}
.mainbox{
    display: flow-root;
    border:solid black;
    border-width: 0 1px;
    padding: 0 20px;
    min-height: 100vh;
}
.copyright{color: white;}

/* パンくずリスト */
.breadcrumbs{
    padding: 0.5em;
    background-color: white;
    border: 1px solid black;
    font-size: 12px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {/*読み上げ回避*/
    content: ">";
    margin: 0 4px;
    color: inherit;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-current {
    padding: 0 4px;
    border-radius: 6px;
    background-color: #ddf; 
}

/*---- Heading st----*/
h1 {
    font-size: 24px;
    border-left: 6px solid #333;
    padding: 4px 0 4px 15px;
    margin: 0px 0 20px;
}

h2 {
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin: 30px 0 15px;
}

h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    margin: 25px 0 12px;
}
h3::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #666;
    margin-right: 10px;
}

h4 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: #555;
}
h4::before {
    content: "・";
    margin-right: 4px;
}
/*---- Heading end ----*/

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 50px 0 20px;
}

/* Header: No Sticky, No Fixed */
header {
    background-color: var(--primary-bg);
    color: var(--text-color);
    /*border-bottom: 3px solid var(--accent-color);*/
    position: relative; /* Fixed/Sticky is completely removed */
    width: 100%;
    padding: 10px 0;
}
#menu-toggle {display: none;}/* menu: No JavaScript */
.menu-container {
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Menu (Single Source) */
.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    margin-left: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--pc-nav-link);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
    display: inline-block;
}
.nav-menu li a:hover{background-color: #666;}

/* --- Mobile Layout Components --- */

/* Overlay (Dark Screen) - Layer 1000 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

/* Toggle Button - Layer 3000 */
.menu-btn {
    display: none;
    position: fixed;
    top: 10px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    cursor: pointer;
    z-index: 3000;
    padding: 8px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 768px) {
    /* menu st────────── */
    .menu-btn {
        display: block;
    }

    /* No stack context issues: menu is absolute within the viewport */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background-color: var(--mobile-menu-bg);
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 70px 0 40px;
        margin-left: 0;
        z-index: 2000; /* Between Overlay and Button */
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    /* --- Logic States --- */
    #menu-toggle:checked ~ .overlay {
        visibility: visible;
        opacity: 1;
    }

    #menu-toggle:checked ~ header .menu-container .nav-menu {
        right: 0;
    }

    /* X Animation */
    #menu-toggle:checked ~ .menu-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #fff;
    }
    #menu-toggle:checked ~ .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .menu-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #fff;
    }

    .nav-menu li { width: 100%; }
    .nav-menu li a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 18px 30px;
        color: #fff;
        background: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }
    
    /* Disable scrolling when menu is open (Optional but recommended) */
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
    /* menu end────────── */
}

/* wrapを2分割 */
.flex-teble-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flex-teble-switch > .table-wrap {
  flex: 1 1 calc((650px - 100%) * 999);
}
/* テーブルラッパー（1pxボーダー角丸） */
.table-wrap {
    border: 1px solid #d6d1b1; 
    border-radius: 8px;
    overflow: hidden; /* 角丸隠し */
    overflow-x: auto;
    width: 100%;

}

/* テーブル本体の設定 */
table {
    min-width: 300px;
    width: 100%;
    border-collapse: collapse;
    border-style: hidden;
    font-size: 12px;
    font-weight: bold;
}

/* セルの設定（内線のみを描画） */
th, td {
    border: 1px solid #d6d1b1; /* 内線1px */
    padding: 5px;
    text-align: center;
}

th {
    background-color: #eee8d5;
}
tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03); 
}
.paddingl2em{padding-left: 2em}
.xpostdiv{text-align: right;}
.xpostbtn{background: #000; color: white; border: none; padding: 3px 14px; border-radius: 9999px; font-weight: bold; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1;}
.twitter-tweet {margin-left: 0 !important;margin-right: 0 !important;width: 100% !important;}/* 𝕏引用のインラインフレーム幅固定抑止 */
.armortd{background-color: #eee;}
.bg-eed{background-color: #eed;}
.f12px{font-size: 12px;}