body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 2em;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    font-size: 18px;
}
.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
h1, h2 {
    color: #1b58a1;
}
h1 {
    font-size: 28px;
    border-bottom: 2px solid #1b58a1;
    padding-bottom: 0.5em;
}
h2 {
    font-size: 24px;
    margin-top: 2em;
    border-left: 5px solid #1b58a1;
    padding-left: 0.5em;
}
.sub-title {
    font-size: 24px;
}
.form-section {
    margin-bottom: 2em;
}
.form-group {
    margin-bottom: 1.5em;
}
label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}
textarea, input[type="text"] {
    width: 99%;
    padding: 0.8em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
    word-break: break-all; /* ←強制的に改行 */
}
.checkbox-group div {
    margin-bottom: 0.5em;
}
.checkbox-group label {
    font-weight: normal;
}
.actions {
    text-align: center;
    margin-top: 2em;
}
button {
    background: #1b58a1;
    color: white;
    padding: 0.8em 2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}
.pdf-footer {
    text-align: center;
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #777;
}
.pdf-footer a {
    color: #1b58a1;
    text-decoration: none;
}

/* PDF化（印刷時）に非表示にするスタイル */
@media print {
    .no-print {
        display: none !important;
    }
    body, .container {
        margin: 0;
        box-shadow: none;
    }
}

/* 以下↓カスタマイズ */
.form-section label span {
    font-size: 0.9em;
    padding-left: 0.6em;
    font-weight: normal;
}
.supplement {
    font-size: 0.9em;
    font-weight: normal;
}
.checkbox-group > div label{
    padding-left: 0.3em;
}
.checkbox-group input[type="checkbox"] {
    vertical-align: middle; /* チェックボックスの縦位置調整 */
    margin-top: 0; /* 余白リセット */
}
/* label内のテキストのline-heightをチェックボックスに合わせて調整 */
.checkbox-group label {
    line-height: 1.2; /* 微調整してください */
    display: inline-flex;
    align-items: center;
}
/* もしinputとlabelの親要素がflexなら */
.checkbox-label-wrapper {
    display: flex;
    align-items: center; /* ここで中央揃え */
}
/* 「その他」用 */
.checkbox-label-wrapper input[type="checkbox"] {
    vertical-align: top; /* チェックボックスの縦位置調整 */
    margin-top: 0; /* 余白リセット */
}
.checkbox-label-wrapper label {
    padding-top: 4px;
}
/* 改ページしたい見出しに適用するクラス */
.page-break-before {
    page-break-before: always;
    break-before: page; /* モダンブラウザ向け */
}
/* textareaを含むフォームを途中で切らない */
.avoid-break {
    page-break-inside: avoid;
    break-inside: avoid;
}
/* 改ページ防止 */
.form-group {
    page-break-inside: avoid;
    break-inside: avoid;
}
/* 小見出しのレンダリング精度向上 */
label {
    display: inline-block;
}
