/* root */
/* Bootstrap Compatibility Layer - Lightweight replacements for removed Bootstrap lib */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.justify-content-center {
    justify-content: center;
}

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

.align-items-end {
    align-items: flex-end;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .col-lg-10 {
        flex: 0 0 83.3333%;
        max-width: 83.3333%;
    }
}

/* Components */
.badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border-radius: 50px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.badge-danger {
    background-color: #ef4444;
    color: #fff;
}

.badge-warning {
    background-color: #f59e0b;
    color: #fff;
}

.badge-success {
    background-color: var(--secondary-color);
    color: #fff;
}

.badge-info {
    background-color: rgb(99, 102, 241);
    color: #fff;
}

/* Category text colors for Add Course List */
.category-text-primary {
    color: var(--primary-color);
}

.category-text-danger {
    color: #ef4444;
}

.category-text-warning {
    color: #f59e0b;
}

.category-text-success {
    color: var(--secondary-color);
}

.category-text-info {
    color: rgb(99, 102, 241);
}

.course-add-row {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.course-add-row:last-child {
    border-bottom: none;
}

.course-category-label {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    display: block;
    opacity: 0.9;
}

.course-title-link {
    font-size: 1.1rem;
    color: var(--text-main);
    display: block;
    line-height: 1.4;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 500;
}

.course-title-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

h3.sub-heading,
h4.sub-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    display: block;
    border-left: 3.5px solid var(--primary-color);
    padding-left: 14px;
}

h3.sub-heading {
    font-size: 1.35rem;
}

.primary-class-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

.policy-content h4.sub-heading {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
    border-left: none;
    padding-left: 0;
    padding-bottom: 0.6rem;
}

.policy-content p {
    margin-bottom: 2rem;
    line-height: 2.0;
    color: var(--text-main);
}

.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.alert-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-main);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--glass-border);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
    font-size: 1.1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.custom-select-themed {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem !important;
    cursor: pointer;
    height: 3.1rem !important;
    /* Force fixed height to match input-group-text */
}

.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.input-group-prepend {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-weight: 800;
    height: 3.1rem;
    box-sizing: border-box;
    font-size: 1.1rem;
    color: var(--text-main);
    white-space: nowrap;
}

.input-group-prepend .input-group-text {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.input-group-append .input-group-text {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    height: 3.1rem;
    padding: 0 1.2rem;
    flex: 1;
    border-radius: 10px !important;
}

.input-group-prepend+.form-control {
    border-radius: 0 10px 10px 0 !important;
}

.input-group .form-control:first-child:not(:last-child) {
    border-radius: 10px 0 0 10px !important;
}

/* Form Table-like Layout */
.form-table-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2.5rem;
}

.form-row-custom {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.form-row-custom:first-child {
    border-top: 1px solid var(--glass-border);
}

.form-label-custom {
    flex: 0 0 145px;
    /* Label width to accommodate longer Japanese labels */
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    padding-right: 1rem;
}

.form-content-custom {
    flex: 1;
}

/* Custom Select Themed */
@media (max-width: 575px) {
    .form-row-custom {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label-custom {
        flex: 0 0 auto;
        margin-bottom: 0.5rem;
    }
}

.custom-select-themed {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

[data-theme="dark"] .custom-select-themed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Numeric Input Spinner - Hide for clean UI */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Utilities */
.main-content p {
    font-size: 1.125rem;
    line-height: 2.0;
    margin-bottom: 1.5rem;
    font-family: var(--font-jp);
}

@media (max-width: 768px) {
    .main-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

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

.text-muted {
    color: var(--text-muted);
    opacity: 0.8;
}

.small {
    font-size: 0.875em;
}

/* Cell Content Layout (Flex Centering) */
.table td .small {
    font-size: 0.85rem;
    line-height: 1.25;
    word-break: break-all;
    white-space: normal !important;
    text-align: center;
}

.table td a.small {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.table td span.small {
    display: inline-block;
    width: 100%;
}

.cell-content-wrapper,
.cell-empty {
    min-height: 100px;
}

/* Mobile Responsive Optimization (Fit 6 columns without scroll) */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .table-responsive {
        overflow-x: visible !important;
        border-radius: 10px;
    }
    
    .table {
        table-layout: fixed;
        width: 100% !important;
    }
    
    .table th, .table td {
        padding: 4px 1px !important;
        font-size: 0.72rem !important;
    }
    
    .period-col {
        width: 32px !important;
    }
    
    .cell-content-wrapper,
    .cell-empty {
        min-height: 75px !important;
    }
    
    .table td .small {
        font-size: 0.68rem !important;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
}

.font-weight-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 1rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.rounded {
    border-radius: 15px;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

.text-decoration-none {
    text-decoration: none;
}

.btn-large-text {
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
}

.btn-no-translate {
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-no-translate:hover {
    transform: none !important;
}

.w-auto {
    width: auto;
}

.justify-content-center {
    justify-content: center;
}

.step1-card {
    padding: 4.5rem 2rem !important;
}

.step1-card .badge {
    margin-bottom: 2.2rem !important;
}

.step1-card .btn-large-text {
    padding: 0.9rem 3rem !important;
    margin-top: 1rem;
}

.text-constrained {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.policy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Grid & Utilities */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-3-5 {
        flex: 0 0 29.1666%;
        max-width: 29.1666%;
    }

    .col-sm-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-sm-5 {
        flex: 0 0 41.6666%;
        max-width: 41.6666%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-11 {
        flex: 0 0 91.6666%;
        max-width: 91.6666%;
    }

    .px-md-3 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.d-block {
    display: block !important;
}

.w-100 {
    width: 100% !important;
}

.x-small {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}

.alert p {
    font-size: inherit !important;
    line-height: 1.5 !important;
    margin-bottom: 0;
}

/* Modal (Featherlight) styling to match 2026 design */
.wish-faculty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.btn-wish-faculty {
    padding: 0.6rem 2rem;
    height: auto;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    min-width: 120px;
    width: auto;
}

@media (min-width: 576px) {
    .wish-faculty-wrapper {
        flex-direction: row;
        align-items: stretch;
    }

    .btn-wish-faculty {
        padding: 0 2rem;
        height: 3.1rem;
        font-size: 1rem;
        border-radius: 50px;
        flex-shrink: 0;
    }
}

.featherlight-content {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    color: var(--text-main) !important;
    box-shadow: var(--glass-shadow) !important;
    max-width: 90%;
    width: 600px;
}

[data-theme="light"] .featherlight-content {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.featherlight-close-icon {
    background: var(--theme-btn-bg) !important;
    color: var(--text-main) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    text-align: center !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 1.2rem !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.featherlight-close-icon:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Sticky footer styles
-------------------------------------------------- */


.nav-link1 {
    width: 150px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Class Info Table for Popups */
.info-table-custom {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2.5rem;
}

.info-table-custom tr {
    border-bottom: 1px solid var(--glass-border);
}

.info-table-custom tr:last-child {
    border-bottom: none;
}

.info-table-custom th {
    text-align: left;
    padding: 1rem 0;
    width: 110px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.9rem;
    vertical-align: top;
}

.info-table-custom td {
    padding: 1rem 0 1rem 1rem;
    color: var(--text-main);
    line-height: 1.5;
    font-size: 1.05rem;
    vertical-align: top;
}

.qaform {
    width: auto;
    float: right;
    height: 50px;
    width: 300px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* sticky-footer footerを一番下に固定するためのcss */


/*
.container .text-muted {
  margin: 20px 0;
}
*/

.banner {
    margin-bottom: 20px;
}

.lightbox {
    display: none;
    position: relative;
}

.entry_link {
    text-align: center;
    padding: 10px;
}

.qa {
    margin-left: 2em;
    text-indent: -2em;
}

.qa2 {
    margin-left: 3em;
    text-indent: -3em;
}

.faq_margin {
    margin-bottom: 10px;
}

dl.top_list {
    overflow: auto;
}

/* 「TOPに戻る」について */

.form_p {
    font-weight: 900;
    font-size: large;
}

/* dlで省略されないための処理 */
dl.topdateplan dt {
    border-bottom: 1px dotted #ededed;
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    white-space: pre;
    /* CSS 2.0 */
    white-space: pre-wrap;
    /* CSS 2.1 */
    white-space: pre-line;
    /* CSS 3.0 */
    white-space: -pre-wrap;
    /* Opera 4-6 */
    white-space: -o-pre-wrap;
    /* Opera 7 */
    white-space: -moz-pre-wrap;
    /* Mozilla */
    white-space: -hp-pre-wrap;
    /* HP Printers */
    word-wrap: break-word;
    /* IE 5+ */
}

@media screen and (max-width:991px) {
    #wrap {
        width: 98%;
        margin: 0 auto;
    }

    #wrap2 {
        width: 98%;
        margin: 0 auto;
    }

    #stema {
        width: 98%;
        margin: 10px auto 10px;
    }
}

@media screen and (min-width:992px) {
    #wrap {
        width: 60vw;
        margin: 0 auto 0 20px;
    }

    #wrap2 {
        width: 60vw;
        margin: 0 auto 0 20px;
    }

    #stema {
        width: calc(35vw - 40px);
        /* height: calc(100vh - 8.2vw - 100px); */
        position: fixed;
        top: calc(8.2vw + 1em);
        right: 40px;
    }

    .futtosit {
        width: 80px;
        /* position: fixed;
		right: 10px;
		bottom: 30px; */
        position: absolute;
        right: -30px;
        bottom: -50px;
    }
}



#stema {
    padding: 20px;
    background-color: #FFFFEF;
    border: 1px solid #0e1b3f;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    line-height: 1.5em;
}

.shinkanweb {
    display: block;
    width: 100%;
    margin: 0 auto;
    border: none;
}

.dl-package dd {
    margin-left: 15em;
}

.dl-package dt {
    width: 13.5em;
}

.dl-timber dd {
    margin-left: 17em;
}

.dl-equip-i dd {
    margin-left: 16em;
}

.hidden {
    visibility: hidden;
}

.nav-item {
    padding: 5px;
}

.table {
    table-layout: fixed;
    height: 100%;
}

.table tr {
    height: 3em;
}

.table td {
    font-size: 0.9em;
    /* padding-left: 0.1em;
	padding-right: 0.1em; */
    padding: 0;
    height: 100%;
    text-align: center;
    vertical-align: middle;
}

.table th {
    font-size: 0.9em;
    padding-left: 0.1em;
    padding-right: 0.1em;
    text-align: center;
}

/* Mini Syllabus Button Style */
.btn-mini-syllabus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-mini-syllabus:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.course-add-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.course-add-row:last-child {
    border-bottom: none;
}