@charset "UTF-8";

/* ==========================================================================
   School Theme CSS
   Theme: Trust, Intellect, Tradition
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --c-primary: #dc3545;
    /* Brand Red */
    --c-secondary: #bb2d3b;
    /* Darker Red for hover */
    --c-accent: #ffc107;
    /* Warning Yellow/Gold */
    --c-text-main: #333333;
    --c-text-light: #555555;
    --c-bg-body: #f8f9fa;
    /* Light Gray Base */
    --c-bg-light: #f0f4f8;
    /* Pale Blue/Gray */
    --c-bg-content: #ffffff;
    --c-border: #dee2e6;

    /* Typography */
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;

    /* Layout */
    --width-max: 1200px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-text-main);
    background-color: var(--c-bg-body);
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

figure {
    margin: 0;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--c-primary);
    line-height: 1.4;
    margin-bottom: var(--sp-sm);
}

h1 {
    font-size: 1.875rem;
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: var(--sp-xs);
    margin-top: var(--sp-md);
}

h2 {
    font-size: 1.625rem;
    padding: var(--sp-xs) var(--sp-sm);
    padding-left: var(--sp-xs);
    background: var(--c-bg-light);
    border-left: 5px solid var(--c-primary);
    margin-top: var(--sp-lg);
    margin-bottom: var(--sp-md);
}

h2+p {
    margin-bottom: 0;
}

h3 {
    font-size: 1.375rem;
    border-bottom: 1px dotted var(--c-primary);
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

h4,
h5,
h6 {
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.375rem;
    }
}

p,
ul,
ol,
dl,
table,
blockquote {
    margin-bottom: var(--sp-md);
}

ul,
ol {
    padding-left: var(--sp-md);
}

li {
    margin-bottom: var(--sp-xs);
}

dd {
    margin-left: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

/* --------------------------------------------------------------------------
   4. Layout Structure
   -------------------------------------------------------------------------- */
/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--width-max);
    height: 90px;
    margin: 0 auto;
    padding: var(--sp-xs) var(--sp-sm);
}

@media (min-width: 768px) {
    header {
        display: block;
    }

    .header-inner {
        padding: 0 var(--sp-sm);
    }
}

/* Logo */
header img.site-logo {
    width: auto;
    max-width: 200px;
    height: 50px;
    object-fit: contain;
}

@media (min-width: 768px) {
    header img.site-logo {
        height: 50px;
    }
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--width-max);
    margin: 0 auto;
    padding: var(--sp-md) var(--sp-sm);
    background-color: var(--c-bg-content);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

section {
    margin-bottom: var(--sp-lg);
}

.content-article {
    margin-bottom: var(--sp-lg);
}

/* --------------------------------------------------------------------------
   5. Navigation & Menus
   -------------------------------------------------------------------------- */
/* Desktop Nav */
.desktop-nav {
    display: none;
    /* Hidden on mobile */
    margin-left: auto;
    margin-right: var(--sp-md);
}

.desktop-nav .nav-menu {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-nav .nav-menu a {
    position: relative;
    padding: 0.5rem 0;
    color: var(--c-text-main);
    font-weight: bold;
    font-size: 0.825rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.desktop-nav .nav-menu a:hover {
    color: var(--c-primary);
}

.desktop-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--c-primary);
    transition: width 0.3s;
}

.desktop-nav .nav-menu a:hover::after {
    width: 100%;
}

@media (min-width: 900px) {
    .desktop-nav {
        display: block;
    }
}

/* Header CTAs */
.header-cta {
    display: none;
    gap: var(--sp-xs);
}

.btn-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    height: 30px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-request {
    background-color: #fff;
    color: var(--c-text-main);
    border: 1px solid var(--c-border);
}

.btn-request:hover {
    background-color: var(--c-bg-light);
    color: var(--c-primary);
}

.btn-contact {
    background-color: var(--c-primary);
    color: #fff;
    border: 1px solid var(--c-primary);
}

.btn-contact:hover {
    background-color: #000;
    opacity: 0.9;
}

.btn-myclass {
    background-color: #c93;
    color: #fff;
    border: 1px solid #c93;
}

.btn-myclass:hover {
    background-color: #c93;
    opacity: 0.9;
}

@media (min-width: 900px) {
    .header-cta {
        display: flex;
    }
}

/* Breadcrumbs */
nav[aria-label="パンくずリスト"] {
    margin-bottom: var(--sp-md);
    padding: var(--sp-xs) var(--sp-sm);
    background-color: #f4f4f4;
    border-radius: 4px;
    font-size: 0.775rem;
}

nav[aria-label="パンくずリスト"] ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav[aria-label="パンくずリスト"] li::after {
    content: ">";
    margin: 0 var(--sp-xs);
    color: var(--c-text-light);
}

nav[aria-label="パンくずリスト"] li:last-child::after {
    content: "";
}

nav[aria-label="パンくずリスト"] a {
    color: var(--c-text-light);
}

nav[aria-label="パンくずリスト"] a[aria-current="page"] {
    font-weight: bold;
    color: var(--c-primary);
    pointer-events: none;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Components
   -------------------------------------------------------------------------- */
/* Feature Block (Image Right Labelling) */
.feature-block {
    display: grid;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

@media (min-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }

    .feature-block h1,
    .feature-block h2 {
        grid-column: 1 / -1;
    }

    .feature-block p {
        grid-column: 1 / 2;
        margin-bottom: 0;
    }

    .feature-block figure {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

/* Campus Nav */
.campus-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding: 0;
    list-style: none;
}

.campus-nav a {
    display: inline-block;
    padding: var(--sp-xs) var(--sp-md);
    background-color: var(--c-bg-light);
    border-radius: 4px;
    color: var(--c-primary);
    font-weight: bold;
    text-decoration: none;
}

.campus-nav a:hover {
    background-color: var(--c-primary);
    color: #fff;
}

/* Step List (Image + Caption) */
.step-list {
    display: grid;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
    padding: 0;
    list-style: none;
}

.step-list figure {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: var(--sp-md);
}

.step-list img {
    width: 100%;
    border: 1px solid var(--c-border);
}

.step-list figcaption {
    font-weight: bold;
}

@media (max-width: 600px) {
    .step-list figure {
        grid-template-columns: 1fr;
    }
}

/* FAQ List */
.faq-list {
    margin-top: var(--sp-md);
    border-top: 1px solid var(--c-border);
}

.faq-list dt {
    position: relative;
    margin-top: var(--sp-sm);
    padding: var(--sp-sm) 0 var(--sp-xs) 2.5em;
    font-weight: bold;
    font-size: 0.975rem;
    color: var(--c-primary);
    border-bottom: none;
}

.faq-list dt::before {
    content: "Q.";
    position: absolute;
    top: 0.8em;
    left: 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1;
    color: var(--c-accent);
}

.faq-list dd {
    position: relative;
    margin-left: 0;
    padding: 0 0 var(--sp-md) 2.5em;
    border-bottom: 1px solid var(--c-border);
}

.faq-list dd::before {
    content: "A.";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.075rem;
    color: var(--c-text-main);
}

/* Event Gallery */
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-md);
    margin-top: var(--sp-md);
    padding: 0;
    list-style: none;
}

.event-gallery figure {
    height: 100%;
}

.event-gallery img {
    display: block;
    width: 100%;
    border: 1px solid var(--c-border);
}

.event-gallery figcaption {
    margin-top: var(--sp-xs);
    font-size: 0.775rem;
    font-weight: bold;
    text-align: center;
}

/* Multi-Column List */
.multi-column-list {
    column-count: 1;
    column-gap: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    padding-left: 1.5em;
}

.multi-column-list li {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--sp-xs);
    break-inside: avoid;
}

@media (min-width: 600px) {
    .multi-column-list {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .multi-column-list {
        column-count: 3;
    }
}

/* Label List */
.label-list {
    display: grid;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding: 0;
    list-style: none;
}

.label-list li {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    padding: var(--sp-sm);
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--c-primary);
}

.label-list .label {
    align-self: flex-start;
    padding: 0.2rem 1rem;
    background-color: var(--c-primary);
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 600px) {
    .label-list li {
        flex-direction: row;
        align-items: baseline;
        gap: var(--sp-md);
    }

    .label-list .label {
        flex-shrink: 0;
        min-width: 8em;
    }
}

/* Citation/Quote Block */
.citation-block {
    position: relative;
    margin: var(--sp-md) 0;
    padding: var(--sp-md);
    background-color: #fff;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.citation-block figcaption {
    margin-bottom: var(--sp-sm);
    padding-bottom: var(--sp-xs);
    border-bottom: 1px dotted var(--c-border);
    font-weight: bold;
    font-size: 0.775rem;
    color: var(--c-text-light);
}

.citation-block blockquote {
    position: relative;
    margin: 0;
    padding: var(--sp-sm) var(--sp-sm) var(--sp-sm) var(--sp-lg);
    background-color: #fcfcfc;
    border-left: 4px solid var(--c-accent);
    font-style: italic;
}

.citation-block blockquote::before {
    content: "“";
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: var(--font-serif);
    font-size: 2.875rem;
    line-height: 1;
    color: #e0e0e0;
}

.citation-block ul {
    margin: 0;
    padding-left: var(--sp-md);
}

/* Book List */
.book-list {
    display: grid;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-lg);
}

.book-entry {
    display: grid;
    gap: var(--sp-md);
    padding: var(--sp-md);
    background-color: #fff;
    border: 1px solid var(--c-border);
    border-radius: 4px;
}

.book-entry figure {
    text-align: center;
}

.book-entry img {
    max-width: 200px;
    border: 1px solid var(--c-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-details h3 {
    margin-top: 0;
    font-size: 1.125rem;
    color: var(--c-text-main);
    border-bottom: none;
}

.book-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-xs);
    margin: 0;
}

.book-details dt {
    grid-column: 1;
    min-width: 4em;
    font-weight: bold;
    color: var(--c-primary);
}

.book-details dd {
    grid-column: 2;
    margin-bottom: var(--sp-xs);
    padding-bottom: var(--sp-xs);
    border-bottom: 1px dashed var(--c-border);
}

.book-details dd:last-child {
    border-bottom: none;
}

@media (min-width: 600px) {
    .book-entry {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }

    .book-entry figure {
        text-align: left;
    }
}

/* Media Layout (Sidebar) */
.media-layout {
    display: grid;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

.media-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    align-items: center;
}

.media-sidebar.centered {
    text-align: center;
    align-items: center;
}

.media-sidebar img {
    border: 1px solid var(--c-border);
    max-width: 100%;
}

@media (min-width: 768px) {
    .media-layout.right-sidebar {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }

    .media-layout.right-sidebar .media-content {
        grid-column: 1;
    }

    .media-layout.right-sidebar .media-sidebar {
        grid-column: 2;
    }

    .media-sidebar img {
        width: 100%;
    }
}

/* Learning Box / Grid */
.learning-grid {
    display: grid;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

.section-learning .learning-box,
.learning-grid .learning-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-md);
    margin-bottom: var(--sp-md);
    background-color: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    color: var(--c-text-main);
    text-decoration: none;
    transition: transform 0.2s;
}

.learning-grid .learning-box {
    margin-bottom: 0;
    height: 100%;
}

.section-learning .learning-box:hover,
.learning-grid .learning-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.box-text {
    flex: 1;
    padding-right: var(--sp-md);
}

.box-text h3 {
    margin: 0 0 var(--sp-sm) 0;
    color: var(--c-primary);
    border-bottom: none;
}

.box-text p {
    margin-bottom: 0;
}

.box-image {
    flex: 0 0 30%;
    max-width: 250px;
}

.box-image img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

@media (max-width: 600px) {
    .section-learning .learning-box {
        flex-direction: column-reverse;
        text-align: center;
    }

    .section-learning .box-text {
        padding-right: 0;
        margin-top: var(--sp-sm);
    }

    .section-learning .box-image {
        max-width: 100%;
        flex: 0 0 auto;
    }
}

@media (min-width: 600px) {
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .learning-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .learning-grid .learning-box {
        flex-direction: column-reverse;
        text-align: center;
        padding: var(--sp-sm);
    }

    .learning-grid .box-text {
        padding-right: 0;
        margin-top: var(--sp-sm);
    }

    .learning-grid .box-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* News List */
.news-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-xs) var(--sp-sm);
    margin-bottom: var(--sp-lg);
}

.news-list dt {
    grid-column: 1;
    font-weight: bold;
    color: var(--c-text-main);
}

.news-list dd {
    grid-column: 2;
    margin-bottom: var(--sp-xs);
    padding-bottom: var(--sp-xs);
    border-bottom: 1px dotted var(--c-border);
}

.news-list dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* News & Facebook Layout Wrapper */
.news-grid-wrapper {
    display: grid;
    gap: var(--sp-lg);
}

@media (min-width: 900px) {
    .news-grid-wrapper {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }

    .facebook-feed {
        margin-top: 0;
    }
}

/* Recommended Banners */
.banner-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0 0 2rem 0;
    list-style: none;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}

.video-item h3 {
    margin: var(--sp-sm) 0 var(--sp-xs) 0;
    padding-left: var(--sp-xs);
    border-left: 4px solid var(--c-primary);
    border-bottom: none;
    font-size: 0.975rem;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-item p {
    margin-bottom: 0;
    font-size: 0.775rem;
}

/* Learning Flow List (Added for about/learning_system.html) */
.learning-flow-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    padding: 0;
    list-style: none;
}

.learning-flow-list li {
    flex: 1;
    min-width: 280px;
    margin-bottom: 0;
}

.learning-flow-list a {
    display: block;
    height: 100%;
    color: var(--c-text-main);
    text-decoration: none;
    transition: opacity 0.3s;
}

.learning-flow-list a:hover {
    opacity: 0.8;
}

.learning-flow-list img {
    width: 100%;
    margin-bottom: var(--sp-xs);
    border: 1px solid var(--c-border);
    transition: transform 0.3s;
}

.learning-flow-list a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Accordion for Graduate Voices */
.accordion-content {
    display: none;
}

.accordion-content.is-open {
    display: block;
    animation: fadeIn 0.5s ease;
}

.accordion-trigger {
    cursor: pointer;
    color: var(--c-primary);
    margin-top: var(--sp-sm);
    display: inline-block;
    transition: opacity 0.3s;
}

.accordion-trigger:hover {
    opacity: 0.7;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   7. Utilities
   -------------------------------------------------------------------------- */
.text-link {
    display: inline-block;
    color: var(--c-primary);
    font-weight: bold;
}

.text-link::after {
    content: " \00bb";
}

.text-link:hover {
    text-decoration: underline;
}

.keep-together {
    white-space: nowrap;
}

/* Buttons */
button,
a.button {
    display: inline-block;
    min-width: 200px;
    padding: 1rem 2rem;
    margin: 0 auto;
    background-color: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

button:hover,
a.button:hover {
    background-color: var(--c-secondary);
    text-decoration: none;
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    margin-bottom: var(--sp-sm);
    padding: var(--sp-sm);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: var(--sp-md);
    border-collapse: collapse;
}

th,
td {
    padding: var(--sp-sm);
    border: 1px solid var(--c-border);
}

th {
    background-color: var(--c-bg-light);
    color: var(--c-primary);
    font-family: var(--font-serif);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.gfk-footer {
    margin-top: auto;
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-sm);
    background-color: var(--c-primary);
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-lg);
    max-width: var(--width-max);
    margin: 0 auto;
    padding: 0 var(--sp-sm) var(--sp-lg);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

/* Footer Nav */
.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-md);
}

.footer-nav-group h4 {
    margin-bottom: var(--sp-sm);
    padding-bottom: var(--sp-xs);
    border-bottom: 2px solid var(--c-accent);
    color: #fff;
    font-size: 0.975rem;
}

.footer-nav-group ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.footer-nav-group li {
    margin-bottom: var(--sp-xs);
}

.footer-nav-group a {
    color: #fff;
    font-size: 0.825rem;
    text-decoration: none;
}

.footer-nav-group a:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

/* Footer Info */
.footer-info {
    padding: var(--sp-md);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.footer-info dl {
    margin-bottom: var(--sp-sm);
}

.footer-info dt {
    margin-bottom: var(--sp-xs);
    font-weight: bold;
    color: var(--c-accent);
}

.footer-info dd {
    margin-left: 0;
    margin-bottom: var(--sp-sm);
}

.footer-info a {
    color: #fff;
    font-weight: bold;
}

/* SNS Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: #747b7f;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e5003b;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* Utility Bar */
.footer-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: var(--width-max);
    margin: var(--sp-md) auto 0;
    padding: var(--sp-sm) var(--sp-md);
    background-color: #f8f9fa;
    color: var(--c-text-main);
    border-radius: 4px;
    font-size: 0.725rem;
}

.footer-utility ul {
    display: flex;
    gap: var(--sp-md);
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-utility a {
    color: var(--c-text-main);
    text-decoration: none;
}

.footer-utility a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.footer-copyright {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .footer-utility,
    .footer-utility ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-sm);
    }
}

/* --------------------------------------------------------------------------
   9. Mobile Menu (Hamburger)
   -------------------------------------------------------------------------- */
/* Input Logic */
#nav-input {
    display: none;
}

/* Hamburger Icon */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2100;
}

.header-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--c-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--c-text-main);
    font-size: 0.7rem;
    text-decoration: none;
    cursor: pointer;
    border-top: 1px solid transparent;
}

.bottom-nav-item .icon {
    font-size: 1.2rem;
    line-height: 1;
}

.bottom-nav-item.highlight {
    background-color: var(--c-bg-light);
    color: var(--c-primary);
    font-weight: bold;
}

.bottom-nav-item.highlight-dark {
    background-color: var(--c-primary);
    color: #fff;
}

/* Hamburger Icon in Bottom Nav */
.hamburger-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-text-main);
    transition: all 0.3s;
}

.hamburger-icon span:nth-of-type(1) {
    top: 0;
}

.hamburger-icon span:nth-of-type(2) {
    top: 8px;
}

.hamburger-icon span:nth-of-type(3) {
    bottom: 0;
}

/* Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 90px;
    left: 0;
    z-index: 1001;
    display: none;
    width: 100%;
    height: calc(100vh - 90px - 60px);
    padding: var(--sp-md);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-content li {
    border-bottom: 1px solid var(--c-border);
    margin: 0;
}

.mobile-nav-content a {
    display: block;
    padding: 1rem 0;
    color: var(--c-text-main);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Logic: Checkbox -> Overlay/Icon State */
body:has(#nav-input:checked) .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

#nav-input:checked~.site-header .header-hamburger span:nth-of-type(1),
#nav-input:checked~.mobile-bottom-nav .hamburger-icon span:nth-of-type(1) {
    transform: translateY(8px) rotate(45deg);
    top: auto;
    /* Reset top if needed */
}

#nav-input:checked~.site-header .header-hamburger span:nth-of-type(2),
#nav-input:checked~.mobile-bottom-nav .hamburger-icon span:nth-of-type(2) {
    opacity: 0;
}

#nav-input:checked~.site-header .header-hamburger span:nth-of-type(3),
#nav-input:checked~.mobile-bottom-nav .hamburger-icon span:nth-of-type(3) {
    transform: translateY(-8px) rotate(-45deg);
    bottom: auto;
    /* Reset bottom if needed */
}

@media (min-width: 900px) {

    .mobile-bottom-nav,
    .mobile-menu-overlay {
        display: none !important;
    }

    .header-hamburger {
        display: none;
    }
}