@charset "utf-8";

/************************

滋賀短期大学web 共通CSS　2026 by FLICKS

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

html,
body,
h1,
h2,
h3,
p,
figure {
    margin: 0;
}

html {
    scrollbar-gutter: stable;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    cursor: pointer;
}

body {
    font-family: "BIZ UDPGothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #141414;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ======================
   HEADER
====================== */

body.is-menu-open,
body.is-search-open {
    overflow: hidden;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.header {
    position: relative;
    z-index: 100;
}

/* ロゴ */
.header__logo {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 120;
}

.header__logo img {
    width: 246px;
    height: auto;
}

/* SPバー */
.header__spbar {
    display: none;
}

/* ======================
   右固定：utility-links
====================== */

.utility-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 110px;

    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

/* 各アイテム */
.utility-links__item,
.utility-links__sns-link,
.utility-links__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 87px;
    padding: 13px 10px;

    border: 0;
    border-bottom: 1px solid #e5e5e5;

    background: transparent;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;

    transition: background-color .2s ease, opacity .2s ease;
}

.utility-links__item--search {
    cursor: pointer;
}

.utility-links__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.utility-links__search-form {
    position: relative;
}

/* アイコン */
.utility-links__icon--menu,
.utility-links__icon--search {
    position: relative;
    display: block;
}

.utility-links__icon--menu {
    width: 36px;
    height: 24px;
}

.utility-links__icon--menu::before,
.utility-links__icon--menu::after,
.utility-links__icon--menu span {
    content: "";
    position: absolute;
    left: 0;
    width: 36px;
    height: 2px;
    background: #6c5acb;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.utility-links__icon--menu::before {
    top: 0;
}

.utility-links__icon--menu span {
    top: 11px;
}

.utility-links__icon--menu::after {
    top: 22px;
}

body.is-menu-open .utility-links__icon--menu::before {
    top: 11px;
    transform: rotate(35deg);
}

body.is-menu-open .utility-links__icon--menu::after {
    top: 11px;
    transform: rotate(-35deg);
}

body.is-menu-open .utility-links__icon--menu span {
    opacity: 0;
}

.utility-links__image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.utility-links__sns-link img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.utility-links__brand img {
    width: 70px;
    height: auto;
}

/* ======================
   暫定：右固定ナビの高さ制限
   JS側で高さ超過時のみ scale をかけて、CSS transform で全体を縮小する
   必要になったときに、このブロックごと削除できるよう分離しておく
====================== */
.utility-links {
    transform-origin: top right;
}

/* ======================
   PC検索（左に伸びる）
====================== */

.utility-links__search {
    position: relative;
}

.utility-links__search-form {
    position: relative;
}

.utility-links__search-input {
    position: absolute;
    top: 0;
    right: calc(100% - 1px);

    width: 0;
    height: 94px;

    padding: 0;

    border: 0;
    background: #fff;

    font-size: 16px;

    opacity: 0;
    pointer-events: none;

    transition: width .28s ease, padding .28s ease, opacity .2s ease;
}

.utility-links__search-input::placeholder {
    color: #777;
}

body.is-search-open .utility-links__search-input {
    width: 320px;
    padding: 0 28px;

    border: 6px solid #e5e5e5;

    opacity: 1;
    pointer-events: auto;
}

.utility-links__search-input:focus {
    outline: none;
}

/* ======================
   グローバルナビ（開いた状態）
====================== */

.global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    width: min(460px, calc(100vw - 110px));
    background: #fff;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;

    opacity: 0;
    transform: translateX(100%);
    transition: transform .3s ease, opacity .3s ease;
}

body.is-menu-open .global-nav {
    transform: translateX(0);
    opacity: 1;
}

.global-nav__inner {
    position: relative;
    min-height: 100%;
    padding: 38px 44px 48px;
}

/* 閉じる */
.global-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
}

.global-nav__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 2px;
    background: #6c5acb;
}

.global-nav__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.global-nav__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ======================
   メインナビ
====================== */

.global-nav__body {
    margin-top: 10px;
}

.global-nav__list li+li {
    margin-top: 28px;
}

.global-nav__list a {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    transition: opacity .2s ease;
}

/* ======================
   CTA（縦積み）
====================== */

.global-nav__cta {
    margin-top: 52px;
    padding-top: 34px;
    border-top: 1px solid #dfdfdf;
}

.global-nav__cta-btn {
    display: block;
    width: fit-content;

    padding: 12px 26px;

    border-radius: 999px;

    background: #e1005c;
    color: #fff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    white-space: nowrap;
    align-content: center;

    transition: opacity .2s ease;
}

.global-nav__cta-btn+.global-nav__cta-btn {
    margin-top: 20px;
}

/* ======================
   SP用：検索＋導線
====================== */

.global-nav__utility {
    display: none;
}

.global-nav__search-form {
    display: flex;
    align-items: center;

    border-radius: 999px;
    background: #e7e7e7;
    overflow: hidden;
}

.global-nav__search-input {
    width: 100%;
    height: 44px;
    padding: 0 20px;
    border: 0;
    background: transparent;
    font-size: 14px;
}

.global-nav__search-input:focus {
    outline: none;
}

.global-nav__search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    height: 44px;
    background: url(../img/common/icon-search.svg) no-repeat center center/auto 44%;
}

/* アクセス / メール / 資料請求 */
.global-nav__utility-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 24px;

    border-bottom: 1px solid #dfdfdf;
}

.global-nav__utility-links li+li a {
    border-left: 1px solid #dfdfdf;
}

.global-nav__utility-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 12px 8px 4px;

    text-align: center;
    margin: 16px 0;
}

.global-nav__utility-links img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.global-nav__utility-links span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* SNS */
.global-nav__sns,
.global-nav__brand {
    display: none;
}

/* --- SP --- */

@media (max-width: 767px) {

    .global-nav {
        width: 100%;
        border-left: 0;
    }

    .global-nav__inner {
        padding: 104px 24px 36px;
        text-align: center;
        /* SPでは全体を中央寄せで表示 */
    }

    /* SP：検索＋導線表示 */
    .global-nav__utility {
        display: block;
    }

    .global-nav__utility-links {
        margin-top: 4px;
    }

    /* メインナビ */
    .global-nav__body {
        margin-top: 34px;
    }

    .global-nav__list {
        text-align: center;
        line-height: 1;
    }

    .global-nav__list li+li {
        margin-top: 20px;
    }

    .global-nav__list a {
        font-size: 16px;
        line-height: 1.3;
    }

    /* CTA */
    .global-nav__cta {
        margin-top: 34px;
        padding-top: 28px;
    }

    .global-nav__cta-btn {
        display: flex;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
        min-height: 38px;
        padding: 8px 18px;
        font-size: 14px;
        align-items: center;
    }

    .global-nav__cta-btn+.global-nav__cta-btn {
        margin-top: 14px;
    }

    /* SNS表示 */
    .global-nav__sns {
        display: flex;
        justify-content: center;
        gap: 28px;
        margin-top: 34px;
    }

    .global-nav__sns img {
        width: 46px;
        height: 46px;
        object-fit: contain;
    }

    /* ブランド */
    .global-nav__brand {
        display: flex;
        justify-content: center;
        margin-top: 22px;
    }

    .global-nav__brand img {
        width: 80px;
        height: auto;
    }
}

/* --- SP --- */

@media (max-width: 767px) {

    .header__logo,
    .utility-links {
        display: none;
    }

    .header__spbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 120;

        display: flex;
        align-items: center;
        justify-content: space-between;

        height: 64px;
        padding: 0 14px;

        background: #fff;
    }

    .header__spbar-logo img {
        width: 144px;
        padding-top: 4px;
        padding-left: 6px;
    }

    .header__menu-toggle {
        position: relative;
        width: 32px;
        height: 20px;
    }

    .header__menu-toggle span {
        position: absolute;
        left: 0;
        width: 26px;
        height: 2px;
        background: #6c5acb;

        transition: transform .3s ease, opacity .2s ease, top .3s ease;
    }

    .header__menu-toggle span:nth-child(1) {
        top: 0;
    }

    .header__menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .header__menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    body.is-menu-open .header__menu-toggle span:nth-child(1) {
        top: 11px;
        transform: rotate(35deg);
    }

    body.is-menu-open .header__menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.is-menu-open .header__menu-toggle span:nth-child(3) {
        top: 11px;
        transform: rotate(-35deg);
    }

    .global-nav {
        width: 100%;
        border-left: 0;
    }

    .global-nav__inner {
        padding: 84px 24px 36px;
    }

}



/* ======================
   FOOTER LINKS
====================== */

.footer-links {
    padding: 56px 0 80px;
    background: #fafafa;
}

.footer-links__inner {
    width: min(100% - 48px, 1368px);
    margin: 0 auto;
}

.footer-links__user-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 20px;
    margin-bottom: 72px;
}

.footer-links__user-nav-item {
    flex: 0 0 auto;
}

.footer-links__user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #e1005c;
    border-radius: 999px;
    background: #e1005c;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease;
}


.footer-links__sitemap {
    display: flex;
    gap: 88px;
}

.footer-links__sitemap a {
    transition: 0.2s;
}

.footer-links__sitemap a:hover {
    text-decoration: underline;
}

.footer-links__col--wide {
    flex: 1.48 1 0;
}

.footer-links__col {
    flex: 1 1 0;
    min-width: 0;
}

.footer-links__block+.footer-links__block {
    margin-top: 56px;
}

.footer-links__title {
    margin: 0 0 0.5em;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.footer-links__title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #141414;
    text-decoration: none;
}

.footer-links__title-arrow {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6c5acb;
}

.footer-links__title-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

.footer-links__list>li+li,
.footer-links__sublist>li+li {
    margin-top: 12px;
}

.footer-links__list li,
.footer-links__sublist li {
    margin-left: 1em;
    line-height: 1.35;
}

.footer-links__list a,
.footer-links__sublist a {
    position: relative;
    display: inline-block;
    padding-left: 14px;
    color: #141414;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.footer-links__list a::before,
.footer-links__sublist a::before {
    content: "›";
    position: absolute;
    top: 0;
    left: 0;
    color: #665aba;
    font-size: 15px;
    line-height: 1.3;
}

.footer-links__sublist a::before {
    content: "-";
    font-weight: 300;
}

.footer-links__sublist {
    margin-top: 10px;
    padding-left: 18px;
}

.footer-links__block--only-list {
    padding-top: 6px;
}

/* --- SP --- */
@media (max-width: 767px) {
    .footer-links {
        padding: 30px 0;
    }

    .footer-links__inner {
        width: min(100% - 40px, 100%);
    }

    .footer-links__user-nav {
        display: block;
        margin-bottom: 52px;
    }

    .footer-links__user-nav-item+.footer-links__user-nav-item {
        margin-top: 16px;
    }

    .footer-links__user-nav-item {
        text-align: center;
    }

    .footer-links__user-link {
        font-size: 15px;
    }

    .footer-links__sitemap {
        display: block;
    }

    .footer-links__block+.footer-links__block {
        margin-top: 36px;
    }

    .footer-links__title {
        margin-bottom: 14px;
        font-size: 18px;
        line-height: 1.5;
    }

    .footer-links__title-arrow {
        width: 20px;
        height: 20px;
    }

    .footer-links__title-arrow::before {
        width: 4px;
        height: 4px;
    }


    .footer-links__list.is-2col-sp {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
    }

    .footer-links__col:nth-child(2) {
        margin-top: 36px;
    }

    .footer-links__list.is-2col-sp>li+li {
        margin-top: 0;
    }

    .footer-links__list li,
    .footer-links__sublist li {
        margin-left: 0.5em;
    }

    .footer-links__list>li,
    .footer-links__sublist>li {
        margin-top: 8px;
    }

    .footer-links__list a,
    .footer-links__sublist a {
        padding-left: 12px;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 400;
    }

    .footer-links__sublist {
        margin-top: 4px;
        padding-left: 14px;
    }

    .footer-links__block--only-list {
        padding-top: 0;
        margin-top: 36px;
    }
}

/* ======================
   FOOTER
====================== */

.footer {
    padding: 14px 0 0;
    background: #fafafa;
}

.footer__inner {
    width: min(100% - 48px, 1272px);
    margin: 0 auto;
}

.footer__top {
    display: flex;
    gap: 80px;
    margin-bottom: 48px;
}

.footer__info {
    flex: 0 0 520px;
    min-width: 0;
}

.footer__name {
    margin-bottom: 18px;
}

.footer__name img {
    display: block;
    width: 306px;
    height: auto;
}

.footer__address {
    margin-bottom: 20px;
    color: #141414;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
}

.footer__sns {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.footer__sns-link {
    transition: opacity .2s ease;
}

.footer__sns-link img {
    display: block;
    width: 36px;
    height: 36px;
}

.footer__contact {
    margin: 0;
}

.footer__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: #e5006e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.footer__links {
    display: flex;
    flex: 1 1 auto;
    gap: 56px;
    padding-top: 8px;
}

.footer__group {
    flex: 1 1 0;
}

.footer__group li+li {
    margin-top: 18px;
}

.footer__group a {
    color: #141414;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity .2s ease;
}

/* ===== 下段（全幅白） ===== */

.footer__bottom {
    padding: 20px 0 32px;
    background: #fff;
    text-align: center;
}

.footer__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.footer__nav a {
    color: #141414;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity .2s ease;
}

.footer__copy {
    margin: 2em 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* pagetop */

.footer__pagetop {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 100;

    width: 44px;
    height: 48px;
    border: none;
    background: #6c5acb;
    cursor: pointer;
    pointer-events: none;


    transform: translateY(48px);

    transition: transform .3s ease;
}

.footer__pagetop.is-show {

    transform: translateY(6px);
    pointer-events: auto;
}

.footer__pagetop::before {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translate(-50%, -30%) rotate(45deg);
}



@media (hover: hover) {

    .utility-links__item:hover,
    .utility-links__sns-link:hover {
        background: #f0f0f0;
    }

    .global-nav__list a:hover,
    .global-nav__cta-btn:hover,
    .footer__group a:hover,
    .footer__nav a:hover,
    .footer__contact-btn:hover,
    .footer__sns-link:hover {
        opacity: .7;
    }

    .footer-links__user-link:hover {
        background: #fff;
        color: #141414;
    }

    .footer-links__sitemap a:hover {
        text-decoration: underline;
    }

    .footer__pagetop:hover {
        transform: translateY(2px);
    }
}

/* --- SP --- */

@media (max-width: 767px) {
    .footer {
        padding: 8px 0 0;
    }

    .footer__inner {
        width: min(100% - 40px, 100%);
    }

    .footer__top {
        display: flex;
        flex-direction: column-reverse;
        margin-bottom: 0;
        gap: 3em;
        border-top: #d9d9d9 1px solid;
        padding: 30px 14px 0;
    }

    .footer__info {
        flex: 1;
    }

    .footer__name img {
        width: 230px;
    }

    .footer__address {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.8;
    }

    .footer__sns-link img {
        width: 40px;
        height: 40px;
    }

    .footer__contact-btn {
        width: 100%;
        min-width: 0;
        height: 56px;
    }

    .footer__links {
        display: block;
        padding-top: 0;
    }

    .footer__group+.footer__group {
        margin-top: 18px;
    }

    .footer__group li+li {
        margin-top: 14px;
    }

    .footer__group a {
        font-size: 15px;
        font-weight: 400;
    }

    .footer__bottom {
        margin-top: 36px;
        padding: 16px 0 24px;
    }

    .footer__nav {
        gap: 4px 16px;
        margin-bottom: 10px;
    }

    .footer__nav a {
        font-size: 12px;
    }

    .footer__pagetop {
        width: 40px;
        height: 40px;
    }
}