/* selectTime.css */
.entry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1vh; /* ← モーダルの上の余白を調整できる */
  z-index: 1000;
}

.entry-modal-content {
  font-size: 16px;
  background-color: white;
  border-radius: 8px;
  width: 90%;
  overflow-y: auto;
  max-width: 95%;
  max-height: 95%;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* 非公式マーク */
#entryModal .entry-modal-content::before {
  content: "非公式";
  position: absolute;
  top: 6px;
  left: 24px;
  font-size: 10px;
  color: #aaaaaa;
  opacity: 0.8;
  pointer-events: none;
  font-weight: 600;
}

.entry-title {
  font-weight: bold;
  text-align: center;
  font-size: 16px;
 }
 
.entry-desc {
  padding: 16px;
  text-align: center;
  font-size: 13px;
 }
 
.entry-cell.clickable {
  cursor: pointer;
  transition: background 0.2s;
}

.entry-cell.disabled {
  pointer-events: none;
}

.schedule-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  border-bottom: none;
}

.schedule {
  //ヘッダー部分の高さは自動。後は固定
  grid-template-rows: auto auto repeat(5, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 700px;
  background: white;
}

.header {
  padding: 6px 4px;  
  font-weight: bold;
  text-align: center;
  background: #F2F4F5;
  line-height: normal;
  font-size: 16px;
}
.header:nth-child(odd) {
  border-right: 2px solid #ccc;
}

.description {
  grid-column: span 1;
  text-align: center;
  font-size: 13px;
  color: #555;
  padding: 6px 4px;
  background: #F2F4F5;
  margin-bottom: 0;
}
.description:nth-child(odd) {
  border-right: 2px solid #ccc;
}

.cell, .entry-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
}
.entry-cell:nth-child(odd) {
  border-right: 2px solid #ccc;
}

.icon-group {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 72px;
  width: 64px;
  margin-right: 10px;
}

.time-label {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.overlay-label {
  position: absolute;
  top: 30px;
  left: 16px;
  width: 36px;
  height: 16px;
  background: white;
  border: 1px solid #E6E6E6;
  color: #CE3028;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  line-height: 14px;
  z-index: 10;
  pointer-events: none;
  padding: 0;
}

@media (max-width: 500px) {
  .header {
    font-size: 14px;
  }
  .time-label {
    font-size: 14px;
  }
  .overlay-label {
    font-size: 10px;
    width: 34px;
    height: 14px;
    left: 15px;
    top: 32px;
  }
}

/* 既存の閉じるボタンと同じスタイルに合わせる */
.entry-reload-btn {
  display: block;
  margin: 10px auto 0; /* ← 上に余白を追加して、中央寄せ */
  padding: 12px 28px;
  font-size: 16px;
  background: #666;
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.entry-reload-btn:active {
  background-color: #444;
  transform: scale(0.97); /* 押した感を出す */
  color: #fff;
  outline: none;
  box-shadow: none; /* 押した時の影や薄さを消す */
}

.entry-close-btn {
  display: block;
  margin: 16px auto 0;
  padding: 12px 28px;
  font-size: 16px;
  background: #666;
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
}

.entry-close-btn:hover {
  background-color: #555;
}

.entry-close-btn:active {
  background-color: #444;
  outline: none;
  box-shadow: none;
}

/* ============================
   結果モーダル（entryResultModal）専用スタイル
   ============================= */

/* 白いダイアログ（黒枠・角丸なし） */
#entryResultModal .entry-result-box {
  border: 2px solid #000;      /* 黒い縁取り */
  border-radius: 0;            /* 角丸なし */
  background: #fff;
  position: relative;          /* ✖ ボタンを内側に固定するため必須 */
  padding: 40px 16px 16px;     /* 上に余白を作って ✖ と重ならない */
  box-shadow: none;

  /*  iPhone SE の 90% 375pxより狭い */
  max-width: 280px;
  width: 90%;
  margin: 0 auto;
}

/* ✖ ボタン（右上・背景透明） */
#entryResultModal .close-x {
  position: absolute;
  top: -12px;
  right: -4px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

#entryResultModal .close-x:hover {
  color: #000;
}

/* 非公式マーク */
#entryResultModal .entry-result-box::before {
  content: "非公式";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 10px;
  color: #aaaaaa;
  opacity: 0.8;
  pointer-events: none;
  font-weight: 600;
}

/* モーダル内の文字を太字に */
#entryResultModal #modal-message {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.6;
}

/* ★ 注意書き（note）を少し狭くする */
#entryResultModal .note-box {
  max-width: 230px;  
  margin: 16px auto 0;  /* 中央寄せ */
  background: #eee;
  padding: 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: bold;
}

#screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4); /* グレーの半透明 */
  z-index: 9998;               /* モーダルより下、UIより上 */
  display: none;               /* 初期は非表示 */
  pointer-events: auto;        /* クリックを遮断 */
}

/* selectTime.css の最後に追加 */
@media (min-width: 512px) {
  .entry-modal-content {
    width: 500px !important;
    max-width: 500px !important;
    margin: 0 auto;
  }
}
