/* ==========================================================================
   サイト簡易診断（/check/）
   ヘッダー・フッター・見出しはサイト共通。ここは本文（フォームと結果）と印刷用
   ========================================================================== */

.p-site-check__body {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: var(--space-2xl, 96px);
  color: var(--color-text, #444);
  line-height: 1.8;
}

.p-site-check__body h2 {
  margin: 40px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-primary-dark, #279b9c);
  letter-spacing: 0.04em;
}

.p-site-check__body h3 {
  margin: 32px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary, #76c7c0);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text, #444);
}

.p-site-check__body ul {
  margin: 0 0 8px;
  padding-left: 1.4em;
}

.p-site-check__lead {
  margin: 0 0 28px;
}

/* 入力欄 */
.p-site-check__box {
  border: 1px solid var(--color-border, rgba(118, 199, 192, 0.45));
  border-radius: 16px;
  padding: 24px 28px;
  background: var(--color-bg-section, #f4faf9);
}

.p-site-check__box h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.p-site-check__box form label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
}

.p-site-check__form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-site-check__form-row input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-primary, #76c7c0);
  border-radius: 999px;
  background: #fff;
}

.p-site-check__form-row input[type="text"]:focus {
  outline: 2px solid var(--color-primary-dark, #279b9c);
  outline-offset: 1px;
}

.p-site-check__box .p-site-check__agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
}

.p-site-check__agree input {
  margin-top: 0.45em;
  flex: none;
}

.p-site-check__button {
  display: inline-block;
  padding: 12px 28px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--color-primary-dark, #279b9c);
  border-radius: 999px;
  background: var(--color-primary-dark, #279b9c);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition-base, 0.3s ease);
}

.p-site-check__button:hover {
  filter: brightness(1.06);
  color: #fff;
}

.p-site-check__button--sub {
  background: #fff;
  color: var(--color-primary-dark, #279b9c);
}

.p-site-check__button--sub:hover {
  color: var(--color-primary-dark, #279b9c);
}

.p-site-check__error {
  margin: 12px 0 0;
  color: #b3261e;
  font-weight: 600;
}

/* 結果 */
.p-site-check__result {
  scroll-margin-top: 120px;
}

.p-site-check__meta {
  font-size: 0.92rem;
  color: var(--color-text-muted, #666);
  word-break: break-all;
}

.p-site-check__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-site-check__chip {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border, rgba(118, 199, 192, 0.45));
  background: var(--color-bg-section, #f4faf9);
}

.p-site-check__chip--warn {
  background: #fff9ee;
  border-color: #ecd9a8;
}

.p-site-check__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.p-site-check__table th,
.p-site-check__table td {
  border: 1px solid #d8e6e3;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.p-site-check__table th {
  background: var(--color-bg-section, #f4faf9);
  font-weight: 500;
  color: var(--color-primary-dark, #279b9c);
}

.p-site-check__table td:nth-child(1) {
  width: 24%;
  font-weight: 600;
}

.p-site-check__table td:nth-child(2) {
  width: 18%;
}

.p-site-check__status {
  font-weight: 600;
  white-space: nowrap;
}

.p-site-check__status--ok { color: #1f7a7b; }
.p-site-check__status--warn { color: #a86a00; }
.p-site-check__status--unknown { color: #666; }
.p-site-check__status--info { color: #555; }

.p-site-check__cta {
  margin-top: 32px;
  border: 1px solid #ecd9a8;
  border-radius: 16px;
  padding: 20px 24px;
  background: #fff9ee;
}

.p-site-check__cta p {
  margin: 0 0 8px;
}

.p-site-check__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p-site-check__disclaimer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #666);
}

@media (max-width: 767px) {
  .p-site-check__box {
    padding: 20px 18px;
  }

  .p-site-check__table,
  .p-site-check__table tbody,
  .p-site-check__table tr,
  .p-site-check__table td {
    display: block;
    width: 100%;
  }

  .p-site-check__table thead {
    display: none;
  }

  .p-site-check__table tr {
    border: 1px solid #d8e6e3;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
  }

  .p-site-check__table td {
    border: 0;
    padding: 2px 0;
  }

  .p-site-check__table td:nth-child(1),
  .p-site-check__table td:nth-child(2) {
    width: 100%;
  }
}

/* 印刷専用要素（画面では非表示） */
.p-site-check-watermark,
.p-site-check__print-brand,
.p-site-check__print-contact,
.p-site-check-print-foot {
  display: none;
}

/* ==========================================================================
   印刷：この状態で「PDFに保存」すると結果レポートになる
   ========================================================================== */
@page {
  margin: 16mm 12mm 18mm;
}

@media print {
  .no-print,
  .l-header,
  .l-header-catchcopy,
  .l-breadcrumb-bar,
  .l-footer,
  .p-site-loading,
  .c-cursor-stalker,
  .p-journal-archive__head {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    padding-top: 0 !important;
  }

  .l-main,
  .p-journal-archive,
  .p-journal-archive__inner {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .p-site-check__body {
    max-width: none;
    padding: 0;
    position: relative;
  }

  /* 透かし（全ページに、斜めの点線と小さな社名を格子状に薄く敷く） */
  .p-site-check-watermark {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .p-site-check-watermark__grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(-28deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='96'%3E%3Cg fill='none' stroke='%23279b9c' stroke-opacity='0.22' stroke-width='0.8' stroke-dasharray='3 3'%3E%3Cpath d='M0 48H48M152 48H200'/%3E%3Cpath d='M0.4 0V96'/%3E%3C/g%3E%3Ctext x='100' y='51' text-anchor='middle' font-family='Helvetica Neue, Arial, sans-serif' font-size='9' letter-spacing='0.3' fill='%23279b9c' fill-opacity='0.32'%3ECitron Design Garden%3C/text%3E%3C/svg%3E");
    background-size: 200px 96px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 冒頭の発行元表示 */
  .p-site-check__print-brand {
    display: block;
    border-bottom: 2.5px solid #279b9c;
    padding-bottom: 10px;
    margin-bottom: 16px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .p-site-check__print-brand img {
    height: 52px;
    width: auto;
  }

  .p-site-check__print-brand-name {
    font-size: 17pt;
    font-weight: bold;
    margin: 6px 0 2px;
    color: #1f7a7b;
  }

  .p-site-check__print-brand-name span {
    font-size: 10.5pt;
    font-weight: normal;
    color: #3c4c4d;
    margin-left: 8px;
  }

  .p-site-check__print-brand-info {
    font-size: 9.5pt;
    color: #3c4c4d;
    margin: 0;
  }

  .p-site-check__lead {
    margin-bottom: 8px;
  }

  .p-site-check__body h2 {
    margin-top: 8px;
  }

  /* 末尾の連絡先表示 */
  .p-site-check__print-contact {
    display: block;
    border: 1.5px solid #279b9c;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .p-site-check__print-contact-name {
    font-weight: bold;
    color: #1f7a7b;
    margin: 0 0 4px;
  }

  .p-site-check__print-contact p {
    margin: 0;
    font-size: 9.5pt;
  }

  /* 全ページ下部の発行元表示 */
  .p-site-check-print-foot {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
    color: #849696;
    border-top: 1px solid #cfe8e5;
    padding-top: 4px;
  }

  .p-site-check__table {
    display: table !important;
  }

  .p-site-check__table thead {
    display: table-header-group !important;
  }

  .p-site-check__table tbody {
    display: table-row-group !important;
  }

  .p-site-check__table tr {
    display: table-row !important;
    page-break-inside: avoid;
  }

  .p-site-check__table td {
    display: table-cell !important;
    border: 1px solid #d8e6e3 !important;
    padding: 6px 10px !important;
  }

  .p-site-check__table td:nth-child(1) {
    width: 24% !important;
  }

  .p-site-check__table td:nth-child(2) {
    width: 18% !important;
  }

  .p-site-check__body h3 {
    page-break-after: avoid;
  }
}
