/* =====================================================
 * 帳票・証明書関連スタイル
 * ===================================================== */
/* ------------------------
 * 領収証
 * ------------------------ */
 /* 領収証メイン枠 */
.receipt {
    border: 1px solid #ccc;
    padding: 30px 60px;
    max-width: 1000px!important;
    min-width: 800px!important;
    margin: 20px auto;
    background: #fff;
}
/* 領収証タイトル */
.receipt h2 {
    text-align: center;
    color: #333;
}
.receipt p {
    font-size: 14px;
    margin: 0;
}
.text_right{
    text-align: right;
}
/* 領収証宛名 */
.receipt_name{
    text-align:center;
    font-weight: bold;
    border-bottom: solid 1px #333;
    margin-top: 20px;
    margin-bottom: 20px;
}
/* 金額表示 */
.receipt_total{
    text-align:center;
    font-weight: bold;
    background-color: #d3d3d3;
    padding: 20px;
    margin-bottom: 20px;
}
.receipt_total p{
    font-size: 16px;
}
/* 明細テーブル */
.receipt_table{
    width:100%;
}
.receipt_table,
.receipt_table th,
.receipt_table td{
    border-style: solid;
    border-width: 1px;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 20px;
}
.receipt_table th,
.receipt_table td{
    text-align: left;
    width:33%;
}
.receipt_table th{
    background-color: #dcdcdc;
}
/* 押印部分 */
.receipt_sign {
    width: 70%;
    position: relative;
    margin-top: 100px;
    margin-left:auto;
    margin-right: 0;
    text-align: right;
}
.receipt_sign p {
    position: relative;
    font-size:14px;
    z-index: 1000;
    margin-right: 20px;
}
/* 印影画像 */
.inkan {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    max-width: 70px;
    height: auto;
    z-index: 1;
}

/* ------------------------
 * 請求書
 * ------------------------ */
/* 請求書ヘッダー */
.invoice_box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.invoice_box_left {
  flex: 1;
}
.invoice_box_right {
  flex: 1;
  text-align: right;
}
.invoice_name{
    text-align:right;
    font-weight: bold;
    border-bottom: solid 1px #333;
    margin-top: 20px;
    margin-bottom: 20px;
}
.invoice_total{
    text-align:center;
    font-weight: bold;
    background-color: #d3d3d3;
    padding: 20px;
}
.invoice_text{
text-align:center;
}
.invoice_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.invoice_table th,
.invoice_table td {
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}
.invoice_summary {
  width: 300px;
  margin-left: auto;
  border-collapse: collapse;
}
.invoice_summary td {
  border: 1px solid #333;
  padding: 8px 12px;
}
.invoice_summary .label {
  text-align: right;
  font-weight: bold;
  background: #f9f9f9;
}
.invoice_summary .value {
  text-align: right;
}
.invoice_summary .total {
  font-size: 1.2em;
  font-weight: bold;
  background: #eee;
}
.invoice_inkan {
    position: absolute;
    top:1%;
    right: 0;
    transform: translateY(-50%);
    max-width: 80px;
    height: auto;
    z-index: 1;
}


/* ------------------------
 * PDF専用の調整
 * ------------------------ */
@media print {
    div#page {
        height: auto;
        min-height: 90vh;
        overflow: hidden;
        page-break-inside: avoid;
    }
    body {
        margin: 0;
        padding: 0;
    }
}


/* ------------------------
 * 参加証明書
 * ------------------------ */
.certificate_name{
    text-align:left;
    font-weight: bold;
    border-bottom: solid 1px #333;
    margin-top: 20px;
    margin-bottom: 20px;
}
.certificate_sign {
    width: 70%;
    position: relative;
    margin-top: 100px;
    margin-left:auto;
    margin-right: 0;
    text-align: right;
}
.certificate_sign p {
    position: relative;
    font-size:18px;
    z-index: 1000;
    margin-right: 20px;
}
.certificate_inkan {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    max-width: 70px;
    height: auto;
    z-index: 1;
}



/* ------------------------
 * ネームカード：A4縦
 * ------------------------ */
/* 用紙全体 */
.receipt.is_namecard {
    box-sizing: border-box;
    width: 210mm;
    min-width: 210mm;
    max-width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    margin: 0;
    padding: 0;
    overflow: hidden;
    page-break-inside: avoid !important;
    break-inside: avoid;
}

/* 全体：上段1/3、下段2/3 */
.namecard_inner.is_col_2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}

/* ------------------------
 * 上段：左右2カラム
 * ------------------------ */
.namecard_top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* 左上：ネームカード */
.namecard_card {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0 20px 20px 0;
    border-bottom: 1.5px dotted #999;
    border-right: 1.5px dotted #999;
    box-sizing: border-box;
    overflow: hidden;
}

/* ネームカードの内容 */
.namecard_card_content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ヘッダー画像 */
.namecard_header {
    margin: 0;
}

.namecard_header img {
    display: block;
    width: 100%;
    height: auto;
}

/* 所属機関名 */
.namecard_affiliation {
    min-width: 0;
    margin: 0 !important;
    padding: 20px 10px 8px !important;
    font-size: 20px !important;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

/* 氏名 */
.namecard_name {
    min-width: 0;
    margin: 0 !important;
    padding: 5px 10px 8px !important;
    font-size: 24px !important;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

/* 懇親会申込済みの赤丸 */
.namecard_social_mark {
    position: absolute;
    bottom: -100px;
    left: 30px;
    display: block;
    width: 40px;
    height: 40px;
    background-color: #e60012;
    border-radius: 50%;
    z-index: 10;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ------------------------
 * 右上：共催セミナー確認書
 * ------------------------ */
.namecard_seminar_card {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0 0 20px 20px;
    border-bottom: 1.5px dotted #999;
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* 確認書タイトル */
.namecard_title {
    margin: 0;
    min-height: 18mm;
    padding: 5mm 2mm;
    box-sizing: border-box;
    background-color: #00B0F0;
    color: #fff !important;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

/* セミナー一覧 */
.namecard_seminar_list {
    margin-top: 4mm;
}

.namecard_seminar_item {
    margin: 0 0 3mm;
    font-size: 11px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* セミナー確認書の注意書き */
.namecard_seminar_note {
    margin-top: 4mm!important;
    font-size: 12px!important;
    line-height: 1.5;
}

/* ------------------------
 * 下段：ご案内
 * ------------------------ */
.namecard_bottom {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.namecard_cut_mark {
    position: absolute;
    top: 2mm;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    z-index: 1;
}

.namecard_text_area {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10mm 5mm 5mm;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.6;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* ご案内の見出し */
.namecard_guide_heading {
    margin: 0 0 4mm;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

/* 各案内ブロック */
.namecard_guide_section {
    margin: 0 0 4mm;
}

/* ◆見出し */
.namecard_guide_title {
    margin: 0 0 1.5mm !important;
    font-weight: bold;
    font-size: 12px;
}

/* 案内文の段落 */
.namecard_guide_section p {
    margin: 0 0 1.5mm;
}

/* ご留意事項の箇条書き */
.namecard_guide_list {
    margin: 0 0 0 1.5em;
    padding: 0;
    list-style-type: disc;
}

.namecard_guide_list li {
    margin: 0 0 1mm;
    padding: 0;
    font-size: 14px;
}

