 
  @charset "UTF-8";

@media screen and (max-width: 600px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .ui-button {
    width: 100%;
    text-align: center;
  }

  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .left-post {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .left-post__body {
    width: 100%;
    text-align: center;
  }
}

.left-post__avatar .avatar-circle {
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 影で立体感（任意） */
}

.left-post__avatar img {
  width: 80px;
  height: auto;
  border-radius: 50%;
}


  /*==============ログイン画面====================*/
body {
  font-family: 'Murecho', 'IBM Plex Sans', 'Noto Sans JP', sans-serif;
  }
   .logout_message{
      padding: 10px;
      background-color: #f0f8ff;
      border: 1px solid #ccc;
      color: #333;
      margin-bottom: 20px;
      transition: opacity 0.5s ease;
    }
    .message.fade-out {
      opacity: 0;
    }
    .login_page {
            background: #f7f7f9;
            /* font-family: 'Courier New', Courier, monospace; */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column; 
             color: rgb(203, 90, 160);
            font-size: 13px;
            margin-top: 20px;
            overflow: hidden;
            position: relative;
}
    
    .login_page img{
            width: 30px;
            height: 30px;
    }

    .login_page .login-box {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 12px;
            padding: 30px;
            width: 300px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.login-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

    .login_page .login-box h2 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 20px;
            color: #2d2c2c;
    }

    .login_page .login-box h3 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 13px;
            color: #b5b3b3;
    }

        .login_page .login-box input {
            width: 100%;
            padding: 10px;
            margin-bottom: 12px;
            border-radius: 8px;
            border: 1px solid #ccc;
            font-size: 14px;
        }

        .login_page .login-box button {
            width: 100%;
            padding: 10px;
            background: #feb4eaf4;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            color: #f7f7f9;
            z-index: 10;
  position: relative;

        }
       .login_page .login-box button:hover {
            background: #f57de5;
        }
        


.login-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.icon-circle {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 0;
}


.icon-circle label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.3s ease;


}

.icon-circle img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: transform 0.3s;
}

@keyframes glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 192, 203, 0.6);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 192, 203, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 192, 203, 0.6);
  }
}

.glow-effect {
  animation: glow 1s ease;
}



/* ラジオボタンの〇を消す */
 .icon-circle input[type="radio"] {
  display: none;
} 

/* 選択されたアイコンに枠と拡大 */
.icon-circle input[type="radio"]:checked + img {
  border: 2px solid rgb(235, 145, 160);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 192, 203, 0.6);
} 

/* ホバーしたアイコンにも軽く反応 */
.icon-circle label:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(154, 154, 225, 0.4);
} 


  /*=================ログイン画面ここまで=====================*/
  

  /*=================index画面ここから=====================*/

@keyframes rotateOnce {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}



.user-icon-bottom-left img {
  animation: rotateOnce 1s linear 1; /* 1秒で1回転 */
} 
.index .index.php {
  margin: 0;
  overflow: hidden;
  height: 100vh;
}

.index-page  {
  background-image: url("img/IMG_9292.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;

  font-family: "Zen Maru Gothic", "Rounded M+ 1c", sans-serif;
}



/* タイトル*/
  .index h1 {
     font-size: 30px;
     color: rgb(244, 241, 241);  
     margin: 10px 15px 5px 15px;
          
 }
.index .user-icon-bottom-left {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  position: absolute;
  top: 200px;
  left: 2px;
  z-index: 9999; /* 最前面に表示 */
}
  .index .sidebar p{
  position: relative;
  left: 13%; 
  color: #141414;
  font-size: 18px;
  margin: 0;
} 
.index .inputs,
#subject_am,
#subject_pm{
color:#727070;
}
.button-group {
  display: flex;
  gap: 3px;
  justify-content: flex-start; /* 左揃え */
  margin: 5px 0;
  width: 350px;
}
.inputs {
   position: relative;
  max-width: 580px;
  width: 100%;
  margin: 40px auto;
  padding: 1rem;
  background-color: #fff;
  box-sizing: border-box;

margin-top: 3px; /* 以前の top: 158px に近づける */

  background-color: #fff;

  transition: top 0.3s ease;
  z-index: 1;
}
.ui-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f0f0f0;
  color: #8a6fcf; /* 紫系の文字色 */
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ui-button:hover {
  background-color: #c9d3fa;
  color: #e071bf;
}

/* .welcome-banner {
  font-size: 1.2em;
  color: #fff;
 
  padding: 8px 16px;
  animation: scrollText 30s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
} */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0px 20px;
  gap: 5px;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #d0d2da;
  font-weight: bold;
  white-space: nowrap;
}

.welcome-banner a.ui-button {
  margin: 0px 8px;
}


 .index a[href="logout.php"] {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f0f0f0;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    left: 180px; 
}
.index a[href="logout.php"]:hover {
    background-color: #c9d3fa;
    color: #e071bf;
}

hr { 
  margin: 0;
}

.animated-image.visible {
  opacity: 1;
  transform: translateY(0);
}
#image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 背景にする */
  pointer-events: none; /* クリックを通す */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.7; /* ふわっと背景らしく */
  
}

.animated-image {
  height: auto;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 最初の画像だけ元サイズで */
.index-page .animated-image:first-child {
  width: 1650px;       /* 横幅を広げる（例：1600px → 1800px） */
  height: 710px;
  position: absolute;
  left: -460px;        /* 左端の位置はそのまま */
  top: 7%;

  filter: brightness(1.1);
}

.spotlight-glow {
  position: absolute;
  top: 150px; /* スポットライトの下に配置 */
  left: 30%;
  transform: translateX(-60%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse at top center, rgba(255, 165, 0, 0.4) 0%, rgba(255, 165, 0, 0) 80%);
  pointer-events: none; /* 光がクリックを邪魔しないように */
  z-index: 5;
}
.table-decor {
  position: relative;
  width: 100%;
  height: 200px;
}

.coffee {
  position: absolute;
  left: 48%;
  bottom: 300px;
  width: 100px;
}

.candle {
  position: absolute;
  right: 4%;
  bottom: 300px;
  width: 100px;
}
        
/*====================カレンダー=====================*/
  h3#calendarTitle {
   font-size: 22px;
   color: rgb(221, 89, 188);
   position: absolute;
   right: 320px;
   padding-bottom: 15px;
 

  }
.calendar-header img{
 height: 30px;
 width: 30px;
 right: 270px;
 top: 245px;
 position: absolute;
}
.teacher .calendar-header img{
 height: 30px;
 width: 30px;
 right: 270px;
 top: 230px;
 position: absolute;
}
       :root {
            --pink: #ffe4ec;
            --pink-weak: #fff0f6;
            --blue: #d7ecff;
            --blue-weak: #eef7ff;
            --accent: #f0e6e8ff;
            --accent-strong: #ff91b2ff;

            --line: #e6e6e6;
            --muted: #a8a8a8;
            --bg: rgb(111, 86, 152);
            --card: #ffffff;
            --text: #222;
            /* box-sizing: border-box; */
        }

        

 .calendar-container {
  background: var(--card);
  border: 1px solid  #faf7f7;
  border-radius: 50px 0 0 50px;
  padding: 20px 20px;
  
  max-width: 500px;
  min-height: 200px;
  margin: 120px 0 20px 1020px; /* ← 右寄せ */
  box-sizing: border-box;
  border-right: none;
 
  margin-bottom: 10px;
  z-index: 10;
    box-shadow: 0 5px 6px rgba(0,0,0,0.08);
    background: rgba(239, 234, 234, 0.1); /* 白っぽく、少し透ける */
   
    float: right;
    width: 35%;
  


}

.calendar-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("calendar-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}
      .nav {
  position: absolute;
  right: 48px;
  top: 245px;
  display: flex;
  gap: 5px;
}

     .teacher .nav {
  position: absolute;
  right: 48px;
  top: 228px;
  display: flex;
  gap: 5px;
}


        .nav button {
            border: none;
            background:  #f8f9fb;
            padding: 6px 10px;
            border-radius: 10px;
            cursor: pointer;
            /* transition: .15s; */
            font-weight: 600;
        }

        .nav button:hover {
            background: #a3bef5;
        }

        .nav button#todayBtn {
            background: #f3a8ec;
        }

        .nav button#todayBtn:hover {
            background: var(--accent);
        } 

         .calendar {
            margin-top: 29px;
            padding-right: 10px;
            overflow: auto;
            height: 200px;
        }
.calendar-grid {
  width: 100%;
  margin: 5px 0 0 auto;

}


        thead th {
            background: #eee9e9ff;
            text-align: center;
            padding: 6px 0;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
           
        }

        thead th.sun {
            background: var(--pink);
        }

        thead th.sat {
            background: var(--blue);
        }

        tbody td {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 15px;
            vertical-align: top;
            height: 50px;
          
            padding: 4px;
            position: relative;
            cursor: pointer;
            transition: background-color .15s, box-shadow .15s;
            overflow: hidden;
        } 

        tbody td:hover {
            background: #fffaf7;
        }

        tbody td.sun {
            background: var(--pink-weak);
        }

        tbody td.sat {
            background: var(--blue-weak);
        }

        td.other-month {
            color: var(--muted);
            background: #fafafa;
        } 

     td.selected {
            outline: 2px solid var(--accent);
            box-shadow: 0 0 0 3px rgba(255, 182, 193, .35) inset;
        }

        .date-badge {
            font-size: 12px;
            font-weight: 700;
            background: #fff;
            color: #666;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid var(--line);
            display: inline-block;
        }

        td.today .date-badge {
            background: #fff4f7;
            color: #c02c5e;
            border-color: #ffc6d4;
        }   

         .has-schedule-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            position: absolute;
            right: 8px;
            top: 5px;
            opacity: .9;
            
        } 
/*=============予定=======================*/
         .schedule-display {
            margin-top: 0;
            background: #fff;
            border: 3px solid #c4c1c2;
            border-radius: 12px;
            padding: 7px 12px;
            font-size: 14px;
            min-height: 50px;
            width: 100%;
            max-width: 406px;

            position: relative;

            right: 0px;
            top: 0px;
            

        }

        .schedule-display .date-title {
            font-weight: 450;
            margin-bottom: 4px;
            font-size: 13px;
           
        }

        .schedule-display ul {
            margin: 0;
            padding-left: 18px;
        }

        .schedule-display .empty {
            color: #c1bebe;
        } 
  /* 連絡 */


            .left-post__title {
                margin: 5px 0 6px 0;
                font-size: 17px;
             text-align: left;

            }

            .left-post__meta {
                display: flex;
                text-align: top;
                align-items: top;
                gap: 8px;
                color: var(--muted);
                font-size: 12px;
                flex-wrap: wrap;
            }

            .left-post__dot {
                opacity: .6;
            }

            .left-post__tag {
                margin-left: 4px;
                padding: 2px 8px;
                border-radius: 999px;
                background: var(--pink);
                color: #333;
                font-weight: 600;
            }

            .left-post__tag--blue {
                background: var(--blue);
            } 

             .left-post__tag--gray {
                background: var(--tag);
                color: #444;
            }
.left-post__body {
  position: relative;
}

.left-post__body div:not(:first-child) {
  position: absolute;
  top: 100px;
  left: 80px;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}


.left-post {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
   width: 50%;
  max-width: 980px;
  margin: 40px auto 0px 750px; /* ← 左を自動、右を固定 */
  padding: 0;
  position: relative;
  max-height: fit-content;
   /* background: rgba(240, 235, 235, 0.3); 白っぽく、少し透ける */

}



.left-post__bubble {
  position: relative;
  background: #ebf0f0;
  border-radius: 10% 50px 10%;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Yu Gothic', sans-serif;
  max-width: 600px;
  height: 100px;
  margin-right: 16px;
}

/* 吹き出しの三角形（右側に表示） */
.left-post__bubble::after {
  content: "";
  position: absolute;
  top: 33px;
  right: -16px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #ebf0f0;
}

.left-post__avatar {
  flex-shrink: 0;
}

.left-post__avatar img {
  width: 80px;
  height: auto;
  border-radius: 50%;
  filter: contrast(600%) brightness(90%);
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝連絡欄ここまで＝＝＝＝＝＝＝＝＝＝＝ */


/* ==========日報提出欄=============*/



.inputs {
  
  padding: 0;
  background: var(--card);

  margin-bottom: 10px;
  position: absolute;
  top: 168px;
  left: 75px;
   height:337px;
  width: 580px;
  background: #2c2b2b;
}

.inputs h3{
  margin: 10px 10px 10px 35px;
    color: #f7f5f5;
}
.input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  align-items: center; /* ← 中央寄せ */
  color: #eef0f3;
}
.input-row textarea {
  width: 480px; /* ← 580pxの親に対してちょうどよい幅 */
  height: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #f9f9fc;
  font-size: 15px;
  box-shadow: inset 0 1px 3px rgba(250, 133, 224, 0.05);
}

.input-row button {
  position: absolute;
  bottom: 5px;
  right: -10px;
  transform: translateX(-50%);
  height: 50px;
  padding: 0 20px;
  background: var(--accent-strong);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
   color: #fefcfc;
}
.input-row button:hover {

  color: #232323;
} 
.inputs p{
    margin-bottom: 3px;
      /* font-family: 'Courier New', Courier, monospace; */
      margin-left: 2px;
} 

.select_box {
  display: flex;
  justify-content: left;
  margin: 10px 0;
}

.select_box select {
  font-size: 8; /* 既存のサイズを維持 */
  background: #f9f9fc;
  color: #686767;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0; /* 余白を追加しない */
  outline: none;
  width: auto; /* サイズを固定しない */
}

.select_box select:focus {
  border-color: var(--accent-strong);
  background: #fff;
}

.section p {
  position: absolute;
  left: 86%;
}



.index  .submit-message{
  transition: opacity 0.5s ease;
  opacity: 1;
  
  padding: 0px;
  margin:  0;

  color: #90b6f4;
  text-align: center;
}
#subject_am,
#subject_pm {
  font-size: 8;
  background: #f9f9fc;
  color: #686767;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0;
  outline: none;
  width: auto;
}

#subject_am:focus,
#subject_pm:focus {
  border-color: var(--accent-strong);
  background: #fff;
 
}





/*＝＝＝＝＝＝＝＝＝＝＝＝日報一覧＝＝＝＝＝＝＝＝＝＝＝＝*/

/* .my_report img {
  width: 60px !important;
  height: 60px !important;
}

.my_report  {
  background-image: url("img/texture_blue1_l2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;

  font-family: "Zen Maru Gothic", "Rounded M+ 1c", sans-serif;
} */

.my_report .my-report-header {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
}

.my_report .my-report-header-box {
  display: flex;
  align-items: center;
  gap: 1em;
  max-width: 400px;
}

.my_report .my-report-header-box img {
  width: 60px;
  height: 60px;

}

.my_report .my-report-header-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4em;
}

.my_report .my-report-header-texts p {
  font-size: 18px;
  margin: 0;
  text-align: center;
}

.my_report .my-report-nav-buttons {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}

.my_report .my-report-back-button {
  padding: 6px 12px;
  background-color: #f8b8d0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 5px 7px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.my_report .my-report-back-button:hover {
  background-color: #f49ab8;
}

.my_report .my-report-logout {
  padding: 6px 10px;
  background-color: #f0f0f0;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 5px 7px rgba(0,0,0,0.1);
}

.my_report .my-report-logout:hover {
  background-color: #c9d3fa;
  color: #e071bf;
}
.my_report h2 {
  margin: 0 0 0.3em;
  font-size: 1.4em;
  text-align: center;
}
.my_report .my-report-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  
  padding: 1em 0 0 0;
}

.my_report .my-report-header,
.my_report .search-form {
  max-width: 880px;
  margin: auto;
}

.my_report .my-report-main {
  margin-top: 170px; /* 固定領域の高さ分だけ余白を確保 */
  padding: 0 1em;
}
.report-card {
  background: #fcfdfd;
  border: 1px solid #e0dcd2;
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 4px 6px 10px rgba(0,0,0,0.05);
  font-size: 15px;
  line-height: 1.6;
  max-width: 880px;
  position: relative;
}

.report-card p {
  
  white-space: pre-wrap;         /* 改行と折り返しを保持 */
  word-wrap: break-word;         /* 長い単語も折り返す */
  overflow-wrap: break-word;     /* 同上：互換性のため */
  line-height: 1.6;              /* 読みやすい行間 */
  max-width: 100%;               /* はみ出し防止 */

  margin: 6px 0;

} 
.report-card p strong {

  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 500;
  color: #7a7c7e;
}
.report-card textarea {
    width: 650px;
    border-radius: 8px;
}

.my_report .report-list {
  margin: 1em auto;
  max-width: 880px;
  padding: 0 1em;
  overflow-y: auto;
}

 .no_report{
    position: absolute;
    left: 52%;
    transform: translateX(-50%);
    top: 30%;
 }

.reply {
  background: #a6c1c6;
  border-left: 4px solid #62a0db;
  padding: 8px;
  margin-top: 8px;
  border-radius: 8px;
}

.no-reply {
  color: #888;
  font-style: italic;
}

.report-card textarea {
    width: 650px;
    border: 3px solid var(--line);
  
    margin: auto;
}

.report-card.replied {
  background-color: #e8eff8; /* やさしい青系 */
  border-left: 6px solid #d7e8f9; /* 左に青ライン */


  
}
.my_report .search-form {
    margin: 1em auto;
    text-align: center;
}

.my_report .search-form input {
    padding: 0.6em;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 45%;
    max-width: 320px;
    margin: 0.5em;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.my_report .search-form button {
    padding: 0.6em 1.2em;
    border-radius: 10px;
    background-color: #caceca;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.my_report .search-form button:hover {
    background-color: #b0b0d0;
}
.teacher-reply {
  background-color: #e8eff8;
  border: 1px solid #bfdaf4;
  padding: 1em;
  border-radius: 12px;
  position: relative;
  max-width: 600px;
  margin: 1em auto;
  font-size: 0.95em;
  color: #357ac8;
}

.teacher-reply::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: #e8eff8;
}


/*＝＝＝＝＝＝＝＝＝＝＝＝日報一覧ここまで＝＝＝＝＝＝＝＝＝＝＝＝*/



/*======================先生欄ここから========================*/

.teacher  {
  background-image: url("img/IMG_9291.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  height: 100vh;

  font-family: "Zen Maru Gothic", "Rounded M+ 1c", sans-serif;
}

.teacher .spotlight-glow {
  position: absolute;
  top: 256px; /* スポットライトの下に配置 */
  left: 17%;
  transform: translateX(-60%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse at top center, rgba(255, 165, 0, 0.3) 0%, rgba(255, 165, 0, 0) 80%);
  pointer-events: none; /* 光がクリックを邪魔しないように */
  z-index: 5;
}

      .teacher body {
            font-family: 'Segoe UI', sans-serif;
            background: #f7f7f9;
            padding: 20px 20px 20px 0;
        }  
  .teacher .sidebar p{
  position: relative;
  left: 80%; 
  color: #141414;
  font-size: 18px;
  margin: 0;
} 

.t-report-list {
   position: absolute;
   top: 175%;
  max-height: 600px;
max-width: 850px;
  overflow-y: auto;
  margin-top: 0px;
   left: 0%;
    padding: 0 8px;
width: 845px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  
 }
.teacher .report-card h4{
  margin: 0;
}
.teacher .report-card{
  padding-top: 10px;
} 
        .teacher h4 {
           right: 0;
        }

        .teacher  p {
            margin: 4px 0;
        }

        .teacher textarea {
            width: 100%;
            height: 60px;
            border-radius: 8px;
            border: 1px solid #ccc;
            padding: 8px;
            font-size: 14px;
        } 
        .teacher .report-list {
           margin-top: 5px;
          }

        .teacher .button {
            margin-top: 8px;
            padding: 8px 12px;
            background: #98c9ff;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
        }

        .teacher .button:hover {
            background: #7bb8f0;
        } 

        .filter-bar {
  background-color: #f5f9ff;
  border: 1px solid #cce0ff;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  width: 112%;
  position: absolute;

 
}

.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-bar label {
  font-size: 0.95em;
  color: #333;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
}

.filter-bar button {
  background-color: #4a90e2;
  color: white;
  border: none;
  cursor: pointer;
}

.filter-bar button:hover {
  background-color: #357ac8;
}

.main-content {
  position: absolute;
    float: left;
    width: 49%;
    margin: 20px;
    top:220px;
}

.teacher .main-content h2{
  text-align: center;
  margin-bottom: 0;
  padding-right: 290px;
  color: #141414;
}

/* =====================掲示板ここから＝＝＝＝＝＝＝＝＝＝＝＝ */


.board.php html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロール防止 */
  overflow-y: auto;   /* 縦スクロールは必要に応じて */
  max-width: 100vw;
  max-height: 100vh;
}
/* 掲示板コンテナ */
.board-a  {
  background-image: url("img/IMG_9291.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  height: 100vh;

  font-family: "Zen Maru Gothic", "Rounded M+ 1c", sans-serif;
}
.board {

  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
  padding-top: 5px;
  max-width: 950px;
  margin: auto;
  margin-top: 10px;
  max-height: 250px;
 
}
.board-form h3{
  margin: 5px 2px 8px 10px;

  color: #807e7e;
}
.board-box{
  width: auto;
}
/* 投稿フォーム */
.board-form {
  background-color: #ffffff;

  padding: 1rem;
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */

  margin: 0 auto;
  padding-top: 0;

}

.board-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.board-form__row--horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-form__row--side {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.board-form__label {
  font-weight: bold;
  font-size: 14px;
  color: #555555;
}

.board-form__input,
.board-form__textarea,
.board-form__select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9f9fc;
}

.board-form__textarea {
  resize: none;
  height: 40px;
}

.board-form__submit {
  background-color: #e0789e; /* やさしいピンク系 */
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 200px;
  margin-top: 20px;
}

.board-form__submit:hover {
  color: #111010; /* ホバー時に少し濃く */
}

/* 投稿一覧：横並びスクロール */
.board-list {
  display: flex;
     flex-direction: row;

pointer-events: auto;
scroll-behavior: smooth;
overflow-x: auto;
 overflow-y: auto;

  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
 -webkit-overflow-scrolling: touch;
flex-wrap: nowrap; 
  background: #f0f0f0;
    width: 100vw; 
 margin-left: calc(-50vw + 50%); /* ← 中央寄せの中で画面全体に広げる */
  box-sizing: border-box;

  -ms-overflow-style: none;
  scrollbar-width: none;


}
.board-list::-webkit-scrollbar {
  display: none;
}


.post {
  flex: 0 0 auto;
  width: 260px;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.3s ease;
  margin: 3px;
  padding: 5px;
}

.post[data-status="new"] {
  box-shadow: 0 5px 10px rgba(249, 86, 68, 0.4); /* 未読：赤みのある目立つ影 */
}

.post:hover {
  transform: scale(1.05); /* ← 5%拡大 */
  z-index: 10;
}

/* 投稿内容 */
.post__title {
  font-size: 14px;
  font-weight: bold;
  margin: 0.2em 0;
}

.post__meta {
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
}

.post__body  {
  font-size: 14px;
  margin-top: 8px;
  white-space: pre-wrap;
}

/* コメント欄（ふせん風） */
.board .comment-list p {
  background-color: #f7e9dc; /* ふせん風の黄色 */
  font-size: 12px;           /* 小さめに調整 */
  padding: 6px 10px;
  border-radius: 6px;
  margin: 4px 4px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  color:#8491e8;



}
/* ボタン類 */
.post__btn,
/* .board-form__submit, */
.board .post__header button {
  background-color: #eeeeee;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.7em;
  cursor: pointer;

}

.post__btn:hover {
  background-color: #dddddd;
}

.board-box {
  overflow: visible;
}
.board-list::-webkit-scrollbar {
  display: none;
}

.post[data-status="new"]::before {
  content: "NEW!";
  position: absolute;
  top: -8px;
  right: 4px; /* ← ここがポイント！ */
  background: #e74c3c;
  color: white;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}
.file-wrapper {
  position: relative;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  margin: 16px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    flex: 0 0 auto; /* ← 横並びで幅を固定する */
  width: 300px;  /* ← カードの横幅を指定する */
  scroll-snap-align: start;
}


/* .file-frame {
  padding: 12px;
  background: #e7d9fa;
  border-radius: 16px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 0 0 auto;
  
} */
.file-frame {
  position: relative;
  background:  #e7d9fa;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  margin-top: 24px;
}

/* 紫のタブ部分 */
.file-tab {
  position: absolute;
  top: -16px;
  left: 0px;
  width: 100px;
  height: 24px;
  background:  #e7d9fa;
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);

  z-index: 1;
  border-radius: 12px 12px 0 0;
}

.board-form__select--category {
  flex: 0 0 20%;
  width: 100px;
}

.board-form__input--title {
  flex: 0 0 50%;
  width: 300px;
}

.board-form__input--author {
  flex: 0 0 30%;
  width: 100px;
}
/* カーソルをカスタム画像に変更 */
.custom-area {
  cursor: url('your-cursor-image.png') 16 16, auto;
}

/* カーソルをCSSのキーワードで変更 */
.pointer-style {
  cursor: pointer; /* 手のひら */
}

.cross-style {
  cursor: crosshair; /* 十字 */
}

.text-style {
  cursor: text; /* テキスト入力用 */
}

.like-btn {
  padding-right: 12px;
}
.comment-count-btn {
  font-size: 1em;
  margin-left: 2.5px;
}

 .comment-input {
  height: 20px; /* 名前欄と同じ高さに調整 */
  vertical-align: middle;
  resize: none; /*サイズ変更を禁止して、見た目を安定させる*/
  padding: 4px 3px;
  box-sizing: border-box;

}
.comment-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
  max-width: 500px; /* ← 必要に応じて調整 */
}
.comment-text {
  /* margin: auto; */
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  flex: 1;
  font:#eeeeee;
}

 .comment-list + input + textarea + button {
  background-color: #e6dfff;
  color: #5a4b8b;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9em;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.comment-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 左寄せ */
  margin-left: 0;
  margin-right: auto;      /* ← 右側の余白を自動にして左寄せ */
  width: fit-content;      /* ← 内容に合わせて幅を調整 */
}
.comment-list button {
  border: none;
  background-color: #e6dfff;
  color: #5a4b8b;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8em;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.comment-list button:hover
 {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.15);
}
