/*フォント*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/*背景とフォント*/
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(120deg, #ffe6e6, #e6f7ff);
    background-size: 200% 200%;
    animation: background 5s infinite ease;
}
@keyframes background {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/*ヘッダー*/
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 5px;
}
nav {
    font-size: 18px;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
}
nav:hover {
    opacity: 0.7;
}
@media (max-width: 768px) {
    .navi {
        display: none;
    }
}
.title {
    font-size: 25px;
    font-weight: bold;
    padding: 20px 20px;
    cursor: pointer;
}
.title:hover {
    opacity: 0.7;
}
.navi {
    font-size: 17px;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
}
.navi:hover {
    opacity: 0.7;
}

/*ハンバーガー*/
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 18px 20px;
}
.line {
    width: 30px;
    height: 4px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
}
.hamburger:hover {
    opacity: 0.7;
}
#hamburger-checkbox {
    display: none;
}
#hamburger-checkbox:checked ~ .menu {
    display: flex;
}
#hamburger-checkbox:checked+.hamburger .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 8.5px);
}
#hamburger-checkbox:checked+.hamburger .line:nth-child(2) {
    opacity: 0;
}
#hamburger-checkbox:checked+.hamburger .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -8.5px);
}
.menu {
    position: absolute;
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    right: 0;
    width: 200px;
    border-radius: 0 0 0px 21px;
    z-index: 1;
}

/*index*/
main{
    text-align: center;
}

.tile-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.tile {
    width: 80vw;
    height: auto;
    max-width: 500px;
    max-height: none;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px); 
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-shrink: 0;
    margin: 20px;
    overflow: hidden;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
}

.apps-grid img {
    width: 80%;
    max-width: 150px;
    border-radius: 5px;
    margin: 10px auto;
}

.title, .navi, .tile h3 {
    cursor: pointer;
}

.apps-grid img:hover {
    opacity: 0.9;
    cursor: pointer;
}




/* サブページ戻るボタン */
.back-button {
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.back-button:hover {
    opacity: 0.8;
}

/* ページヘッダー（戻るボタンとタイトル） */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.page-header img {
    margin-right: 33px;
    margin-bottom: 2px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* ページコンテナ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}


/*選択するやつ*/
select {
    width: auto;
    padding: 10px; 
    margin: 5px;
    border: 1px solid #ddd; 
    border-radius: 10px; 
    background-color: #f9f9f9; 
    font-size: 16px; 
    appearance: none;
    background-position: right 15px center; 
    background-size: 14px; 
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #0056b3; 
    outline: none;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.5); 
}

/*フッター*/
footer {
    text-align: center;
    font-size: 14px;
    color: #888;
    padding-bottom: 50px;
}

/* きょうの時間割の色 */
.in-class {
    color: #0aa35f;
}

.next-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #2f80ed;
}

/* きょうの時間割 レイアウト AI助言 */
#schedule-container p {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

#schedule-container p .sep {
    width: 24px;
    text-align: center;
    display: inline-block;
}

#schedule-container p .left {
    justify-self: end;
}

#schedule-container p .right {
    justify-self: start;
}

/* きょうの時間割 ローディング AI助言 */
#schedule-container.loading {
    opacity: 1;
}
.schedule-skeleton-line {
    position: relative;
    height: 18px;
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12), rgba(0,0,0,0.06));
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}