.paper-sheet,.paper-overlay-text,.paper-overlay-tick{font-family:"Hiragino Sans","Yu Gothic",Meiryo,sans-serif!important}
@media print{vercel-live-feedback,vercel-toolbar,#vercel-toolbar,.vercel-toolbar,[data-vercel-toolbar],[data-vercel-feedback]{display:none!important}}

/* v0.5.19: align heading weights with completed Ajiwai Support app */
.section-title,
.app-info-title,
.app-info-details > summary,
.about-head,
.condition-card .condition-head,
.domain-head,
.tomita-selection-title,
.tomita-phase-head,
.tomita-flow-question,
.tomita-summary-label,
.tomita-result-symbol-label { font-weight: 700 !important; }

.subheading,
.label,
.step-label,
.guide-step strong,
.history-title,
.review-reference h3,
.review-table th { font-weight: 500 !important; }

/* v0.5.27 paper output alignment */
.paper-template-mask{position:absolute;z-index:1;pointer-events:none}
.paper-overlay-entry-top{align-items:flex-start!important;padding-top:1.5pt!important}
.paper-overlay-entry-middle{align-items:center!important;padding-top:0!important}
.paper-overlay-trial{font-size:7.5pt!important;line-height:1.18!important}


/* v0.5.29 iPad Safari one-page paper print */
@media print{
  .paper-sheet-frame{width:595.32pt!important;height:791.405pt!important;overflow:hidden!important;background:#fff!important;}
  .paper-sheet{transform:scale(.94)!important;transform-origin:top center!important;margin:0 auto!important;}
}


/* v0.6.8: wrap long text inside paper organization rows without changing A4 geometry */
.paper-overlay-org-wrap{
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.paper-overlay-org-density-1{font-size:7.0pt!important;line-height:1.08!important;}
.paper-overlay-org-density-2{font-size:6.6pt!important;line-height:1.05!important;}
.paper-overlay-org-density-3{font-size:6.2pt!important;line-height:1.03!important;}
.paper-overlay-org-background{font-size:6.4pt!important;line-height:1.03!important;padding-top:.7pt!important;}

/* STEP3 concise v3 */
.organization-reference-details{margin:0 0 18px;border:1px solid #DDD2CA;background:#FCFAF8;}
.organization-reference-details>summary{padding:11px 13px;cursor:pointer;color:#6D3B1C;font-weight:850;background:#FFF8F2;}
.organization-reference-body{padding:12px;border-top:1px solid #EAD9CC;}
.organization-reference-body .review-reference:last-child{margin-bottom:0;}
.organization-decision-block{margin:0 0 18px;padding:14px;border:1px solid #D8CEC6;background:#FFF;}
.organization-decision-title{color:#6D3B1C;font-size:17px;font-weight:900;}
.organization-decision-help{margin:3px 0 10px;}
.organization-choice-count{margin:0 0 7px;color:#6D655F;font-size:13px;font-weight:800;}
.organization-choice-grid{display:grid;grid-template-columns:1fr;gap:8px;}
.organization-choice{min-height:44px;}
.organization-choice-empty{padding:11px 12px;color:var(--muted);background:#FAF8F6;border:1px dashed #D8CEC6;}
.organization-focus-heading{margin-top:24px;}
@media (max-width:760px){.organization-decision-block{padding:12px;}}

/* STEP3 planning hint */
.organization-focus-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  margin-bottom:10px;
}
.organization-focus-row .organization-focus-heading{margin:0;}
.organization-planning-hint-button{
  flex:none;
  min-height:36px;
  padding:6px 11px;
  font-size:13px;
}
@media (max-width:760px){
  .organization-focus-row{
    align-items:stretch;
    flex-direction:column;
  }
  .organization-planning-hint-button{width:100%;}
}

/* staff role selects + planning hint lamp */
.organization-planning-hint-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.organization-planning-hint-button svg{
  width:18px;
  height:18px;
  flex:none;
}

/* exact outlined bulb for planning-hint button */
.organization-planning-hint-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.organization-planning-hint-svg{
  width:24px;
  height:24px;
  flex:none;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* iPhone title final 20260915 */
@media (max-width: 480px) {
  .header-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .app-title {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  .app-title .title-box {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    padding: 7px 6px !important;
    font-size: clamp(15px, 4.4vw, 18px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
}

/* Tomita symbol Safari compatibility 20260915 final */
.tomita-symbol-sprite {
  background-image: url('/assets/symbols.webp?v=20260915-symbol-final') !important;
}

/* PENDING FIXES 20260917 START */
.single-case-notice{margin-top:14px;padding:13px 14px;border:1px solid #e2b48d;background:#fff4ea;font-size:inherit!important;line-height:inherit!important}
.single-case-notice p{margin:0 0 11px;font-size:inherit!important;line-height:1.7!important}
.single-case-delete-button{min-height:38px;padding:7px 11px;border:1px solid #9a3d3d;background:#fff;color:#7a2020;font-family:inherit;font-size:inherit!important;line-height:1.4}
.textarea-character-guide{margin-top:4px;color:#6b625c;font-size:12px;line-height:1.4;text-align:right}
.textarea-character-guide.is-over{color:#8a4b00}.textarea-character-guide span{display:block;margin-top:2px}
html.planning-hint-modal-open,html.planning-hint-modal-open body{overflow:hidden}
.planning-hint-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.32)}
.planning-hint-modal-panel{width:min(720px,calc(100% - 32px));max-height:90dvh;margin:5dvh auto;display:flex;flex-direction:column;background:#fff4ea;box-shadow:0 10px 36px rgba(0,0,0,.2)}
.planning-hint-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #dfc7b1;background:#fff4ea}
.planning-hint-modal-head h2{margin:0;font-size:20px}.planning-hint-close{min-height:38px;padding:6px 12px;border:1px solid #77675a;background:#fff;color:inherit;font:inherit}
.planning-hint-modal-body{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px}.planning-hint-lead,.planning-hint-note{margin:0 0 13px;padding:10px 12px;background:rgba(255,255,255,.78);line-height:1.6}.planning-hint-note{margin-top:15px}
.planning-hint-group{margin:0 0 13px;border:1px solid #ead6c5;background:#fff}.planning-hint-group h3{margin:0;padding:8px 11px;background:#FABF8F;color:#6d3b1c;font-size:16px}.planning-hint-list{padding:0 11px}.planning-hint-row{padding:10px 3px;border-bottom:1px solid #eee4dc}.planning-hint-row:last-child{border-bottom:0}.planning-hint-row.is-open{background:#fff8f2}
.planning-hint-select{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:1.6;text-align:left}.planning-hint-inline-actions{display:none;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.planning-hint-row.is-open .planning-hint-inline-actions{display:grid}
.planning-hint-add{min-height:38px;padding:6px 8px;border:1px solid #77675a;background:#fff;color:inherit;font-family:inherit;font-size:13px;line-height:1.3}.planning-hint-add.is-added{border-color:#7f9e56;background:#ddebc9;color:#263713;font-weight:600}.planning-hint-status{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.planning-hint-status span{padding:3px 6px;border:1px solid #99b66d;background:#ddebc9;color:#34451e;font-size:12px}
.footer-kiririn-line{display:inline}
@media(max-width:760px){.planning-hint-modal-panel{width:100%;height:100dvh;max-height:none;margin:0}.planning-hint-inline-actions{grid-template-columns:1fr}.footer-kiririn-line{display:block}}
/* PENDING FIXES 20260917 END */

/* FOLLOWUP V3 20260917 START */

.saved-data-delete-area {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e7ddd5;
}

.saved-data-delete-note {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.saved-data-delete-button {
  width: auto;
  border-color: #a85b54 !important;
  color: #8c342d !important;
  background: #fff !important;
}

/* フッター：2026削除後はiPhoneも正式名称を1行表示 */
.footer {
  white-space: nowrap;
}

.footer-kiririn-line {
  display: inline !important;
}

@media (max-width: 760px) {
  .footer {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .footer-kiririn-line {
    display: inline !important;
  }
}

/* FOLLOWUP V3 20260917 END */


/* entry samples preview v16 */
.entry-sample-details{
  margin-top:14px;
  border:1px solid #e2c6b0;
  background:#fffaf6;
}
.entry-sample-details>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
  color:#713b18;
  background:#fff4ea;
}
.entry-sample-details>summary::-webkit-details-marker{display:none}
.entry-sample-details>summary::after{content:'＋';font-size:20px;font-weight:700;line-height:1}
.entry-sample-details[open]>summary::after{content:'−'}
.entry-sample-summary-title{font-weight:700;font-size:16px}
.entry-sample-summary-note{margin-left:auto;color:#6d655f;font-size:13px}
.entry-sample-body{padding:13px}
.entry-sample-intro{margin:0 0 12px;padding:10px 11px;background:#fff;border-left:4px solid #c56627;font-size:13px;line-height:1.65}
.entry-sample-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.entry-sample-card{display:flex;flex-direction:column;min-width:0;padding:12px;background:#fff;border:1px solid #ded4cc}
.entry-sample-card-head{margin-bottom:8px}
.entry-sample-card-head strong{display:block;color:#673616;font-size:15px}
.entry-sample-card-head span{display:inline-block;margin-top:4px;padding:2px 7px;background:#fbd4b4;color:#673616;font-size:12px;font-weight:600}
.entry-sample-card p{margin:0 0 9px;font-size:13px;line-height:1.65}
.entry-sample-point{margin:0 0 12px;padding:8px 9px;background:#faf8f6;font-size:12px;line-height:1.6}
.entry-sample-pdf{display:flex;align-items:center;justify-content:center;margin-top:auto;text-decoration:none;text-align:center;font-size:13px}
@media(max-width:760px){
  .entry-sample-details>summary{align-items:flex-start;flex-wrap:wrap}
  .entry-sample-summary-note{width:100%;margin-left:0}
  .entry-sample-grid{grid-template-columns:1fr}
}

/* entry samples high-resolution viewer v19 */
.entry-sample-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  margin-top:auto;
}
.entry-sample-actions .button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:42px;
  padding:8px 8px;
  text-decoration:none;
  text-align:center;
  font-size:12.5px;
}
.entry-sample-image{
  color:#fff !important;
}
@media(max-width:420px){
  .entry-sample-actions{
    grid-template-columns:1fr;
  }
}

/* entry samples image-only v20 */
.entry-sample-actions{
  display:block;
}
.entry-sample-actions .entry-sample-image{
  width:100%;
  box-sizing:border-box;
}

/* TOP PAGE TITLE BANNER PREVIEW v22 */
.back-button.hidden + .banner-content{
  padding-top:3px;
  padding-bottom:3px;
}

.back-button.hidden + .banner-content .app-title{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  width:100%;
  margin:0;
  font-size:24px;
  line-height:1.15;
}

.back-button.hidden + .banner-content .app-title .title-box{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:100%;
  padding:7px 24px;
  color:#743A16;
  background:#FFFFFF;
  border:1px solid rgba(132,73,31,.14);
  border-radius:12px;
  box-shadow:none;
  font-size:36px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:.01em;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
}

@media (max-width:760px){
  .back-button.hidden + .banner-content{
    padding-top:3px;
    padding-bottom:3px;
  }

  .back-button.hidden + .banner-content .app-title{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    margin:0 !important;
    line-height:1.15 !important;
  }

  .back-button.hidden + .banner-content .app-title .title-box{
    display:inline-flex !important;
    width:auto !important;
    max-width:100% !important;
    padding:7px 12px !important;
    border-radius:11px !important;
    box-shadow:none !important;
    font-size:clamp(18px,5.6vw,26px) !important;
    line-height:1.15 !important;
    letter-spacing:-.02em !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
  }
}

@media (max-width:480px){
  .back-button.hidden + .banner-content .app-title .title-box{
    padding-left:10px !important;
    padding-right:10px !important;
    font-size:clamp(18px,5.6vw,24px) !important;
  }
}

@media (max-width:340px){
  .back-button.hidden + .banner-content .app-title .title-box{
    padding-left:7px !important;
    padding-right:7px !important;
    font-size:17px !important;
    letter-spacing:-.03em !important;
  }
}
/* TOP PAGE TITLE BANNER PREVIEW v22 END */

/* USABILITY FEEDBACK PREVIEW v23 */
.step2-five-view-notice{
  line-height:1.8;
}
.step2-five-view-notice strong{
  display:inline-block;
  margin-bottom:2px;
}

.supporter-fixed-guide{
  margin:0 0 12px;
  padding:11px 12px;
  color:#5f3a22;
  background:#fff4ea;
  border-left:4px solid var(--accent);
  line-height:1.65;
}
.supporter-fixed-guide span{
  color:var(--muted);
  font-size:13px;
}

.supporter-fixed-wrap{
  margin-top:10px;
}
.supporter-fixed-group{
  margin:0 0 12px;
  border:1px solid #ded4cc;
  background:#fff;
}
.supporter-fixed-group-title{
  padding:8px 11px;
  color:#673616;
  background:#fbd4b4;
  font-weight:700;
}
.supporter-fixed-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px;
}
.supporter-fixed-choice{
  min-height:44px;
  font-size:14px;
  line-height:1.5;
}
.supporter-other-wrap{
  margin-top:15px;
  padding-top:13px;
  border-top:1px solid #e4dad2;
}
.supporter-other-label{
  margin-bottom:4px;
}

@media(max-width:760px){
  .supporter-fixed-choice-grid{
    grid-template-columns:1fr;
  }
  .step2-five-view-notice{
    line-height:1.75;
  }
}
/* USABILITY FEEDBACK PREVIEW v23 END */

/* USABILITY GUIDANCE PREVIEW v24 */
.step2-viewpoint-guide{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:-4px 0 15px;
  padding:11px 12px;
  border:1px solid #ddd3cb;
  background:#fffdfa;
}
.step2-viewpoint-guide-text{
  min-width:0;
  line-height:1.55;
}
.step2-viewpoint-guide-text strong{
  color:#5f3a22;
}
.step2-viewpoint-guide-text span{
  color:var(--muted);
  font-size:13px;
}
.step2-viewpoint-button-demo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex:none;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #BFB6AF;
  border-radius:7px;
  background:#fff;
  color:#3D3834;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}
.step2-viewpoint-button-demo svg{
  width:18px;
  height:18px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.supporter-five-view-list{
  margin:7px 0 5px;
  padding:7px 9px;
  background:#fff;
  border:1px solid #ead6c5;
  color:#5f3a22;
  font-weight:700;
  line-height:1.65;
}
@media(max-width:760px){
  .step2-viewpoint-guide{
    align-items:flex-start;
    flex-direction:column;
  }
  .step2-viewpoint-button-demo{
    align-self:flex-start;
  }
  .supporter-five-view-list{
    font-size:13px;
  }
}
/* USABILITY GUIDANCE PREVIEW v24 END */
