/*****{ title }*****/
.main h1 {
  position: relative;
  max-width: 100%;
  height: auto;
  margin: 20px auto 30px auto;
  padding: 16px 27px 16px 55px;
  background-size:100% auto;
  background: linear-gradient(to bottom, #bad9f5, #ebf3fc);
  border-radius: 4px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0px;
  color: #000;
  text-align: center;
}
.main h1:before {
  position: absolute;
  top: 20px;
  left: 2px;
  content:"";
  display: inline-block;
  width: 74px;
  height: 34px;
  background: url(/tem/img/hand.webp) no-repeat;
  background-size: contain;
}
/*****{ small_title }*****/
.small_title {
  position: relative;
  max-width: 100%;
  height: auto;
  background-size:100% auto;
  background: linear-gradient(to top right, #bad9f5, #FFF); 
  padding: 14px 0 10px 20px;
  margin: 40px 0 30px 0;
  border-left: 6px solid #2e37f3;
  border-bottom: 2px solid #2e37f3;
  font-size: 20px;
  font-weight: 600;
  color:#000
}
.kage1 { box-shadow: 8px 14px 8px #666666; }
.main img { display: block; max-width: 100%;height: auto; margin: 0 auto 20px auto; border: solid 4px #78b3e7; border-radius: 4px; }
.n { color: #000; font-size: 20px; font-weight: 600; margin-right: 0px; }
.indent { padding-left: 1.6em; text-indent: -1.6em; }
.space { margin-bottom: 10px; }
.wavy { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: #000; }

.explain { font-size: 17px; margin-bottom: 30px;}
.body-2 { font-size: 18px; background-color: #f0f2f5; padding: 10px; }
:root {
    --primary-color: #007bff;
    --print-btn-color: #28a745;
    --bg-color: #f8f9fa;
}

/* 入力エリア（画面表示のみ） */
.no-print {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.input-group {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}
label { font-weight: bold; margin-bottom: 5px; font-size: 1.1rem; }
input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
button {
    width: 100%;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
#generateBtn { max-width: 60%; display: block; margin: 0 auto; background: var(--primary-color); }
#generateBtn:hover { background: #005a9e; }

/* 印刷ボタン：初期状態は非表示 */
#printBtn { 
    background: var(--print-btn-color); 
    display: none; 
    margin-top: 20px;
}

/* 結果表示エリア */
#listTitleDisplay {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    display: none;
}
.table-container {
    max-width:600px;
    margin-top: 15px;
    margin: 0 auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px;
    margin: 0 auto;
    background: white;
}
th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
}
th { background-color: #eee !important; -webkit-print-color-adjust: exact; }
.sat { color: #0055ff !important; font-weight: bold; -webkit-print-color-adjust: exact; }
.sun { color: #ff0000 !important; font-weight: bold; -webkit-print-color-adjust: exact; }

/* 印刷専用設定 */
@media print {
        /* ▼画面上の入力フォームや広告、サイドバーなど不要なものをすべて消す▼ */
     header, footer, .sideWrap, .main h1, .head_menu, .main-top-pc_ad, .main-bottom-pc_ad, .main-bottom-sp_ad, .pagetop, .copyright, img, p, .small_title, .kage1, .adsbygoogle, .google-auto-placed, ins.adsbygoogle, .no-print, #printBtn {
        display: none !important;
    }
    body, .body-2 {
    background-color: white !important; /* 背景を強制的に白にする */
    background-image: none !important; /* 背景画像がある場合も消す */
    color: black !important;             /* 文字を黒にして読みやすくする */
   }
    body { padding: 0; }
    #listTitleDisplay { display: block !important; }
    table { width: 100%; max-width: none; }
    /* 印刷ページのレイアウト設定 */
    @page { margin: 0 0 0 20px; }
}

/* PC用655px以上に適用 */
@media (min-width: 655px) {
    .input-group { flex-direction: row; align-items: center; }
    label { width: 140px; margin-bottom: 0; }
    input { flex: 1; }
    #printBtn { width: auto; margin: 20px auto 0; padding: 10px 74px; display: none; } /* JSで表示制御 */
    #printBtn:hover { background: #1e7e34; }
}

/* PC用655px以下に適用 */
@media (max-width: 655px) {
#generateBtn { max-width: 100%; display: block; margin: 0 auto; background: var(--primary-color); }
#generateBtn:hover { background: #005a9e; }
}