/* =========================================================
   ALS Admin Theme - Minimal Base
   ========================================================= */

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Numans, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}


.als-content-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    
    max-width: 1100px;
    margin: 20px auto;

    /* 枠 */
    border: 1px solid #e5e7eb;

    /* 影（これが今風） */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.als-content-card {
    transition: box-shadow 0.2s ease;
}

.als-content-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* 全体レイアウト */
.als-layout {
    display: flex;
    min-height: 100vh;
}

/* 左メニュー */
.als-menu {
    width: 220px;
    background-color: #f8fafc;
    padding: 10px;
}

/* 右コンテンツ */
.als-content {
    flex: 1;
    padding: 20px 20px 20px 16px;
}

.als-top-header {
    width: 100%;
    background-color: #ffffff;
}

.als-top-header-bar {
    height: 4px;
    background-color: #facc15;
}

.als-top-header-main {
    height: 52px;
    background-color: #173d6a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: Numans, Arial, sans-serif;
}

.als-top-header-left {
    font-size: 18px;
    font-weight: 600;
}

.als-top-header-right {
    font-size: 14px;
}


.als-header-logo {
    text-align: center;
    margin-bottom: 0px;
}

.als-header-logo img {
    height: 50px;
    max-width: 100%;
}


.als-dashboard-hero {
    height: 400px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.als-dashboard-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.als-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 61, 106, 0.35);
    z-index: 1;
}

.als-dashboard-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #ffffff;
    padding: 30px;
    font-family: Numans, Arial, sans-serif;
}

.als-dashboard-overlay h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.als-dashboard-overlay p {
    margin: 0;
    font-size: 1rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: Numans, Arial, sans-serif;
    font-weight: 700;
    color: inherit;
}

p {
    margin: 0;
    font-family: Numans, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

strong,
b {
    font-weight: 700;
}

/* ===== Media ===== */
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* ===== Forms ===== */
button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    border: 1px solid #cbd5e1;
    outline: none;
}

/* ===== Tables ===== */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    vertical-align: middle;
}


/* =========================================================
   Legacy Admin Layout - keep current structure
   ========================================================= */

#whole_container {
    width: 840px;
    background-color: #ffffff;
    margin: 15px auto 0;
    padding: 0;
}

#siteHead {
    width: 840px;
    height: 100px;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: left;
}

#container {
    float: left;
    width: 840px;
    margin: 0;
    padding: 0;
    text-align: left;
}



#content {
    float: right;
    width: 653px;
    margin: 12px 0 0 0;
    padding: 0;
    background-color: #ffffff;
}

#footerLink {
    clear: both;
    border-top: 1px solid #eeeeee;
    background-color: #ffffff;
    font-size: 90%;
    color: #000000;
    padding: 7px 0;
    margin: 0;
    text-align: center;
}

/* menu */
#menu ul {
    list-style: none;
    margin: 5px 7px;
    padding: 0;
}

#menu li {
    border-bottom: 1px dashed #aaaaaa;
    margin-top: 2px;
    padding: 2px 8px 2px 8px;
}

#menu ul a:link,
#menu ul a:visited {
    display: block;
    padding-left: 10px;
    color: inherit;
    text-decoration: none;
}

/* optional search areas */
.menu_kensaku {
    margin: 0;
    padding: 5px 10px 3px 8px;
    background: #eeeeee;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    margin-top: 7px;
    color: #000000;
}

.top_kensaku {
    width: 160px;
    margin: 15px 0 0 677px;
    padding: 2px 0 1px 10px;
}


/* ===== Layout Helpers ===== */
transition: transform 0.35s ease;

/* ===== ALS Accordion Menu ===== */
.als-menu-group {
    margin-bottom: 10px;
}

.als-menu-title {
    position: relative;
    overflow: hidden;
    padding: 12px 14px;
    background-color: #1f4f88;
    color: #ffffff;
    font-family: Numans, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}


.als-menu-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #173d6a; /* 濃い青 */
    transition: width 0.45s ease; /* アイコン回転と揃える */
    z-index: 0;
}


.als-menu-title:hover::before {
    width: 100%;
}

.als-menu-title span,
.als-menu-title svg {
    position: relative;
    z-index: 1;
}

.als-menu-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    transform-origin: center center;
    transition: transform 0.45s ease;
}



.als-menu-title:hover svg {
    transform: rotate(360deg);
}

.als-menu-group.open .als-menu-title {
    background-color: #173d6a; 
    color: #ffffff;          
    border: 3px solid #e3b23c;  
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.als-sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    background-color: #ffffff;
    margin-top: 6px;
    border: 1px solid #d9dde3;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.als-menu-group.open .als-sub-menu {
    opacity: 1;
    margin-bottom: 8px;
}

.als-sub-menu a {
    display: block;
    padding: 10px 14px;
    color: #1f2937;
    text-decoration: none;
    font-family: Numans, Arial, sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #eceff3;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.als-sub-menu a.active {
    background-color: #dbe6f4;   /* 少し濃い青系 */
    color: #1f4f88;
    font-weight: 600;
    border-left: 4px solid #1f4f88;
}

.als-sub-menu a:last-child {
    border-bottom: none;
}

.als-sub-menu a:hover {
    background-color: #eef3fb;
    color: #1f4f88;
    padding-left: 18px;
}


.als-sub-menu a.active,
.als-sub-menu a.als-menu-item-active {
    background-color: #fff4d6;
    color: #1f4f88;
    font-weight: 600;
    border-left: 4px solid #e3b23c;
    padding-left: 14px;
}

.als-menu-link {
    text-decoration: none;
}

.als-menu-link:hover {
    text-decoration: none;
}

.als-icon-logout {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.als-menu-group-logout {
    margin-top: 18px;
}

.als-menu-logout:hover span {
    color: #facc15;
}




.als-admin-layout {
    width: 850px;
    margin: 0 auto;
    background-color: #ffffff;
    border-collapse: collapse;
    border-spacing: 0;
}

.als-admin-menu {
    width: 160px;
    vertical-align: top;
    background-color: #ffffff;
    text-align: left;
}

.als-admin-content {
    vertical-align: top;
    background-color: #ffffff;
    text-align: left;
    padding-left: 10px;
}


.als-menu-item {
    background-color: #ffffff;
}

.als-menu-item-active {
    background-color: #ffffde;
}


.als-page-wrap {
    width: 100%;
    margin: 0 auto;
}

.als-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.als-text-left {
    text-align: left;
}

.als-text-right {
    text-align: right;
}

/* ===== ALS Color Helpers ===== */
.als-bg-blue {
    background-color: #004477;
}

.als-text-white {
    color: #ffffff;
}

.als-bg-yellow {
    background-color: #facc15;
}

.als-text-black {
    color: #000000;
}

/* ===== Common Admin Components ===== */
.als-box {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.als-title {
    font-family: Numans, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
}

.als-label {
    font-family: Numans, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6rem;
}

/* ===== Buttons ===== */

.als-admin-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 5px auto;
    background-color: #facc15;
    color: #000;
    border: none;
    border-radius: 20px 0 20px 0;
    font-family: Numans, Arial, sans-serif;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
    padding: 0 0px;
    cursor: pointer;
    text-align: center;
    font-weight: 550;        /* ← 少し軽く */
    letter-spacing: 0.5px;   /* ← これが効く */
}


.als-admin-button:hover {
    background-color: #e0b700;
}

/* ===== Inputs ===== */
.als-input {
    width: 100%;
    max-width: 100%;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #111827;
    font-family: Numans, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.als-input:focus {
    border-color: #004477;
}

/* ===== Login Page Helpers ===== */
.als-login-wrapper {
    text-align: center;
    padding-top: 30px;
}

.als-login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.als-login-logo img {
    width: 200px;
    max-width: 100%;
}

.als-login-table {
    margin: 0 auto;
    border: 1px solid #888888;
    border-radius: 12px;
    overflow: hidden;
    background: #004477;
}

.als-login-table td,
.als-login-table th {
    padding: 8px 12px;
}

.als-login-title {
    color: #ffffff;
    background: #004477;
    font-family: Numans, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    text-align: center;
}

.als-login-label {
    color: #ffffff;
    background: #004477;
    font-family: Numans, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
}

/* ===== Utility Spacing ===== */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }