.header {
  border-bottom: 3px solid red;
  padding-bottom: 2px;
  position: relative;   
  width: 650px;
}


.header h2 {
  margin: 0;
}

#ImgStatus {
   margin-top: 10px;
  display: block;
  width: 624px;
  max-width: 624px;
  height: auto;
}

#ImgStatus2 {
   margin-top: 10px;
  display: block;
  width: 624px;
  max-width: 624px;
  height: auto;
}

#ImgTitle {
   margin-top: 10px;
}

#ImgTitle2 {
   margin-top: 15px;
  display: block;
  width: 624px;
  max-width: 624px;
  height: auto;
}

body.act01012 #ImgTitle2,
body.act01013 #ImgTitle2 {
  margin-top: 4px;
}

.lang-area {
  position: relative;
  width: 624px;
  text-align: right;
  margin-top: 14px;
  padding-right: 0;
}
body.act01010 .header::after {
  content: "";
  position: absolute;
  bottom: -95px; 
  left: 0;
  width: 100%;
  height: 25px;   
  background-color: #ebebeb;
}

.noscript-message-box {
  width: 750px;
  margin-top: 24px;
  border: 1px solid #999;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 34px;
  color: #111;
}

.noscript-message-title {
  background-color: #efc391;
  border-bottom: 1px solid #999;
  padding: 8px 12px;
}

.noscript-message-body {
  background-color: #fff;
  padding: 8px 12px;
}

#explanation  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
}

#explanation2  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  margin-top: 0px;
}

#explanation3  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  margin-top: 0px;
}

#explanation4  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 600; 
  margin-top: 0px;
}

#explanation5  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  margin-top: 0px;
}
#explanation6  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  margin-top: 0px;
}
#explanation7  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  margin-top: 0px;
}

.center-box {
  width: 320px;             
  min-height: 120px;         
  margin: 24px auto;        
  border: 1px solid #999;      
  box-sizing: border-box;
  padding: 12px;
}

.info-grid {
  width: 400px;
  border-collapse: collapse;
  margin: 16px auto;
  background: #fff;
  margin-left: 100px;  
}

.info-grid th,
.info-grid td {
  border: 1px solid #999;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
}

.info-grid th {
  width: 35%;
  font-weight: 500;
  background: #fff;
}

.info-grid tr:last-child th,
.info-grid tr:last-child td {
  background: #f4ebeb;
}

#ErrorMessage,
#machineNoErrorMessage {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  color: red;
  min-height: 25px;
}

#ImgTitle {
     margin-top: 0px;
} 

#instruction {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  margin-top:-5px;
  font-weight: 350; 
}

.product-id-box {
  display: flex;
  align-items: stretch;   
  border: 1px solid  #999;
  width: fit-content;
}

.label {
  width: 110px;
  font-weight: bold;
  font-size: 13px;
  background-color: #ebebeb;
  display: flex;
  align-items: center;
  padding: 8px;
  border-right: 1px solid #999;
  box-sizing: border-box;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  padding: 8px;
}


.input-container input {
  width: 100px;
}

.line {
border: 0;
border-top: 1px solid #999;
margin: 12px 0;
width: 650px;
}

.machine-row {
  width: 320px;
  margin: 16px 0 0 90px;
  min-height: 64px;
    border: 1px solid #9a9a9a;
    display: flex;
    align-items: center;
    background: #fff;
}

.machine-label {
  width: 118px;
  padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
  line-height: 1.45;
  text-align: center;
    color: #111;
  border-right: 1px solid #9a9a9a;
    box-sizing: border-box;
}

.machine-input-area {
    flex: 1;
  padding: 0 6px;
  display: flex;
  align-items: center;
    box-sizing: border-box;
}

.machine-input {
    width: 100%;
  height: 22px;
    border: 1px solid #8f8f8f;
    box-sizing: border-box;
    padding: 1px 6px;
    font-size: 13px;
}

.confirm-grid {
  width: 430px;
  border-collapse: collapse;
  margin: 44px 0 26px 84px;
  background: #fff;
}

.confirm-grid th,
.confirm-grid td {
  border: 1px solid #aaaaaa;
  font-size: 13px;
  text-align: center;
  padding: 6px 10px;
  vertical-align: middle;
}

.confirm-grid th {
  width: 170px;
  font-weight: 700;
  line-height: 1.35;
  background: #fff;
}

.confirm-grid td {
  width: 290px;
  font-weight: 400;
}

body.act01014 .confirm-grid .confirm-model-row td,
body.act01014 .confirm-grid .confirm-machine-row th,
body.act01014 .confirm-grid .confirm-machine-row td {
  background: #f4ebeb;
}


body.act01014 .confirm-grid .confirm-machine-row th,
body.act01014 .confirm-grid .confirm-machine-row td {
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1.25;
}

.confirm-grid #modelNameValue {
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.35;
}
/* 機能名行: 2列構成にして右列(商品名と同じ列)に中央寄せで表示し、
   この行だけ左右セルの間の縦線を消す(外枠・上下の線は残す) */
.confirm-grid .confirm-model-row .confirm-model-spacer {
  width: auto;
  border-right: none;
}
.confirm-grid .confirm-model-row #modelNameValue {
  border-left: none;
  text-align: center;
}

body.act01014 #nexttext,
body.act01014 #explanation6 {
  width: 650px;
  text-align: right;
}


#nextbtn {
  width: 630px;
  margin-top: 20px; 
  text-align: right;
  border: none;       
  background: none;      
  padding: 0;            
  cursor: pointer;

}

#nexttext  {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  font-weight: 350; 
  width: 650px;
  margin: 20px 0 0 0;
  text-align: right;
  line-height: 1.4;
  min-height: 1.4em;
}

#nextbtn2 {
  display: block;
  width: fit-content;
  margin: 0;
  border: none;       
  background: none;      
  padding: 0;            
  cursor: pointer;

}

.btn-area {
  width: 650px;
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Tighten vertical spacing on ACT01011-15 while keeping ACT01010 unchanged. */
body.act01011 #ImgStatus2,
body.act01012 #ImgStatus2,
body.act01013 #ImgStatus2,
body.act01014 #ImgStatus2,
body.act01015 #ImgStatus2 {
  margin-top: 6px;
}

body.act01011 #ImgTitle2,
body.act01012 #ImgTitle2,
body.act01013 #ImgTitle2,
body.act01014 #ImgTitle2,
body.act01015 #ImgTitle2 {
  margin-top: 2px;
}

body.act01011 .info-grid {
  margin-top: 10px;
}

body.act01012 .machine-row,
body.act01013 .machine-row {
  margin-top: 10px;
}

body.act01014 .confirm-grid,
body.act01015 .confirm-grid {
  margin-top: 24px;
}

body.act01014 .issue-warning-area {
  display: none;
  width: 430px;
  margin: -4px 0 0 84px;
  min-height: 54px;
}

body.act01014 .issue-warning-primary,
body.act01014 .issue-warning-secondary {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  text-align: left;
  line-height: 1.45;
}

body.act01014 .issue-warning-primary {
  color: red;
  font-weight: 700;
}

body.act01014 .issue-warning-secondary {
  color: #111;
  font-weight: 400;
}

body.act01011 #nexttext,
body.act01012 #nexttext,
body.act01013 #nexttext,
body.act01014 #nexttext,
body.act01015 #nexttext {
  margin-top: 12px;
}

body.act01011 .btn-area,
body.act01012 .btn-area,
body.act01013 .btn-area,
body.act01014 .btn-area,
body.act01015 .btn-area {
  margin-top: 8px;
}

/* Keep ACT01012 text and images stable while assets/language load. */
body.act01012 {
  width: 650px;
}

body.act01012 #title {
  min-height: 1.25em;
}

body.act01012 #ImgStatus2,
body.act01012 #ImgTitle2 {
  width: 624px;
  max-width: 624px;
  user-select: none;
  -webkit-user-drag: none;
}

body.act01012 #ErrorMessage {
  min-height: 25px;
}

body.act01012 #explanation3 {
width: 650px;
min-height: 2.8em; 
}

body.act01012 #nexttext {
  width: 650px;
  min-height: 1.4em;
}

body.act01012 .machine-row {
  min-height: 64px;
  margin-top: 10px;
}

#backbtn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  margin-right: auto;
}

#printbtn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  margin-right: auto;
}

body.act01015 .confirm-grid .confirm-model-row td,
body.act01015 .confirm-grid .confirm-machine-row th,
body.act01015 .confirm-grid .confirm-machine-row td {
  background: #fff;
}

body.act01015 .confirm-grid {
  width: 430px;
}

body.act01015 .confirm-grid th {
  width: 150px;
}

body.act01015 .confirm-grid td {
  width: 280px;
}


body.act01015 .confirm-grid .complete-license-row th,
body.act01015 .confirm-grid .complete-license-row td {
  background: #f4ebeb;
}

body.act01015 .issue-date {
  width: 430px;
  margin: -16px 0 14px 84px;
  text-align: right;
  font-size: 13px;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
}

body.act01015 #completeMessage2 {
  width: 650px;
  margin-top: 12px;
  margin-bottom: 8px;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-line;
  font-weight: 350;
}

body.act01015 .complete-bottom-row {
  width: 650px;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

body.act01015 #printbtn {
  margin-right: 0;
}

body.act01015 #reInputLink {
  /* flex:1 だとリンクが残り幅いっぱいに広がり、文字の左右の余白でも反応するため、
     文字の幅だけにして、残りの余白は auto で左右均等に配分する(表示位置は従来どおり中央) */
  flex: 0 1 auto;
  margin: 0 auto;
  text-align: center;
  position: relative;
  left: -18px;
  font-size: 13px;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
}

body.act01015 #completeMessage3 {
  width: 650px;
  text-align: right;
  margin-top: 6px;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-line;
  font-weight: 350;
}

/* Keep static pages from accidental drag/selection movement. */
body.act01010 img,
body.act01011 img,
body.act01012 img,
body.act01013 img,
body.act01014 img,
body.act01015 img,
body.act01016 img {
  user-select: none;
  -webkit-user-drag: none;
}

body.act01010 h2,
body.act01011 h2,
body.act01012 h2,
body.act01013 h2,
body.act01014 h2,
body.act01015 h2,
body.act01016 h2,
body.act01010 h4,
body.act01011 h4,
body.act01012 h4,
body.act01013 h4,
body.act01014 h4,
body.act01015 h4,
body.act01016 h4,
body.act01010 th,
body.act01011 th,
body.act01012 th,
body.act01013 th,
body.act01014 th,
body.act01015 th,
body.act01016 th,
body.act01010 td,
body.act01011 td,
body.act01012 td,
body.act01013 td,
body.act01014 td,
body.act01015 td,
body.act01016 td,
body.act01010 label,
body.act01011 label,
body.act01012 label,
body.act01013 label,
body.act01014 label,
body.act01015 label,
body.act01016 label,
body.act01010 span,
body.act01011 span,
body.act01012 span,
body.act01013 span,
body.act01014 span,
body.act01015 span,
body.act01016 span,
body.act01010 a,
body.act01011 a,
body.act01012 a,
body.act01013 a,
body.act01014 a,
body.act01015 a,
body.act01016 a {
  user-select: none;
}

body.act01016 .print-action-row {
  width: 650px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 0;
}

body.act01016 .print-main-wrap {
  width: 650px;
}

body.act01016 .header {
  width: 595px;
  border-bottom: 4px solid #cc0000;
  padding-bottom: 0;
  margin-bottom: 10px;
}

body.act01016 #title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

body.act01016 #ImgTitle2 {
  margin-top: 2px;
}

body.act01016 .confirm-grid {
  width: 430px;
  margin-top: 24px;
}

body.act01016 .confirm-grid th {
  width: 150px;
}

body.act01016 .confirm-grid td {
  width: 280px;
}

body.act01016 .confirm-grid .confirm-model-row td {
  text-align: left;
  text-indent: 236px;
  padding-left: 0;
  padding-right: 0;
  background: #fff;
}

body.act01016 .confirm-grid .complete-license-row th,
body.act01016 .confirm-grid .complete-license-row td {
  background: #f4ebeb;
}

body.act01016 .issue-date {
  width: 430px;
  margin: -16px 0 14px 84px;
  text-align: right;
  font-size: 13px;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
}

body.act01016 #printMessage1 {
  width: 650px;
  margin-top: 12px;
  margin-bottom: 0;
  padding-bottom: 6px;
  border-bottom: 6px double #666666;
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-line;
  font-weight: 350;
}

body.act01016 #printbtn,
body.act01016 #closebtn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  margin-right: 0;
}

/* Stabilize text placement across all ACT pages. */
body.act01010,
body.act01011,
body.act01012,
body.act01013,
body.act01014,
body.act01015,
body.act01016 {
  width: 650px;
  min-width: 650px;
  margin: 8px;
  line-height: 1.4;
  font-family: "Yu Gothic Medium", "Yu Gothic", "Meiryo", "游ゴシック", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.act01010 .js-only {
  width: 650px;
}

body.act01010 #title,
body.act01011 #title,
body.act01012 #title,
body.act01013 #title,
body.act01014 #title,
body.act01015 #title {
  min-height: 1.25em;
  line-height: 1.25;
}

body.act01010 #explanation,
body.act01011 #explanation2,
body.act01012 #explanation3,
body.act01013 #explanation4,
body.act01014 #explanation5,
body.act01014 #explanation6,
body.act01015 #explanation7,
body.act01015 #completeMessage2,
body.act01015 #completeMessage3,
body.act01016 #printMessage1,
body.act01010 #instruction,
body.act01011 #nexttext,
body.act01012 #nexttext,
body.act01013 #nexttext,
body.act01014 #nexttext {
  width: 650px;
  box-sizing: border-box;
}

body.act01010 #ErrorMessage,
body.act01011 #ErrorMessage,
body.act01012 #ErrorMessage,
body.act01013 #ErrorMessage,
body.act01014 #ErrorMessage,
body.act01015 #ErrorMessage {
  width: 650px;
  min-height: 25px;
  box-sizing: border-box;
}

/* ============================================================
 * 言語適用が完了するまで画面を隠す(初期文言・初期画像のちらつき防止)
 * 各ACTxxxx.js が言語適用後に body へ lang-ready を付与する。
 * visibility を使うのでレイアウトは確保されたまま(表示時にガタつかない)。
 * ============================================================ */
body.act01010:not(.lang-ready),
body.act01011:not(.lang-ready),
body.act01012:not(.lang-ready),
body.act01013:not(.lang-ready),
body.act01014:not(.lang-ready),
body.act01015:not(.lang-ready),
body.act01016:not(.lang-ready) {
  visibility: hidden;
}
/* JavaScript無効時は lang-ready が付与されないため、隠さない */
@media (scripting: none) {
body.act01010:not(.lang-ready),
body.act01011:not(.lang-ready),
body.act01012:not(.lang-ready),
body.act01013:not(.lang-ready),
body.act01014:not(.lang-ready),
body.act01015:not(.lang-ready),
body.act01016:not(.lang-ready) {
    visibility: visible;
  }
}
