@charset "UTF-8";
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 62.5%;
  overflow-x: hidden;
  /* 連続タップ（ダブルタップ）での拡大を無効化 */
  touch-action: manipulation;
}

body {
  font-family: "NotoSansJapanese", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "Helvetica Neue", Arial, "sans-serif";
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.8;
  -webkit-font-feature-settings: "palt" 1;
          font-feature-settings: "palt" 1;
  color: #102E41;
  overflow-y: auto;
  overflow-x: hidden;
  background: url(./assets/img/bg.png) center center #F6F6F6 repeat;
  background-size: 256px 256px;
}

div.body {
  padding: 16px;
}

@font-face {
  font-family: "NotoSansJapanese";
  font-style: normal;
  font-weight: 700;
  src: local("Noto Sans JP Bold"), url(./assets/font/NotoSansJapanese-Bold.woff) format("woff");
}
a, button, input {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  will-change: transform;
}

button:active, input[type=button]:active {
  -webkit-filter: brightness(60%);
          filter: brightness(60%);
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.tbl {
  padding: 24px 16px;
  background-color: #FFF;
  border-radius: 16px;
}
.tbl > table {
  width: 100%;
}

/* img */
img.img {
  display: block;
}

/* table > button */
.tbl button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

header {
  background-color: #FFF;
}
header .inner {
  padding: 0 16px;
}
header .inner table {
  width: 100%;
}
header .inner table th, header .inner table td {
  width: 50%;
}
header .inner table th {
  text-align: left;
}
header .inner table td {
  text-align: right;
}
header .h-logo {
  margin: 20px 0;
}
header .h-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  overflow: hidden;
  text-indent: 200%;
  white-space: nowrap;
  margin: 16px 0 16px auto;
  display: block;
  width: 200px;
  height: 48px;
  background: url(./assets/img/btn_stop.png) 0 0 no-repeat;
  background-size: 200px 48px;
}

.question {
  margin: 0;
  padding: 40px 16px 40px;
  letter-spacing: 1.6px;
  line-height: 1.3;
  text-align: center;
}

.tbl table td:first-child, .tbl table th:first-child {
  border-left: none !important;
}
.tbl table tr:first-child td, .tbl table tr:first-child th {
  border-top: none !important;
}

.foot {
  padding: 8px 0 0 0;
}
.foot .tbl {
  padding: 0;
}
.foot table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
}
.foot td {
  padding: 0;
  text-align: center;
}
/* スマホ幅（narrow）では下部の制御ボタンを中央寄せで折り返し、2段（取り消す・決定して次へ／わからないは中央）にする */
body.narrow .foot table,
body.narrow .foot tbody {
  display: block;
}
body.narrow .foot tr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 520px;
  margin: 0 auto;
}
.foot .unknown {
  display: block;
  margin: 0 auto;
  width: 240px;
  height: 80px;
  padding-bottom: 5px;
  font-size: 3rem;
  font-weight: 700;
  color: #CE5400;
  background: url(./assets/img/btn_unknown.png) 0 0 no-repeat;
  background-size: 240px 80px;
}

.tbl button.b {
  display: block;
  padding-bottom: 10px;
  font-weight: 700;
  color: #FFF;
  text-align: center;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
}

.disp {
  margin: 0 auto;
  border: 8px solid #CE5400;
  border-radius: 40px;
  text-align: center;
}

.fit-picture {
  margin: 0 auto;
}

body.p-022 .fit-picture {
  width: 100px;
  height: 100px;
}

.fit-picture_s {
  margin: 0 auto;
}

body.p-000 .p-ttl {
  padding-top: 140px;
  text-align: center;
}
body.p-000 .p-ttl_logo .img {
  margin: 0 auto;
}
body.p-000 .p-ttl_main {
  padding-bottom: 80px;
  font-size: 4.8rem;
}
body.p-000 table {
  width: 100%;
}
body.p-000 table td {
  padding-bottom: 20px;
}
body.p-000 table td label {
  font-size: 3.4rem;
}
body.p-000 table td #name {
  padding: 8px;
  width: 300px;
}
body.p-000 table .td-left {
  text-align: right;
}
body.p-000 table .td-right {
  text-align: left;
  padding-left: 10px;
}
body.p-000 .lblSmall {
  font-size: 2.4rem;
}
body.p-000 .sel {
  font-size: 2.4rem;
  height: 56px;
  padding: 0px 2px;
  text-align: center;
}
body.p-000 .selDate {
  width: 80px;
}
body.p-000 .rdo {
  transform: scale(2.0);
  margin-left: 20px;
}

body.p-000 .b {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: block;
  padding-bottom: 8px;
  font-weight: 700;
  color: #FFF;
  text-align: center;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
  margin: 0 auto;
  width: 400px;
  height: 128px;
  font-size: 5.6rem;
  background-image: url(./assets/img/btn00.png);
}
body.p-000 .p-date {
  padding-top: 80px;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 1px;
}

body.p-001 .tbl table th, body.p-001 .tbl table td {
  border: none;
  border-left: 19px solid #FFF;
  border-top: 19px solid #FFF;
}
body.p-001 .tbl table button.b {
  width: 166px;
  height: 128px;
  background-image: url(./assets/img/btn01.png);
}

body.p-002 .tbl table th, body.p-002 .tbl table td {
  border: none;
  border-left: 20px solid #FFF;
  border-top: 20px solid #FFF;
}
body.p-002 .tbl table button.b {
  width: 258px;
  height: 128px;
  background-image: url(./assets/img/btn02.png);
}

body.p-003 .tbl table th, body.p-003 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 8px solid #FFF;
}
body.p-003 .tbl table button.b {
  width: 258px;
  height: 74px;
  background-image: url(./assets/img/btn03.png);
}

body.p-004 .tbl table th, body.p-004 .tbl table td {
  border: none;
  border-left: 12px solid #FFF;
  border-top: 10px solid #FFF;
}
body.p-004 .tbl table button.b {
  width: 64px;
  height: 84px;
  font-size: 2.4rem;
  background-image: url(./assets/img/btn04.png);
}

body.p-005 .tbl table th, body.p-005 .tbl table td {
  border: none;
  border-left: 12px solid #FFF;
  border-top: 10px solid #FFF;
}
body.p-005 .tbl table button.b {
  width: 122px;
  height: 128px;
  font-size: 3.2rem;
  background-image: url(./assets/img/btn06.png);
}

body.p-006 .tbl table .disp1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 194px;
  font-size: 9.6rem;
}

body.p-006 .tbl table .disp2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 194px;
  font-size: 6.4rem;
}

/* 009/019: 選択肢と下部ボタンの列幅を3等分に固定し、各ボタンを列の中央に置いて中心をそろえる */
body.p-009 .tbl > table,
body.p-019 .tbl > table {
  table-layout: fixed;
}
body.p-009 .tbl > table button.b,
body.p-019 .tbl > table button.b {
  margin: 0 auto;
}
body.p-009 .tbl table th, body.p-009 .tbl table td {
  border: none;
  border-left: 12px solid #FFF;
  border-top: 12px solid #FFF;
}
body.p-009 .tbl table button.b {
  width: 166px;
  height: 128px;
  background-image: url(./assets/img/btn01.png);
}

body.p-010 .disp_num {
  margin: 24px auto 32px;
  width: 100%;
  height: 160px;
  background: url(./assets/img/disp_num2.png) center center no-repeat;
  background-size: 259px 160px;
  font-size: 11.2rem;
  letter-spacing: 70px;
}
body.p-010 .disp_num-input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none transparent;
  background-clip: padding-box;
  color: inherit;
  font-size: inherit;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  margin: 0 0 0 206px;
  width: 250px;
  height: 150px;
  font-family: inherit;
  letter-spacing: inherit;
}
body.p-010 .disp_num-input::-ms-clear {
  display: none;
}
body.p-010 .disp_num-input::-ms-reveal {
  display: none;
}
body.p-010 .disp_num-input::-ms-expand {
  display: none;
}
body.p-010 .disp_num-input::-webkit-input-placeholder {
  letter-spacing: 84px;
}
body.p-010 .disp_num-input:-moz-placeholder {
  letter-spacing: 84px;
}
body.p-010 .disp_num-input::-moz-placeholder {
  letter-spacing: 84px;
}
body.p-010 .disp_num-input:-ms-input-placeholder {
  letter-spacing: 84px;
}

body.p-010 .tbl table th, body.p-010 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 6px solid #FFF;
}
body.p-010 .tbl table button.b {
  width: 92px;
  height: 92px;
  background-image: url(./assets/img/btn05.png);
}

body.p-015 .tbl table .disp2 {
  padding-top: 20px;
  width: 145px;
  height: 220px;
  font-size: 11.2rem;
}

body.p-016 .disp_num {
  margin: 32px auto;
  padding-top: 2px;
  width: 100%;
  height: 158px;
  background: url(./assets/img/disp_num3.png) center center no-repeat;
  background-size: 396px 160px;
  font-size: 11.2rem;
  letter-spacing: 72px;
}
body.p-016 .disp_num-input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none transparent;
  background-clip: padding-box;
  color: inherit;
  font-size: inherit;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  margin: 0 0 0 136px;
  width: 400px;
  height: 150px;
  font-family: inherit;
  letter-spacing: inherit;
}
body.p-016 .disp_num-input::-ms-clear {
  display: none;
}
body.p-016 .disp_num-input::-ms-reveal {
  display: none;
}
body.p-016 .disp_num-input::-ms-expand {
  display: none;
}
body.p-016 .disp_num-input::-webkit-input-placeholder {
  letter-spacing: 82px;
}
body.p-016 .disp_num-input:-moz-placeholder {
  letter-spacing: 82px;
}
body.p-016 .disp_num-input::-moz-placeholder {
  letter-spacing: 82px;
}
body.p-016 .disp_num-input:-ms-input-placeholder {
  letter-spacing: 82px;
}

body.p-016 .tbl table th, body.p-016 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 10px solid #FFF;
}
body.p-016 .tbl table button.b {
  width: 92px;
  height: 92px;
  background-image: url(./assets/img/btn05.png);
}

body.p-017 .tbl table .disp3 {
  padding-top: 4px;
  width: 105px;
  height: 196px;
  font-size: 11.2rem;
}

body.p-018 .disp_num {
  margin: 32px auto;
  width: 100%;
  height: 160px;
  background: url(./assets/img/disp_num4.png) center center no-repeat;
  background-size: 536px 160px;
  font-size: 11.2rem;
  letter-spacing: 70px;
}
body.p-018 .disp_num-input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none transparent;
  background-clip: padding-box;
  color: inherit;
  font-size: inherit;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  margin: 0 0 0 68px;
  width: 600px;
  height: 160px;
  font-family: inherit;
  letter-spacing: inherit;
}
body.p-018 .disp_num-input::-ms-clear {
  display: none;
}
body.p-018 .disp_num-input::-ms-reveal {
  display: none;
}
body.p-018 .disp_num-input::-ms-expand {
  display: none;
}
body.p-018 .disp_num-input::-webkit-input-placeholder {
  letter-spacing: 80px;
}
body.p-018 .disp_num-input:-moz-placeholder {
  letter-spacing: 80px;
}
body.p-018 .disp_num-input::-moz-placeholder {
  letter-spacing: 80px;
}
body.p-018 .disp_num-input:-ms-input-placeholder {
  letter-spacing: 80px;
}

body.p-018 .tbl table th, body.p-018 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 10px solid #FFF;
}
body.p-018 .tbl table button.b {
  width: 92px;
  height: 92px;
  background-image: url(./assets/img/btn05.png);
}

body.p-019 .tbl table th, body.p-019 .tbl table td {
  border: none;
  border-left: 12px solid #FFF;
  border-top: 12px solid #FFF;
}
body.p-019 .tbl table button.b {
  width: 166px;
  height: 128px;
  background-image: url(./assets/img/btn01.png);
}

body.p-020 .tbl table th, body.p-020 .tbl table td {
  border: none;
  border-left: 12px solid #FFF;
  border-top: 8px solid #FFF;
}
body.p-020 .tbl table button.b {
  width: 166px;
  height: 108px;
  font-size: 3.8rem;
  background-image: url(./assets/img/btn07.png);
}

body.p-022 .tbl {
  padding-top: 32px;
}
body.p-022 .tbl .foot {
  padding-bottom: 16px;
}
body.p-022 .tbl button.b {
  margin: 0 auto;
  width: 300px;
  height: 88px;
  font-size: 3.2rem;
  background-image: url(./assets/img/btn03.png);
}

body.p-022 .tbl table th, body.p-022 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 20px solid #FFF;
}

body.p-022 .tbl-question {
  width: 100%;
}

body.p-022 .question_1 {
  padding: 10px 0px 0px 20px;
  margin: 0px;
  letter-spacing: 1.6px;
  line-height: 1.3;
}

body.p-022 .question_2 {
  padding: 0px 0px 0px 20px;
  margin: 0px;
  font-size: 2.8rem;
}

body.p-022 .clock {
  margin: 10px 20px 0px 20px;
  width: 200px;
  height: 200px;
  background-size: cover;
}

body.p-023 .tbl table th, body.p-023 .tbl table td {
  border: none;
  border-left: 16px solid #FFF;
  border-top: 12px solid #FFF;
}
body.p-023 .tbl table button.b {
  width: 92px;
  height: 92px;
  font-size: 2.3rem;
  white-space: nowrap;
  letter-spacing: -0.05em;
  background-image: url(./assets/img/btn05.png);
}

body.p-024 .tbl {
  padding-top: 48px;
}
body.p-024 .tbl .frame {
  padding: 40px 0 0;
}
body.p-024 .tbl button.b {
  margin: 0 auto;
}
body.p-024 .foot table {
  width: 100%;
}

body.p-025 .tbl {
  padding-top: 48px;
}
body.p-025 .tbl .frame {
  padding: 40px 0 0;
}
body.p-025 .tbl button.b {
  margin: 0 auto;
}
body.p-025 .foot table {
  width: 100%;
}

body.p-026 .question_img {
  padding-top: 24px;
}
body.p-026 .question {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 2.6rem;
}
body.p-026 .body > .tbl > table {
  margin: 0 auto;
  width: 416px;
}
body.p-026 .tbl table th, body.p-026 .tbl table td {
  border: none;
  border-left: 0px solid #FFF;
  border-top: 0px solid #FFF;
}
body.p-026 .foot {
  padding: 0px;
}

body.p-result {
  margin: 240px auto 0;
  text-align: center;
}
body.p-result p {
  margin: 0 0 8px;
  font-size: 4.8rem;
  letter-spacing: 2px;
}
body.p-result #result {
  font-size: 8rem;
  line-height: 1;
}
body.p-result .tbl_result {
  padding: 112px 24px 0;
}
body.p-result .tbl_result table {
  width: 100%;
}
body.p-result .b {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: block;
  padding-bottom: 8px;
  font-weight: 700;
  color: #FFF;
  text-align: center;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
  margin: 0 auto;
  width: 258px;
  height: 128px;
  font-size: 3.8rem;
  background-image: url(./assets/img/btn02.png);
}

/* ============================================================
   数字入力ページ（010 / 016 / 018）— 数字表示部 レスポンシブ版
   旧：背景画像＋letter-spacingで文字を重ねる方式
   新：1マスずつの独立した箱（青い角丸枠）に1文字ずつ中央表示
   ※ データ保持用の input(name="display") は残し、採点ロジックは不変
   ============================================================ */

/* データ保持用 input は画面から隠す（値は採点で参照する） */
body.p-010 .disp_num-input,
body.p-016 .disp_num-input,
body.p-018 .disp_num-input {
  display: none;
}

/* 旧 disp_num の背景画像・固定高さ・文字間隔を無効化 */
body.p-010 .disp_num,
body.p-016 .disp_num,
body.p-018 .disp_num {
  background: none;
  width: 100%;
  height: auto;
  margin: 24px auto 32px;
  padding: 0;
  letter-spacing: normal;
}

/* マスを横並び・中央寄せ・画面幅に応じて自動で伸縮 */
.num-cells {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(8px, 2.5vw, 18px);
  width: 100%;
}

/* 1マス（青い角丸枠）。aspect-ratioで縦横比を保ったまま伸縮 */
.num-cells .num-cell {
  flex: 0 1 130px;
  max-width: 130px;
  aspect-ratio: 13 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #fff;
  border: 5px solid #2385F8;
  border-radius: 14px;
  color: #102E41;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(5rem, 17vw, 11.2rem);
  overflow: hidden;
}

/* 未入力のマスは薄いグレーの「?」を表示 */
.num-cells .num-cell:empty::before {
  content: "?";
  color: #c2c2c2;
}
