
html, body {
  font-size: 9pt;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400; /* Light */

  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  background: #ff8513;
  padding: 24px 0 48px;
}

header {
  width: min(960px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center; 
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 20px;
  line-height: 1;
}

#page {
  width: min(960px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#titleArea {
  margin: 0;
  width:100%;
  background-color: whitesmoke;
  border-radius: 5px;

  padding-bottom:10px;
}

h1 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500; /* Light */
    font-size:18pt;
    color:orangered;
    display: flex;
    align-items: center;
    justify-content: center;

  /*  border:1px solid orangered; */
  /*  -webkit-text-stroke: 2px orangered; /* 縁取りの太さと色 */
}

.title-icon-link {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;

/*  border:1px solid green; */
}

.title-icon {
  width:24px;
  height:24px;
  display: block;

  margin-right: 8px;
  margin-top  : 2px;
/*  border:1px solid green; */
}

h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500; /* Light */
  font-size:14pt;
  color:orangered;

  margin-top    : 5px;
  margin-bottom : 5px;
/*  -webkit-text-stroke: 2px orangered; /* 縁取りの太さと色 */
}

.chapter {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 10pt;

  width:100%;


  color: orangered;
  background-color: whitesmoke;
  border-radius:5px;

  margin-top: 16px;
  margin-bottom: 8px;
}

#chapter2 {
  cursor: pointer;
}

#chapter2:hover {
  text-decoration: underline;
}

.operateBtn {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400; /* Light */
  font-size:9pt;

  color:white;
  background-color:orangered;

  width:200px;
  height:50px;

  border: 3px solid orange;
  border-radius: 10px;      /* 角を半径10pxで丸める */
}

.operateSubBtn {
  width:120px;
  height:50px;

  border: 3px solid orangered;
  border-radius: 10px;      /* 角を半径10pxで丸める */

  color:white;
  background-color:orange;

  font-size:9pt;
}

.operateImageBtn {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400; /* Light */
    font-size:9pt;

    color:white;
    background-color:orangered;

    width:100px;
    height:50px;

    border: 3px solid orange;
    border-radius: 10px;      /* 角を半径10pxで丸める */
  }

.btnRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

#previewContainer {
  width: min(90vw, 960px);
  height: min(60vh, 540px);
  max-height: 80vh;
  border: 2px dashed #c2c8d0;
  border-radius: 5px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
  resize: both;
  min-width: 320px;
  min-height: 180px;
}

#previewPlaceholder {
  color: #607080;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

#previewVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
}

#captures {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 20px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    box-sizing: border-box;
    resize: vertical;
  }

.imageWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

.captureLabel {
    width:50px;
    height:50px;

    font-size: 14pt;
    font-weight: 500;
    color: orangered;
    background-color: whitesmoke;
    border-radius: 5px;
}

.imageWrapper {
    display: flex;
  flex-direction: row;
    align-items: center;
    gap: 8px;

  border: 1px solid orangered;
  border-radius: 5px;      /* 角を半径10pxで丸める */
}

footer {
  width:100%;
  height:20px;
  background-color: whitesmoke;
  border-radius: 5px;
}

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

a:visited {
  color: #a44b26;
}

a:hover,
a:focus {
  color: #083b73;
  text-decoration: underline;
}

.contentDocs {
  text-align: left;
  width: min(90vw, 960px);
  background-color: whitesmoke;
  border-radius:5px;

  padding:16px;
  box-sizing: border-box;
}

/**
 * 右側の設定メニュー
 */
.SlideMenuRight {

  position: fixed;
/*  top: calc(100% - 60px); */
  right: -240px;
  width: 270px;
  height: 150px;
  background-color: whitesmoke;
  border-radius:5px;
  border:1px solid lightgray;
  
  transition: transform 0.6s ease-in-out;

  padding:  20px;
  font-size:    9pt;
  font-weight:  400;
  color: orangered;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;

/*  display: flex;
  flex-direction: column; /* 縦並びにする */
/*  justify-content: flex-end; /* 下端に配置 */

  max-height: 530px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;  /* "auto", "thin", "none" のいずれかを指定可能 */
}

.SlideMenuRight:hover {
  transform: translate( -220px, 0 );
}

.material-symbols-outlined {
  font-size: 32px;
/*  color: gray;

/* border:1px solid orangered;  */
}

#SlideConfigArea {
  display: flex;
  flex-direction: column;
  gap: 10px;
    margin-left:55px;

/* border:1px solid orangered; */
}

.captureConfig {
  display: flex;
  flex-direction: row;
  gap: 4px;
  font-size: 9pt;
  align-items: flex-start;

  border: 1px solid orangered;
  border-radius: 5px;

  color:black;
  background-color:whitesmoke;

  padding:5px;
}

.captureConfig label {
  width:120px;
}

/* 設定の入力input共通 */
#captureConfigInput {
  padding: 4px 6px;
/*  border: 1px solid #ccc; */
  border-radius: 6px;
  font-size: 9pt;
  box-sizing: border-box;
}

/* 設定の入力input個別 */
#captureLimitInput, #captureCountDownSec {
  width: 40px;
}

.countdownOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: clamp(32px, 10vw, 96px);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* 操作を妨げない */
}
