/* ===========================
   ART-SCHOOL Mobile – common.css
=========================== */

/* Variables */
:root {
    --bg: #000000;
    --surface: #111111;
    --border: #333333;
    --text: #ffffff;
    --text-muted: #888888;
    --font-head: "Jost", sans-serif;
    --font-body: "Noto Sans JP", sans-serif;
    --max-w: 800px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
}
body {
    font-family: var(--font-body);
    background: var(--bg);
    margin: 0 auto;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    width: 100%;
    height: auto;
}

body > .content-wrap {
    width: var(--max-w);
    margin: 0 auto;
    flex: 1;
}
@media (max-width: 799px) {
    body > .content-wrap {
        width: 100%;
    }
}

/* ===========================
   Sub-page header
=========================== */
.wrap > header,
.sub-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.sub-header-back {
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.sub-header-back::before {
    content: "‹";
    font-size: 1rem;
    line-height: 1;
}
.sub-header-back:hover {
    color: #fff;
}
.sub-header-title {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ===========================
   Page title bar
=========================== */
.page-title-bar {
    padding: 22px 16px 16px;
    border-bottom: 1px solid var(--border);
}
.page-title-bar h1 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===========================
   Footer (shared)
=========================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 16px 20px;
    text-align: center;
}
.site-footer .footer-logo {
    margin-bottom: 10px;
}
.site-footer .footer-logo img {
    display: inline-block;
    width: auto;
    max-width: 160px;
    height: auto;
}
.site-footer .footer-copy {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ===========================
   Back-to-top button
=========================== */
.btn-totop {
    display: block;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    margin: 24px 16px;
    transition: color 0.2s;
}
.btn-totop:hover {
    color: #fff;
}
.btn-totop::before {
    content: "↑  ";
}

/* ===========================
       News list
    =========================== */
.news-list {
    list-style: none;
}
.news-list .news-item a {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.15s;
}
.news-list .news-item a:hover {
    background: #0d0d0d;
}
.news-list .news-item a::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 1.1rem;
}
.news-list .news-date {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.news-list .news-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border: 1px solid var(--border);
    color: #999;
    margin-right: 6px;
    vertical-align: middle;
}
.news-list .news-body {
    font-size: 0.82rem;
    color: #ddd;
    line-height: 1.5;
    padding-right: 20px;
}

/* ===========================
       Login form
    =========================== */
.login-wrap {
    padding: 28px 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.form-input {
    display: block;
    width: 100%;
    background: #111;
    border: 1px solid var(--border);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: #666;
}
.form-input::placeholder {
    color: #444;
}
select.form-input {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    padding: 12px 14px;
     border-radius: 3px;
}
.btn-submit {
    display: block;
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 0;
    cursor: pointer;
    margin-top: 24px;
    text-align: center;
    transition:
        background 0.2s,
        color 0.2s;
}
.btn-submit:hover {
    background: #ccc;
}

.forgot-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 18px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.forgot-link:hover {
    color: #fff;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.register-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.7;
}
.btn-register {
    display: block;
    width: 100%;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 0;
    text-align: center;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.btn-register:hover {
    border-color: #fff;
}
/* ===========================
       Article detail
    =========================== */
.article {
    padding: 20px 16px 28px;
}
.article-date {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.article-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.article-body {
    font-size: 0.84rem;
    line-height: 1.9;
    color: #ccc;
}
.article-body p {
    margin-bottom: 1em;
}
.article-body a {
    color: #aaa;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}
.article-body a:hover {
    color: #fff;
}

/* article image */
.article-img {
    width: 100%;
    margin: 16px 0;
    background: #1a1a1a;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
/* placeholder */
.article-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #181818, #0c0c0c);
}

/* ===========================
       List link button
    =========================== */
.btn-list {
    display: block;
    margin: 0 16px 8px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 11px 0;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition:
        color 0.2s,
        border-color 0.2s;
}
.btn-list:hover {
    color: #fff;
    border-color: #fff;
}
.btn-list::before {
    content: "« ";
}

#fnavi {
    margin: 30px 16px;
    overflow: hidden;
}
#fnavi li {
    list-style: none;
    display: block;
    float: left;
    width: 50%;
    box-sizing: border-box;
}
#fnavi li a {
    display: block;
}
#fnavi li.next {
    text-align: right;
}
#fnavi li img {
    display: inline;
    height: 14px;
    width: auto;
    vertical-align: middle;
}

.page_footer {
    background-color: #111;
    padding: 30px 10px;
    color: #fff;
    margin-top: 40px;
    text-align: left;
}

.page_footer .foot-logo {
    margin-left: 20px;
    width: 117px !important;
}
.page_footer .foot-logo img {
    width: 117px !important;
}

.page_footer .footermenu01 {
    font-family: "Jost", Sans-serif;
    display: inherit;
    list-style-type: none;
    margin: 0;
    width: 650px;
}
.page_footer .footermenu01 li {
    padding: 5px 0;
    text-align: center;
    margin: 0 2%;
    float: left;
    border-radius: 20px;
}
.page_footer .footermenu01 li a {
    font-family: "Jost", Sans-serif;
    line-height: 2;
    font-size: 1.06rem;
    color: #fff;
}

.page_footer .footermenu02 {
    font-family: "Jost", Sans-serif;
    display: inherit;
    list-style-type: none;
    margin: 0;
    width: 650px;
}
.page_footer .footermenu02 li {
    padding: 5px 0;
    text-align: center;
    margin: 0 2%;
    float: left;
    border-radius: 20px;
}
.page_footer .footermenu02 li a {
    font-family: "Jost", Sans-serif;
    line-height: 2;
    font-size: 1.06rem;
    color: #fff;
}

.page_footer .menufootfctext {
    color: #999;
    font-size: 0.8rem;
    padding-left: 2% !important;
    margin-top: 30px;
}

.page_footer .foot_copyright {
    clear: both;
    color: #333;
    font-size: 0.7rem;
    text-align: center;
    margin: 120px 0 10px;
}
@media (min-width: 768px) {
    .page_footer .foot-logo {
        float: left;
    }
    .page_footer .footermenu01 {
        float: right;
    }
    .page_footer .footermenu02 {
        float: right;
    }
    .page_footer .footwidth {
        width: 800px;
        margin: 0 auto;
    }
    .page_footer .menufootfctext {
        width: 650px;
        float: right;
    }
}
@media (max-width: 767px) {
    .page_footer .foot-logo {
        width: 117px !important;
    }

    .page_footer .footermenu01 {
        width: 96%;
        margin: 10px auto;
    }
    .page_footer .footermenu02 {
        width: 96%;
        margin: 10px auto;
    }
    .page_footer .menufootfctext {
        clear: both !important;
        padding-left: 2% !important;
        margin-top: 120px !important;
    }
}

#comment {
    margin-top: 50px;
    color: #666;
}
#comment ul {
    list-style: none;
}

.pad5 {
    padding: 5px;
}
