/* 神社風スタイリング */
* { box-sizing: border-box; }

body {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "MS PMincho", serif;
  background: linear-gradient(180deg, #1a0f0a 0%, #2c1810 50%, #1a0f0a 100%);
  color: #f4e4c1;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px;
}

header {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid #8b6914;
  margin-bottom: 40px;
  position: relative;
}

header::before, header::after {
  content: "⛩";
  font-size: 32px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a86c;
  opacity: 0.7;
}
header::before { left: 8%; }
header::after { right: 8%; }

h1 {
  font-size: 32px;
  margin: 0;
  letter-spacing: 0.2em;
  color: #f4d76e;
  text-shadow: 0 0 20px rgba(244, 215, 110, 0.3);
  font-weight: normal;
}

.subtitle {
  font-size: 14px;
  margin-top: 12px;
  color: #c9a86c;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 22px;
  color: #f4d76e;
  border-left: 4px solid #c9a86c;
  padding-left: 14px;
  margin-top: 36px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 17px;
  color: #e8c878;
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.form-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #5d4a2c;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.form-row > .form-group {
  flex: 1;
  min-width: 180px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: #c9a86c;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

input[type="text"], input[type="number"], textarea, select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #5d4a2c;
  color: #f4e4c1;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 3px;
  font-family: inherit;
  outline: none;
}

select {
  background-color: #2c1810;
  color: #f4e4c1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a86c'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px;
  padding-right: 32px;
}

select option {
  background: #2c1810;
  color: #f4e4c1;
}

input:focus, textarea:focus, select:focus {
  border-color: #c9a86c;
  box-shadow: 0 0 8px rgba(201, 168, 108, 0.3);
}

textarea {
  resize: vertical;
  min-height: 70px;
}

button {
  background: linear-gradient(180deg, #8b6914 0%, #6b4f0e 100%);
  color: #f4e4c1;
  border: 1px solid #c9a86c;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
  margin-right: 8px;
  margin-top: 8px;
  transition: all 0.2s;
}

button:hover {
  background: linear-gradient(180deg, #a37f1c 0%, #8b6914 100%);
  box-shadow: 0 0 12px rgba(201, 168, 108, 0.4);
}

button.primary {
  background: linear-gradient(180deg, #c94c1c 0%, #8b3818 100%);
  border-color: #f4d76e;
  font-size: 16px;
  padding: 14px 36px;
}

button.primary:hover {
  background: linear-gradient(180deg, #e85c28 0%, #c94c1c 100%);
}

button.secondary {
  background: rgba(255,255,255,0.05);
  border-color: #5d4a2c;
}

button.danger {
  background: rgba(220, 50, 50, 0.2);
  border-color: #d44;
  font-size: 12px;
  padding: 6px 12px;
}

.timeline-row, .workplace-row, .meeting-row, .grandparent-row {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.timeline-row {
  grid-template-columns: 80px 60px 1fr 1fr auto;
}

.workplace-row {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.meeting-row {
  grid-template-columns: 1fr 1fr 80px 1fr auto;
}

.grandparent-row {
  grid-template-columns: 120px 1fr 1fr 1fr auto;
}

.add-btn {
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(201, 168, 108, 0.1);
  border-color: #5d4a2c;
}

.actions {
  text-align: center;
  margin: 40px 0;
}

/* 結果セクション */
#results {
  display: none;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #8b6914;
}

.result-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid #5d4a2c;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.result-section.highlight {
  border-color: #f4d76e;
  background: rgba(244, 215, 110, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

th {
  background: rgba(201, 168, 108, 0.15);
  color: #f4d76e;
  padding: 10px 8px;
  text-align: left;
  font-weight: normal;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #5d4a2c;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(93, 74, 44, 0.4);
}

tr:hover td {
  background: rgba(201, 168, 108, 0.05);
}

.deity-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  background: rgba(201, 168, 108, 0.15);
  border: 1px solid #5d4a2c;
  border-radius: 10px;
  margin: 2px 4px 2px 0;
  color: #e8c878;
}

.pattern-card {
  background: rgba(244, 215, 110, 0.05);
  border-left: 3px solid #f4d76e;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 0 3px 3px 0;
}

.pattern-card .pattern-type {
  font-size: 12px;
  color: #f4d76e;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.priority-1 { border-left: 4px solid #4CAF50; }
.priority-2 { border-left: 4px solid #FFC107; }
.priority-3 { border-left: 4px solid #2196F3; }
.priority-4 { border-left: 4px solid #9C27B0; }
.priority-5 { border-left: 4px solid #FF9800; }
.priority-6 { border-left: 4px solid #F44336; }

.shrine-card {
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.shrine-name {
  color: #f4d76e;
  font-size: 16px;
  margin-bottom: 4px;
}

.shrine-meta {
  font-size: 12px;
  color: #c9a86c;
  margin-bottom: 6px;
}

.shrine-reason {
  font-size: 13px;
  color: #e8c878;
}

pre.script {
  background: rgba(0,0,0,0.4);
  border: 1px solid #5d4a2c;
  padding: 18px;
  white-space: pre-wrap;
  font-family: "Yu Mincho", "游明朝", "MS PMincho", serif;
  font-size: 14px;
  color: #f4e4c1;
  border-radius: 4px;
  line-height: 1.8;
}

.copy-btn {
  font-size: 12px;
  padding: 4px 10px;
  margin-top: 8px;
}

.helper-text {
  font-size: 12px;
  color: #8b6914;
  margin-top: 4px;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 40px 0 20px;
  color: #8b6914;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* 悩みグリッド */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.concern-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #5d4a2c;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #e8c878;
  transition: all 0.2s;
  user-select: none;
}

.concern-chip:hover {
  border-color: #c9a86c;
  background: rgba(201,168,108,0.1);
}

.concern-chip.selected {
  background: linear-gradient(180deg, rgba(244,215,110,0.2) 0%, rgba(201,168,108,0.2) 100%);
  border-color: #f4d76e;
  color: #f4d76e;
  box-shadow: 0 0 10px rgba(244,215,110,0.3);
}

.concern-chip input {
  display: none;
}

.concern-icon {
  font-size: 16px;
}

.concern-recommendation {
  background: rgba(244,215,110,0.04);
  border: 1px solid #c9a86c;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.concern-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.concern-title {
  font-size: 22px;
  color: #f4d76e;
  letter-spacing: 0.08em;
}

.concern-summary {
  font-size: 13px;
  color: #c9a86c;
}

.synchronicity-banner {
  background: linear-gradient(90deg, rgba(244,215,110,0.15) 0%, rgba(244,76,28,0.1) 100%);
  border-left: 4px solid #f4d76e;
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #f4e4c1;
}

.synchronicity-banner .sync-label {
  display: block;
  font-size: 11px;
  color: #f4d76e;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

/* 不調期入力フォーム */
.hardship-row {
  border: 1px solid #5d4a2c;
  border-radius: 5px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.2);
  position: relative;
}

.hardship-row-header {
  display: grid;
  grid-template-columns: 130px 110px 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.hardship-row-people {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.hardship-row-places {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* 不調期診断結果 */
.hardship-result {
  background: rgba(80,30,30,0.15);
  border: 1px solid #8b4040;
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 18px;
}

.hardship-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.hardship-category-tag {
  display: inline-block;
  background: rgba(220,80,80,0.2);
  color: #f4b8b8;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1px solid #8b4040;
}

.hardship-period {
  color: #c9a86c;
  font-size: 13px;
}

.hardship-desc {
  color: #f4e4c1;
  margin-bottom: 12px;
  font-size: 14px;
}

.deity-comparison {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 12px;
  border-radius: 4px;
  margin: 10px 0;
}

.deity-comparison .vs {
  text-align: center;
  color: #c9a86c;
  font-size: 14px;
}

.deity-comparison .side {
  text-align: center;
}

.deity-comparison .side-label {
  font-size: 11px;
  color: #c9a86c;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.hardship-interpretation {
  background: rgba(244,215,110,0.05);
  border-left: 3px solid #c9a86c;
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  line-height: 1.8;
  color: #f4e4c1;
  white-space: pre-wrap;
  margin-top: 10px;
}

.hardship-interpretation strong, .hardship-interpretation b {
  color: #f4d76e;
}

/* ============================================ */
/* 診断書（プレビュー & 印刷用）                  */
/* ============================================ */

#report-view {
  display: none;
  background: #faf6ed;
  color: #2c1810;
  padding: 30px 0;
  min-height: 100vh;
}

#report-view.active {
  display: block;
}

body.report-mode > .container {
  display: none;
}

body.report-mode {
  background: #faf6ed;
}

#report-view .container-report {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.report-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  background: #2c1810;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #c9a86c;
}

.report-toolbar button {
  background: linear-gradient(180deg, #c94c1c 0%, #8b3818 100%);
  border: 1px solid #f4d76e;
  color: #f4e4c1;
  margin: 0;
}

.report-page {
  background: #faf6ed;
  color: #2c1810;
  padding: 50px 60px;
  margin: 20px auto;
  min-height: 1000px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "MS PMincho", serif;
  page-break-after: always;
  border: 1px solid #c9a86c;
}

.report-page-header {
  text-align: right;
  font-size: 12px;
  color: #8b3818;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  font-family: serif;
}

.report-h2 {
  font-size: 26px;
  color: #2c1810;
  border: none;
  padding: 0 0 8px 0;
  margin: 0 0 16px 0;
  letter-spacing: 0.12em;
  border-bottom: 2px solid #8b3818;
  font-weight: normal;
}

.report-h3 {
  font-size: 17px;
  color: #5d2a0e;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.report-h4 {
  font-size: 14px;
  color: #5d2a0e;
  margin-top: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.report-lead {
  color: #5d3a1e;
  font-size: 14px;
  margin: 4px 0 18px 0;
  font-style: italic;
}

/* 表紙 */
.report-cover {
  text-align: center;
  padding: 80px 60px;
  background: linear-gradient(180deg, #faf6ed 0%, #f4ead4 100%);
  border: 2px solid #8b3818;
}

.cover-ornament {
  font-size: 36px;
  color: #c94c1c;
  margin: 20px 0;
}

.cover-bottom {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #8b6914;
  margin-top: 80px;
}

.cover-title {
  font-size: 56px;
  letter-spacing: 0.3em;
  color: #2c1810;
  margin: 30px 0 20px 0;
  font-weight: normal;
  line-height: 1.2;
}

.cover-divider {
  width: 100px;
  height: 2px;
  background: #8b3818;
  margin: 20px auto 40px;
}

.cover-name {
  margin: 60px 0 40px 0;
}

.cover-name-label {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: #8b6914;
  margin-bottom: 12px;
}

.cover-surname {
  font-size: 42px;
  letter-spacing: 0.2em;
  color: #2c1810;
}

.cover-honorific {
  font-size: 24px;
}

.cover-meta {
  font-size: 13px;
  color: #5d3a1e;
  letter-spacing: 0.1em;
  margin-top: 40px;
  line-height: 2.2;
}

.cover-seal, .back-seal {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 130px;
  height: 130px;
  object-fit: contain;
  transform: rotate(-6deg);
  opacity: 0.95;
  pointer-events: none;
  background: transparent;
  border: none;
}

.back-seal {
  width: 110px;
  height: 110px;
  bottom: 60px;
  right: 60px;
}

/* 共通テーブル */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  background: #fff;
}

.report-table th {
  background: #f4ead4;
  color: #2c1810;
  padding: 8px;
  text-align: left;
  border: 1px solid #c9a86c;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.report-table td {
  padding: 8px;
  border: 1px solid #d8c8a8;
  color: #2c1810;
}

.deity-name-cell {
  color: #8b3818;
  font-weight: bold;
}

.report-table-timeline {
  font-size: 12px;
}

/* Callout */
.report-callout {
  background: #f4ead4;
  border-left: 4px solid #c94c1c;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.callout-label {
  font-size: 11px;
  color: #c94c1c;
  letter-spacing: 0.3em;
}

.callout-title {
  font-size: 22px;
  color: #2c1810;
  margin: 4px 0 8px;
  letter-spacing: 0.1em;
}

.callout-body {
  font-size: 13px;
  color: #5d3a1e;
  line-height: 1.8;
}

/* Patterns */
.report-pattern {
  padding: 10px 14px;
  margin: 8px 0;
  border-left: 3px solid #c94c1c;
  background: #faf0e0;
  font-size: 13px;
}

.pattern-type-label {
  font-size: 11px;
  color: #c94c1c;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.pattern-body {
  color: #2c1810;
  line-height: 1.7;
}

/* Concerns in report */
.report-concern {
  border: 1px solid #c9a86c;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 4px;
  background: #fff;
}

.concern-title-block {
  margin-bottom: 8px;
}

.report-concern-icon {
  font-size: 22px;
  margin-right: 8px;
}

.report-concern-title {
  font-size: 18px;
  color: #2c1810;
  letter-spacing: 0.1em;
}

.concern-detail-text {
  font-size: 12px;
  color: #5d3a1e;
  margin-bottom: 10px;
}

.report-sync-banner {
  background: #f4ead4;
  border-left: 3px solid #c94c1c;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
  color: #2c1810;
  line-height: 1.7;
}

.report-list {
  margin: 8px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.9;
}

.report-list strong {
  color: #8b3818;
}

/* Hardships in report */
.report-hardship {
  border: 1px solid #8b4040;
  padding: 14px 18px;
  margin: 14px 0;
  border-radius: 4px;
  background: #faf0e8;
}

.hardship-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #5d3a1e;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hardship-cat {
  background: #c94c1c;
  color: #faf6ed;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.hardship-desc-report {
  font-size: 13px;
  color: #2c1810;
  margin-bottom: 10px;
}

.hardship-comparison-report {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin: 8px 0;
  font-size: 12px;
}

.cmp-vs {
  text-align: center;
  color: #c94c1c;
  font-size: 16px;
}

.cmp-label {
  display: block;
  font-size: 10px;
  color: #8b6914;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.report-interpretation {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff;
  border-left: 3px solid #c9a86c;
  font-size: 12px;
  color: #2c1810;
  line-height: 1.8;
}

.report-interpretation strong, .report-interpretation b {
  color: #8b3818;
}

/* Shrine cards */
.report-shrine-card {
  padding: 10px 14px;
  margin: 8px 0;
  background: #fff;
  border: 1px solid #d8c8a8;
  border-radius: 3px;
}

.report-shrine-name {
  color: #8b3818;
  font-size: 15px;
  margin-bottom: 3px;
  font-weight: bold;
}

.report-shrine-meta {
  font-size: 11px;
  color: #8b6914;
  margin-bottom: 4px;
}

.report-shrine-reason {
  font-size: 12px;
  color: #2c1810;
  line-height: 1.6;
}

.report-shrine-note {
  font-size: 11px;
  color: #8b6914;
  font-style: italic;
  margin-top: 4px;
}

/* Checklist */
.report-checklist {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
}

.report-checklist th {
  background: #f4ead4;
  border: 1px solid #c9a86c;
  padding: 8px;
  font-weight: normal;
  color: #2c1810;
}

.report-checklist td {
  border: 1px solid #c9a86c;
  height: 48px;
  padding: 6px 8px;
  vertical-align: top;
  color: #2c1810;
}

.check-subtle {
  font-size: 10px;
  color: #8b6914;
}

/* 裏表紙 */
.report-back {
  text-align: center;
  padding: 100px 60px;
  background: linear-gradient(180deg, #f4ead4 0%, #faf6ed 100%);
}

.back-ornament {
  font-size: 36px;
  color: #c94c1c;
  margin: 20px 0 60px 0;
}

.back-text {
  font-size: 13px;
  color: #5d3a1e;
  letter-spacing: 0.1em;
  line-height: 2.4;
  margin-bottom: 80px;
}

.back-text p {
  margin: 24px 0;
}

.back-date {
  position: absolute;
  bottom: 60px;
  left: 60px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8b6914;
}

/* 印刷用 */
/* ============================================ */
/* 神様アイコン・チャート・装飾                    */
/* ============================================ */

.deity-icon, .deity-icon svg {
  display: inline-block;
  vertical-align: middle;
}

.chart-container {
  margin: 16px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #d8c8a8;
  border-radius: 4px;
  overflow: visible;
}

.chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-caption {
  font-size: 11px;
  color: #8b6914;
  font-style: italic;
  margin: 4px 0 8px 0;
}

/* 章ヘッダー装飾 */
.report-page .report-page-header {
  text-align: right;
  margin-bottom: 4px;
}

.chapter-num-decor {
  display: inline-block;
  font-size: 12px;
  color: #faf6ed;
  background: #8b3818;
  padding: 4px 14px;
  letter-spacing: 0.3em;
  border-radius: 2px;
  font-family: serif;
}

.report-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-h2 .h2-mark {
  color: #c94c1c;
  font-size: 28px;
}

/* 神様カードグリッド */
.deity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.deity-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d8c8a8;
  border-left: 4px solid #c9a86c;
  padding: 12px;
  border-radius: 4px;
  gap: 10px;
}

.deity-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.deity-card-body {
  flex: 1;
  min-width: 0;
}

.deity-card-name {
  font-size: 16px;
  color: #2c1810;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.deity-card-role {
  font-size: 11px;
  color: #5d3a1e;
  margin: 2px 0;
  line-height: 1.5;
}

.deity-card-count {
  font-size: 11px;
  color: #8b6914;
  letter-spacing: 0.1em;
}

/* Calloutに神様アイコンを統合 */
.report-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f4ead4;
  border-left: 6px solid #c94c1c;
  padding: 18px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.callout-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.callout-body-wrap {
  flex: 1;
}

/* 出会い・職場カード */
.meeting-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mw-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d8c8a8;
  border-left-width: 4px;
  padding: 10px;
  border-radius: 4px;
  gap: 8px;
}

.mw-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.mw-body {
  flex: 1;
  min-width: 0;
}

.mw-title {
  font-size: 13px;
  color: #2c1810;
  font-weight: bold;
}

.mw-sub {
  font-size: 11px;
  color: #5d3a1e;
  margin: 2px 0;
}

.mw-deities {
  font-size: 10px;
  color: #8b6914;
}

/* パターンカード（アイコン付き） */
.report-pattern {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  border-left: 3px solid #c94c1c;
  background: #faf0e0;
  font-size: 13px;
  align-items: flex-start;
}

.pattern-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: 4px;
}

.pattern-content {
  flex: 1;
}

/* 推奨神社カード（アイコン付き） */
.report-shrine-card {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  background: #fff;
  border: 1px solid #d8c8a8;
  border-left-width: 4px;
  border-radius: 3px;
  align-items: flex-start;
}

.report-shrine-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
}

.report-shrine-body {
  flex: 1;
  min-width: 0;
}

/* ============================================ */
/* 主神専用ページ                                  */
/* ============================================ */

.main-deity-page {
  --deity-accent: #c94c1c;
}

.main-deity-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(244,234,212,0.6) 0%, #fff 100%);
  border: 2px solid var(--deity-accent);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0 20px;
  position: relative;
  overflow: hidden;
}

.main-deity-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: var(--deity-accent);
  opacity: 0.08;
  border-radius: 50%;
}

.main-deity-portrait {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  background: #fff;
  border: 3px solid var(--deity-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.main-deity-portrait svg {
  width: 100%;
  height: 100%;
}

.main-deity-name-block {
  flex: 1;
  min-width: 0;
}

.main-deity-reading {
  font-size: 11px;
  color: #8b6914;
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}

.main-deity-name {
  font-size: 36px;
  color: #2c1810;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.main-deity-aliases {
  font-size: 11px;
  color: #5d3a1e;
  margin-bottom: 10px;
}

.main-deity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.md-tag {
  font-size: 11px;
  background: var(--deity-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.main-deity-count {
  font-size: 12px;
  color: #5d3a1e;
}

.main-deity-count strong {
  color: var(--deity-accent);
  font-size: 16px;
  margin: 0 2px;
}

.md-narrative {
  font-size: 13px;
  color: #2c1810;
  line-height: 1.9;
  background: #faf0e0;
  padding: 12px 16px;
  border-left: 3px solid var(--deity-accent);
  border-radius: 0 4px 4px 0;
  margin: 8px 0 16px;
}

.md-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.md-meta-item {
  font-size: 12px;
  background: #fff;
  border: 1px solid #d8c8a8;
  padding: 8px 12px;
  border-radius: 4px;
  color: #2c1810;
}

.md-meta-label {
  display: inline-block;
  font-size: 10px;
  color: var(--deity-accent);
  letter-spacing: 0.15em;
  margin-right: 8px;
  font-weight: bold;
}

.md-shrines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.md-shrine {
  background: #fff;
  border: 1px solid #d8c8a8;
  border-left: 3px solid var(--deity-accent);
  padding: 8px 12px;
  border-radius: 4px;
}

.md-shrine-name {
  font-size: 13px;
  color: #2c1810;
  font-weight: bold;
}

.md-shrine-area {
  font-size: 10px;
  color: #8b6914;
}

.md-shrine-note {
  font-size: 10px;
  color: #5d3a1e;
  margin-top: 2px;
  font-style: italic;
}

.md-occurrences {
  margin: 8px 0;
}

.md-occurrence {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #d8c8a8;
  font-size: 12px;
}

.md-occurrence:last-child { border-bottom: none; }

.md-occ-time {
  flex-shrink: 0;
  width: 110px;
  color: var(--deity-accent);
  font-weight: bold;
}

.md-occ-body {
  flex: 1;
  color: #2c1810;
}

.md-occ-where {
  display: inline-block;
  margin-left: 8px;
  color: #8b6914;
  font-size: 11px;
}

.md-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.md-item {
  font-size: 12px;
  background: #fff;
  border: 1px solid #d8c8a8;
  padding: 8px 12px;
  border-radius: 4px;
  color: #2c1810;
}

.md-item-label {
  display: inline-block;
  font-size: 10px;
  color: var(--deity-accent);
  letter-spacing: 0.15em;
  margin-right: 8px;
  font-weight: bold;
}

.md-item-caution {
  background: #faf0e0;
  border-color: #8b4040;
}

.md-item-caution .md-item-label {
  color: #c94c1c;
}

.md-affinity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.md-affinity-block {
  border: 1px solid #d8c8a8;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff;
}

.md-aff-good { border-left: 3px solid #27AE60; }
.md-aff-avoid { border-left: 3px solid #c94c1c; }

.md-aff-label {
  font-size: 11px;
  color: #2c1810;
  font-weight: bold;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.md-affinity-block ul {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 11px;
  color: #5d3a1e;
}

.md-affinity-block li {
  line-height: 1.7;
}

/* ============================================ */
/* 副神（2位・3位）ページ                          */
/* ============================================ */

.sub-deity-block {
  --deity-accent: #c94c1c;
  border: 1px solid var(--deity-accent);
  border-radius: 6px;
  background: #fff;
  margin: 14px 0;
  overflow: hidden;
}

.sub-deity-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(244,234,212,0.7) 0%, #fff 100%);
  border-bottom: 1px solid #d8c8a8;
  position: relative;
}

.sub-deity-rank {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--deity-accent);
  letter-spacing: 0.3em;
  font-weight: bold;
}

.sub-deity-portrait {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #fff;
  border: 2px solid var(--deity-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.sub-deity-portrait svg {
  width: 100%;
  height: 100%;
}

.sub-deity-info {
  flex: 1;
  min-width: 0;
}

.sub-deity-reading {
  font-size: 10px;
  color: #8b6914;
  letter-spacing: 0.2em;
}

.sub-deity-name {
  font-size: 22px;
  color: #2c1810;
  letter-spacing: 0.05em;
  margin: 2px 0;
}

.sub-deity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}

.sub-deity-tags .md-tag {
  font-size: 9px;
  padding: 1px 6px;
}

.sub-deity-count {
  font-size: 11px;
  color: #5d3a1e;
}

.sub-deity-count strong {
  color: var(--deity-accent);
}

.sub-deity-body {
  padding: 12px 16px;
}

.sub-deity-narrative {
  font-size: 11px;
  color: #2c1810;
  line-height: 1.7;
  background: #faf0e0;
  padding: 8px 12px;
  border-left: 2px solid var(--deity-accent);
  border-radius: 0 3px 3px 0;
  margin-bottom: 10px;
}

.sub-deity-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.sub-col-title {
  font-size: 10px;
  color: var(--deity-accent);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  font-weight: bold;
  border-bottom: 1px solid #d8c8a8;
  padding-bottom: 3px;
}

.sub-col-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.5;
  color: #2c1810;
}

.sub-col-list li {
  margin-bottom: 6px;
}

.sub-col-list strong {
  color: #5d3a1e;
}

.sub-col-area {
  font-size: 10px;
  color: #8b6914;
}

.sub-col-item {
  font-size: 10px;
  color: #2c1810;
  margin: 4px 0;
}

.sub-col-label {
  display: inline-block;
  background: #f4ead4;
  color: var(--deity-accent);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-right: 4px;
  letter-spacing: 0.1em;
}

/* ============================================ */
/* 参拝の作法・注意ページ                          */
/* ============================================ */

.worship-steps {
  margin: 8px 0;
}

.worship-step {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #d8c8a8;
}

.worship-step:last-child { border-bottom: none; }

.worship-step-label {
  flex-shrink: 0;
  width: 140px;
  font-size: 12px;
  color: #c94c1c;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.worship-step-action {
  flex: 1;
  font-size: 12px;
  color: #2c1810;
  line-height: 1.8;
}

.worship-special {
  background: #faf0e0;
  border-left: 3px solid #8b4040;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
}

.worship-special-title {
  font-size: 13px;
  color: #c94c1c;
  font-weight: bold;
  margin-bottom: 4px;
}

.worship-special-note {
  font-size: 12px;
  color: #2c1810;
  line-height: 1.8;
}

.worship-avoid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worship-avoid-item {
  background: #fff;
  border: 1px solid #d8c8a8;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.worship-avoid-cond {
  display: inline-block;
  background: #8b4040;
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  margin-right: 8px;
}

.worship-avoid-note {
  color: #2c1810;
}

/* 角飾り（千代紙風） */
.report-page::before,
.report-page::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #8b3818;
  pointer-events: none;
}

.report-page::before {
  top: 16px;
  left: 16px;
  border-right: none;
  border-bottom: none;
}

.report-page::after {
  bottom: 16px;
  right: 16px;
  border-left: none;
  border-top: none;
}

.report-cover::before,
.report-cover::after {
  width: 36px;
  height: 36px;
  border-color: #c94c1c;
  border-width: 3px;
}

/* ============================================ */
/* マネタイズ（ペイウォール、価格カード、モーダル）  */
/* ============================================ */

.lock-status-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.1em;
  margin: 0 10px;
}

.lock-status-badge.locked {
  background: rgba(220,180,80,0.2);
  color: #f4d76e;
  border: 1px solid #c9a86c;
}

.lock-status-badge.unlocked {
  background: rgba(80,200,120,0.2);
  color: #7DD96E;
  border: 1px solid #7DD96E;
}

/* ペイウォール章ページ */
.paywall-page {
  background: linear-gradient(135deg, #faf6ed 0%, #f4ead4 100%);
  text-align: center;
}

.paywall-decor-top {
  font-size: 48px;
  color: #c94c1c;
  margin-bottom: 12px;
}

.paywall-page-title {
  font-size: 32px;
  color: #2c1810;
  letter-spacing: 0.2em;
  border: none !important;
  padding: 0;
  text-align: center;
  display: block;
}

.paywall-page-lead {
  font-size: 16px;
  color: #5d3a1e;
  margin: 14px 0 22px;
}

.paywall-page-lead strong {
  color: #c94c1c;
  font-size: 22px;
  margin: 0 4px;
}

.paywall-chapter-list {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 30px;
}

.paywall-chapter-item {
  background: #fff;
  border: 1px solid #d8c8a8;
  padding: 10px 16px;
  margin: 6px 0;
  border-radius: 4px;
  font-size: 14px;
  color: #2c1810;
  position: relative;
}

.paywall-chapter-num {
  display: inline-block;
  width: 36px;
  text-align: center;
  background: #8b3818;
  color: #faf6ed;
  padding: 2px 0;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 12px;
  letter-spacing: 0.05em;
}

/* 価格カード */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px auto;
  max-width: 540px;
}

.pricing-card {
  background: #fff;
  border: 2px solid #d8c8a8;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  text-align: left;
}

.pricing-card-premium {
  border-color: #c94c1c;
  background: linear-gradient(180deg, #fff 0%, #faf0e0 100%);
}

.pricing-card-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #c94c1c;
  color: #faf6ed;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.15em;
}

.pricing-card-label {
  font-size: 13px;
  color: #8b6914;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.pricing-card-price {
  font-size: 32px;
  color: #2c1810;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.pricing-card-discount {
  font-size: 12px;
  color: #c94c1c;
  margin: 4px 0 10px;
  font-weight: bold;
}

.pricing-card-features {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  color: #2c1810;
  line-height: 1.7;
}

.paywall-cta-block {
  margin-top: 22px;
}

.paywall-main-cta {
  background: linear-gradient(180deg, #c94c1c 0%, #8b3818 100%);
  color: #faf6ed;
  border: 2px solid #f4d76e;
  font-size: 18px;
  letter-spacing: 0.15em;
  padding: 14px 38px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.paywall-main-cta:hover {
  background: linear-gradient(180deg, #e85c28 0%, #c94c1c 100%);
}

.paywall-cta-note {
  font-size: 12px;
  color: #8b6914;
  margin-top: 10px;
  letter-spacing: 0.1em;
}

/* モーダル */
.paywall-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.paywall-modal.active {
  display: flex;
}

.paywall-modal-inner {
  background: #faf6ed;
  color: #2c1810;
  border: 2px solid #c94c1c;
  border-radius: 8px;
  padding: 30px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #8b6914;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 12px;
  margin: 0;
}

.modal-close:hover {
  color: #c94c1c;
}

.paywall-title {
  font-size: 26px;
  color: #2c1810;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.15em;
}

.paywall-desc {
  text-align: center;
  font-size: 13px;
  color: #5d3a1e;
  margin-bottom: 16px;
}

.paywall-options {
  margin-top: 22px;
}

.paywall-line-btn {
  display: block;
  background: #06C755;
  color: #fff;
  padding: 14px 22px;
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-weight: bold;
}

.paywall-line-btn:hover {
  background: #05A847;
}

.paywall-or {
  text-align: center;
  margin: 18px 0;
  color: #8b6914;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.unlock-code-section label {
  display: block;
  font-size: 12px;
  color: #5d3a1e;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.unlock-code-row {
  display: flex;
  gap: 8px;
}

.unlock-code-row input {
  flex: 1;
  background: #fff;
  border: 1px solid #c9a86c;
  color: #2c1810;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 3px;
}

.unlock-code-row button {
  margin: 0;
  background: linear-gradient(180deg, #c94c1c 0%, #8b3818 100%);
  border-color: #f4d76e;
  font-size: 13px;
  padding: 10px 24px;
}

.unlock-msg {
  margin-top: 8px;
  font-size: 12px;
  min-height: 14px;
}

.unlock-msg.success { color: #16A085; }
.unlock-msg.error { color: #c94c1c; }

.unlock-hint {
  margin-top: 10px;
  font-size: 11px;
  color: #8b6914;
  font-style: italic;
}

/* ============================================ */
/* LINE QR セクション                              */
/* ============================================ */

.line-section {
  margin: 22px 0 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6,199,85,0.06) 0%, rgba(6,199,85,0.02) 100%);
  border: 1px solid #06C755;
  border-radius: 6px;
}

.line-section-title {
  font-size: 15px;
  color: #06C755;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-align: center;
}

.line-flow {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.line-qr-wrap {
  flex-shrink: 0;
  text-align: center;
}

.line-qr-img {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 2px solid #06C755;
  border-radius: 6px;
  display: block;
  padding: 8px;
  box-sizing: content-box;
}

.line-qr-label {
  font-size: 11px;
  color: #5d3a1e;
  margin-top: 6px;
  letter-spacing: 0.05em;
  max-width: 220px;
  word-break: break-all;
}

.line-steps {
  flex: 1;
  min-width: 0;
}

.line-steps-list {
  margin: 0 0 14px 0;
  padding-left: 22px;
  font-size: 13px;
  color: #2c1810;
  line-height: 1.9;
}

.line-step-small {
  font-size: 10px;
  color: #8b6914;
  font-weight: normal;
}

.paywall-line-btn {
  display: block;
  background: #06C755;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-weight: bold;
}

/* ============================================ */
/* 管理画面                                       */
/* ============================================ */

.admin-trigger {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
  background: linear-gradient(180deg, #6b4f0e 0%, #4a3608 100%);
  color: #f4e4c1;
  border: 1px solid #c9a86c;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
}

.admin-trigger:hover {
  background: linear-gradient(180deg, #8b6914 0%, #6b4f0e 100%);
}

.admin-form {
  margin-top: 14px;
}

.admin-field {
  margin-bottom: 14px;
}

.admin-field label {
  display: block;
  font-size: 12px;
  color: #5d3a1e;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.admin-field input, .admin-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #c9a86c;
  color: #2c1810;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 3px;
  box-sizing: border-box;
}

.admin-field textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-hint {
  font-size: 10px;
  color: #8b6914;
  margin-top: 3px;
  font-style: italic;
}

.admin-qr-preview {
  background: #faf0e0;
  border: 1px dashed #c9a86c;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  margin: 14px 0;
}

.admin-qr-title {
  font-size: 12px;
  color: #8b6914;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.admin-qr-url {
  font-size: 11px;
  color: #5d3a1e;
  word-break: break-all;
  margin-top: 4px;
  font-family: monospace;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions button {
  margin: 0;
  flex: 1;
}

/* ============================================ */
/* シェアモーダル                                  */
/* ============================================ */

.share-modal-inner {
  max-width: 680px;
}

.share-url-block {
  margin: 18px 0;
}

.share-url-block label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: #5d3a1e;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-weight: bold;
}

.share-url-meta {
  font-size: 10px;
  color: #8b6914;
  font-weight: normal;
}

.share-url-row {
  display: flex;
  gap: 8px;
}

.share-url-row input {
  flex: 1;
  background: #fff;
  border: 1px solid #c9a86c;
  color: #2c1810;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 11px;
  border-radius: 3px;
  word-break: break-all;
}

.share-url-row button {
  margin: 0;
  flex-shrink: 0;
}

.share-qr-block {
  display: flex;
  gap: 18px;
  margin: 20px 0;
  background: #faf0e0;
  border: 1px solid #c9a86c;
  padding: 16px;
  border-radius: 6px;
  align-items: stretch;
}

.share-qr-side {
  text-align: center;
  flex-shrink: 0;
}

.share-qr-caption {
  font-size: 10px;
  color: #8b6914;
  margin-top: 6px;
}

.share-sns-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.share-sns-title {
  font-size: 12px;
  color: #8b6914;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  font-weight: bold;
}

.share-sns-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.share-sns-x {
  background: #000;
  color: #fff;
}

.share-sns-line {
  background: #06C755;
  color: #fff;
}

.share-privacy-notice {
  background: rgba(220,80,80,0.08);
  border-left: 3px solid #8b4040;
  padding: 10px 14px;
  font-size: 11px;
  color: #5d3a1e;
  line-height: 1.7;
  border-radius: 0 3px 3px 0;
  margin-top: 14px;
}

.shared-banner {
  background: linear-gradient(90deg, #06C755 0%, #05A847 100%);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.shared-banner button {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 10px;
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0;
}

/* ============================================ */
/* SNS画像生成モーダル + テンプレート              */
/* ============================================ */

#ix-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.image-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.image-format-btn {
  background: #fff;
  border: 2px solid #c9a86c;
  color: #2c1810;
  padding: 18px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  margin: 0;
  transition: all 0.15s;
}

.image-format-btn:hover {
  background: #faf0e0;
  border-color: #c94c1c;
  transform: translateY(-2px);
}

.image-format-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ix-format-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.ix-format-label {
  font-size: 13px;
  color: #2c1810;
  font-weight: bold;
  margin-bottom: 2px;
}

.ix-format-size {
  font-size: 10px;
  color: #8b6914;
  letter-spacing: 0.1em;
}

.ix-preview-img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  margin: 8px auto;
  border: 1px solid #c9a86c;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================ */
/* 画像テンプレート本体（ix-template）             */
/* ============================================ */

.ix-template {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "MS PMincho", serif;
  background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 50%, #3a1f10 100%);
  color: #f4e4c1;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ix-template::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244,215,110,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(201,76,28,0.12), transparent 40%);
  pointer-events: none;
}

.ix-bg-deco {
  position: absolute;
  font-size: 480px;
  color: rgba(201,76,28,0.07);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.ix-header {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ix-brand {
  font-size: 42px;
  color: #f4d76e;
  letter-spacing: 0.3em;
  font-weight: normal;
  margin-bottom: 8px;
}

.ix-subtitle {
  font-size: 18px;
  color: #c9a86c;
  letter-spacing: 0.2em;
}

.ix-main-deity {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ix-main-portrait {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  background: #fff;
  border: 6px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  box-shadow: 0 0 60px rgba(244,215,110,0.2);
}

.ix-main-portrait svg {
  width: 100%;
  height: 100%;
}

.ix-main-rank {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.4em;
  margin-top: 18px;
}

.ix-main-name {
  font-size: 64px;
  color: #f4e4c1;
  letter-spacing: 0.15em;
  margin: 10px 0 6px;
  text-shadow: 0 0 20px rgba(244,215,110,0.3);
}

.ix-main-count {
  font-size: 22px;
  color: #c9a86c;
}

.ix-main-count b {
  color: #f4d76e;
  font-size: 28px;
  margin: 0 4px;
}

.ix-top3 {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ix-top-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--c);
  border-radius: 12px;
  padding: 20px 18px;
  min-width: 160px;
  text-align: center;
}

.ix-top-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.ix-top-icon svg {
  width: 100%;
  height: 100%;
}

.ix-top-name {
  font-size: 18px;
  color: #f4e4c1;
  letter-spacing: 0.05em;
}

.ix-top-count {
  font-size: 13px;
  color: var(--c);
  margin-top: 4px;
}

.ix-footer {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ix-surname {
  font-size: 28px;
  color: #f4d76e;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.ix-cta {
  font-size: 16px;
  color: #c9a86c;
  letter-spacing: 0.15em;
}

.ix-qr-block {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid #c9a86c;
  border-radius: 12px;
  padding: 18px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.ix-qr-img {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 6px;
  display: block;
  padding: 8px;
  box-sizing: content-box;
}

.ix-qr-caption {
  font-size: 13px;
  color: #c9a86c;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* 正方形 (1080x1080) */
.ix-square {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* 縦長 (1080x1920) */
.ix-vertical {
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.ix-main-portrait-large {
  width: 380px;
  height: 380px;
  padding: 40px;
}

.ix-main-large .ix-main-name {
  font-size: 88px;
}

.ix-top3-vertical {
  flex-wrap: wrap;
}

/* 横長 (1200x675) */
.ix-horizontal {
  padding: 50px 60px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.ix-h-left, .ix-h-right {
  flex: 1;
}

.ix-h-left {
  text-align: center;
}

.ix-h-left .ix-main-portrait {
  width: 220px;
  height: 220px;
  padding: 20px;
  margin-top: 20px;
}

.ix-h-left .ix-main-name {
  font-size: 44px;
  margin-top: 14px;
}

.ix-h-left .ix-main-count {
  font-size: 16px;
}

.ix-h-right-title {
  font-size: 22px;
  color: #c9a86c;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.ix-top3-horizontal {
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.ix-top3-horizontal .ix-top-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 10px 16px;
  min-width: 0;
}

.ix-top3-horizontal .ix-top-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  flex-shrink: 0;
}

.ix-top3-horizontal .ix-top-name {
  font-size: 16px;
}

.ix-top3-horizontal .ix-top-count {
  margin: 0 0 0 auto;
  font-size: 14px;
}

.ix-qr-h {
  margin-top: 12px;
}

.ix-qr-h .ix-qr-img {
  width: 110px;
  height: 110px;
}

/* ============================================ */
/* 印刷最適化（A4、ページ番号、改ページ制御）       */
/* ============================================ */
/* ============================================ */
/* 診断書：神話的立ち位置                          */
/* ============================================ */

.report-lineage-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.report-lin-row {
  display: grid;
  grid-template-columns: 180px 1fr 50px;
  gap: 10px;
  align-items: center;
}

.report-lin-label {
  font-size: 12px;
  color: #2c1810;
  line-height: 1.35;
}

.report-lin-emoji { font-size: 14px; margin-right: 5px; }
.report-lin-sub { display: block; font-size: 9px; color: #8b6914; }

.report-lin-bar {
  background: #f4ead4;
  border: 1px solid #c9a86c;
  border-radius: 3px;
  height: 22px;
  overflow: hidden;
}

.report-lin-fill {
  height: 100%;
}

.report-lin-pct {
  font-size: 13px;
  font-weight: bold;
  color: #8b3818;
  text-align: right;
}

.report-lin-interp {
  background: #faf0e0;
  border-left: 3px solid #c9a86c;
  padding: 10px 14px;
  border-radius: 0 3px 3px 0;
  font-size: 12px;
  color: #2c1810;
  line-height: 1.9;
  white-space: pre-wrap;
}

.report-lin-interp strong { color: #8b3818; }

.report-lin-transition {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(244,215,110,0.15), rgba(155,89,182,0.1));
  border: 1px solid #c9a86c;
  border-radius: 4px;
  font-size: 12px;
  color: #2c1810;
  line-height: 1.7;
}

.report-lin-transition-label {
  font-size: 10px;
  color: #8b3818;
  letter-spacing: 0.2em;
  margin-bottom: 3px;
}

.report-folk-card {
  background: #fff;
  border: 1px solid var(--c, #5D4037);
  border-left: 4px solid var(--c, #5D4037);
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 3px;
}

.report-folk-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.report-folk-name {
  font-size: 15px;
  color: var(--c);
  font-weight: bold;
}

.report-folk-type {
  font-size: 10px;
  color: #8b6914;
  background: #faf0e0;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.1em;
}

.report-folk-note {
  font-size: 11px;
  color: #5d3a1e;
  line-height: 1.7;
  margin-bottom: 4px;
}

.report-folk-interp {
  font-size: 11px;
  color: #2c1810;
  padding-left: 10px;
  border-left: 2px solid var(--c);
  line-height: 1.8;
}

/* ============================================ */
/* 神話的立ち位置（系統分析・土着神）                */
/* ============================================ */

.cosmic-map-wrap {
  background: linear-gradient(180deg, rgba(244,215,110,0.04) 0%, rgba(0,0,0,0.2) 50%, rgba(155,89,182,0.04) 100%);
  border: 1px solid #5d4a2c;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cosmic-map-wrap svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: inline-block;
}

.report-cosmic-wrap {
  background: #faf6ed;
  border: 1px solid #c9a86c;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0 14px;
  text-align: center;
}

.report-cosmic-wrap svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: inline-block;
}

/* 補助バー（マンダラ下に小さく） */
.lineage-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 14px 0 20px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.lineage-mini-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.lineage-mini-label {
  color: #c9a86c;
}

.lineage-mini-bar {
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  height: 14px;
  overflow: hidden;
}

.lineage-mini-bar > div {
  height: 100%;
  border-radius: 3px 0 0 3px;
}

.lineage-mini-pct {
  text-align: right;
  color: #f4d76e;
  font-weight: bold;
}

.report-lineage-mini {
  background: #faf0e0;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 10px 0;
}

.report-mini-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  margin: 3px 0;
}

.report-mini-label { color: #5d3a1e; }

.report-mini-bar {
  background: #fff;
  border: 1px solid #d8c8a8;
  border-radius: 3px;
  height: 12px;
  overflow: hidden;
}

.report-mini-bar > div { height: 100%; }

.report-mini-pct {
  text-align: right;
  color: #8b3818;
  font-weight: bold;
}

/* 旧 lineage-radar スタイル（後方互換） */
.lineage-radar-wrap {
  background: rgba(0,0,0,0.2);
  border: 1px solid #5d4a2c;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0 20px;
  text-align: center;
}

.lineage-radar-wrap svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: inline-block;
}

.report-radar-wrap {
  background: #fff;
  border: 1px solid #c9a86c;
  border-radius: 6px;
  padding: 10px;
  margin: 10px 0 16px;
  text-align: center;
}

.report-radar-wrap svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: inline-block;
}

.lineage-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 20px;
}

.lineage-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.lineage-bar-label {
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.35;
}

.lineage-emoji {
  font-size: 16px;
  margin-right: 6px;
}

.lineage-sub {
  font-size: 10px;
  color: #8b6914;
  letter-spacing: 0.1em;
}

.lineage-bar-track {
  background: rgba(0,0,0,0.3);
  border: 1px solid #5d4a2c;
  border-radius: 4px;
  height: 26px;
  overflow: hidden;
}

.lineage-bar-fill {
  height: 100%;
  border-radius: 3px 0 0 3px;
  transition: width 0.4s;
}

.lineage-bar-pct {
  font-size: 14px;
  color: #f4d76e;
  font-weight: bold;
  text-align: right;
}

.lineage-interpretation {
  background: rgba(244,215,110,0.05);
  border-left: 3px solid #c9a86c;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.9;
  white-space: pre-wrap;
}

.lineage-interpretation strong {
  color: #f4d76e;
}

.lineage-transition {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(244,215,110,0.1), rgba(155,89,182,0.1));
  border: 1px solid #c9a86c;
  border-radius: 4px;
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.7;
}

.lineage-transition-label {
  font-size: 11px;
  color: #f4d76e;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.folk-deity-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--c, #5D4037);
  border-left: 4px solid var(--c, #5D4037);
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 4px;
}

.folk-deity-name {
  font-size: 16px;
  color: #f4d76e;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.folk-deity-type {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  color: var(--c);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.1em;
}

.folk-deity-note {
  font-size: 12px;
  color: #c9a86c;
  margin: 6px 0;
  line-height: 1.7;
}

.folk-deity-interp {
  font-size: 12px;
  color: #f4e4c1;
  padding-left: 10px;
  border-left: 2px solid var(--c);
  line-height: 1.8;
}

/* ============================================ */
/* 診断書：お名前の解読                            */
/* ============================================ */

.report-kanji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.report-kanji-card {
  background: #fff;
  border: 1px solid #d8c8a8;
  border-left: 3px solid #c94c1c;
  padding: 10px 12px;
  border-radius: 3px;
  text-align: center;
}

.report-kanji-card.unknown {
  border-style: dashed;
  opacity: 0.6;
}

.report-kanji-char {
  font-size: 42px;
  color: #2c1810;
  line-height: 1;
  font-family: serif;
  margin-bottom: 4px;
}

.report-kanji-strokes {
  font-size: 11px;
  color: #c94c1c;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.report-kanji-reading {
  font-size: 11px;
  color: #5d3a1e;
  margin: 3px 0;
}

.report-kanji-origin {
  font-size: 10px;
  color: #2c1810;
  text-align: left;
  margin-top: 4px;
  line-height: 1.6;
}

.report-kanji-deities {
  font-size: 10px;
  color: #8b3818;
  margin-top: 4px;
  font-weight: bold;
}

.report-kanji-note {
  font-size: 10px;
  color: #8b6914;
  font-style: italic;
}

.report-five-grids {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 11px;
}

.report-five-grids th {
  background: #f4ead4;
  color: #2c1810;
  padding: 8px;
  text-align: left;
  font-weight: normal;
  border: 1px solid #c9a86c;
}

.report-five-grids td {
  padding: 10px 8px;
  border: 1px solid #d8c8a8;
  color: #2c1810;
}

.rgrid-note { font-size: 9px; color: #8b6914; }
.rgrid-num { font-size: 18px; color: #8b3818; font-weight: bold; text-align: center; }
.rgrid-label { font-size: 10px; display: block; }
.rfortune-dai { color: #c94c1c; font-weight: bold; text-align: center; }
.rfortune-kichi { color: #27AE60; text-align: center; }
.rfortune-kyo { color: #8b4040; text-align: center; }
.rfortune-haran { color: #E67E22; text-align: center; }

.report-name-warning {
  background: #faf0e0;
  border-left: 3px solid #c9a86c;
  padding: 8px 12px;
  font-size: 11px;
  color: #5d3a1e;
  font-style: italic;
  margin: 10px 0;
}

.report-name-interp {
  background: #faf0e0;
  border-left: 3px solid #c94c1c;
  padding: 10px 14px;
  font-size: 12px;
  color: #2c1810;
  line-height: 1.9;
  white-space: pre-wrap;
}

.report-name-interp strong { color: #8b3818; }

/* ============================================ */
/* お名前の解読（画数・由来）                      */
/* ============================================ */

.name-kanji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.name-kanji-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid #5d4a2c;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}

.name-kanji-card.unknown {
  border-style: dashed;
  opacity: 0.6;
}

.name-kanji-char {
  font-size: 48px;
  color: #f4d76e;
  font-family: "Yu Mincho", "游明朝", "MS PMincho", serif;
  line-height: 1;
  margin-bottom: 6px;
}

.name-kanji-strokes {
  font-size: 12px;
  color: #c94c1c;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.name-kanji-reading {
  font-size: 12px;
  color: #c9a86c;
  margin: 4px 0;
}

.name-kanji-origin {
  font-size: 11px;
  color: #e8c878;
  line-height: 1.6;
  margin: 6px 0;
  text-align: left;
}

.name-kanji-deities {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}

.name-kanji-note {
  font-size: 11px;
  color: #8b6914;
  font-style: italic;
}

.five-grids-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.five-grids-table th {
  background: rgba(201,168,108,0.15);
  color: #f4d76e;
  padding: 10px;
  text-align: left;
  letter-spacing: 0.05em;
  font-weight: normal;
  border-bottom: 1px solid #5d4a2c;
}

.five-grids-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(93,74,44,0.4);
  color: #f4e4c1;
  vertical-align: middle;
}

.five-grids-table .grid-note {
  font-size: 10px;
  color: #8b6914;
  display: block;
  margin-top: 2px;
}

.five-grids-table .grid-num {
  font-size: 22px;
  color: #f4d76e;
  font-weight: bold;
  text-align: center;
  width: 70px;
}

.five-grids-table .grid-label {
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

.fortune-dai {
  color: #f4d76e;
  font-weight: bold;
  text-align: center;
  width: 100px;
}

.fortune-kichi {
  color: #4CAF50;
  text-align: center;
  width: 100px;
}

.fortune-kyo {
  color: #c94c1c;
  text-align: center;
  width: 100px;
}

.fortune-haran {
  color: #FF9800;
  text-align: center;
  width: 100px;
}

.fortune-other {
  color: #c9a86c;
  text-align: center;
  width: 100px;
}

.name-unknown-warning {
  background: rgba(244,215,110,0.05);
  border-left: 3px solid #c9a86c;
  padding: 10px 14px;
  font-size: 12px;
  color: #c9a86c;
  font-style: italic;
  margin: 10px 0;
}

.name-interpretation {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(244,215,110,0.05);
  border-left: 3px solid #c9a86c;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.9;
  white-space: pre-wrap;
}

.name-interpretation strong { color: #f4d76e; }

/* ============================================ */
/* 家紋（入力プレビュー・結果カード・診断書）       */
/* ============================================ */

.kamon-preview {
  margin: 8px 0 4px;
}

.kamon-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--c, #c9a86c);
  border-left-width: 4px;
  padding: 10px 14px;
  border-radius: 4px;
}

.kamon-preview-svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--c, #f4d76e);
}

.kamon-preview-svg svg { width: 100%; height: 100%; }

.kamon-preview-body { flex: 1; min-width: 0; }

.kamon-preview-name {
  font-size: 16px;
  color: #f4d76e;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.kamon-preview-cat {
  font-size: 11px;
  color: var(--c, #c9a86c);
  letter-spacing: 0.15em;
}

.kamon-preview-lin {
  font-size: 12px;
  color: #e8c878;
  margin-top: 2px;
}

.kamon-preview-unknown {
  font-size: 12px;
  color: #8b6914;
  font-style: italic;
  padding: 8px 12px;
  border: 1px dashed #5d4a2c;
  border-radius: 4px;
}

/* 結果セクションの家紋カード（ダーク背景） */
.kamon-result-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--c);
  border-left: 4px solid var(--c);
  padding: 16px 20px;
  border-radius: 6px;
}

.kamon-result-svg {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  color: var(--c);
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-sizing: border-box;
}

.kamon-result-svg svg { width: 100%; height: 100%; }

.kamon-result-body { flex: 1; min-width: 0; line-height: 1.7; }

.kamon-result-name {
  font-size: 24px;
  color: var(--c);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.kamon-result-cat {
  font-size: 11px;
  color: #c9a86c;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.kamon-result-lineage,
.kamon-result-deities,
.kamon-result-notable {
  font-size: 13px;
  color: #f4e4c1;
  margin: 4px 0;
}

.kamon-result-lineage strong,
.kamon-result-deities strong,
.kamon-result-notable strong {
  color: #c9a86c;
  font-weight: normal;
  margin-right: 8px;
}

.kamon-result-note {
  font-size: 12px;
  color: #c9a86c;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.7;
}

.kamon-result-interpretation {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(244,215,110,0.05);
  border-left: 3px solid var(--c);
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.8;
}

.kamon-result-unknown {
  background: rgba(255,255,255,0.05);
  border: 1px dashed #5d4a2c;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13px;
  color: #c9a86c;
  font-style: italic;
}

/* 表紙の家紋 */
.cover-kamon {
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cover-kamon-svg {
  width: 100px;
  height: 100px;
  color: var(--c, #8b3818);
}

.cover-kamon-svg svg { width: 100%; height: 100%; }

.cover-kamon-name {
  font-size: 13px;
  color: #5d3a1e;
  letter-spacing: 0.15em;
}

/* 診断書内の家紋ブロック */
.report-kamon-block {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c);
  border-left: 4px solid var(--c);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 10px 0;
}

.report-kamon-svg {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  color: var(--c);
  background: #faf0e0;
  border-radius: 50%;
  padding: 10px;
  box-sizing: border-box;
}

.report-kamon-svg svg { width: 100%; height: 100%; }

.report-kamon-body { flex: 1; min-width: 0; }

.report-kamon-name {
  font-size: 22px;
  color: var(--c);
  letter-spacing: 0.1em;
}

.report-kamon-cat {
  font-size: 11px;
  color: #8b6914;
  letter-spacing: 0.2em;
  margin: 2px 0 8px;
}

.report-kamon-lineage,
.report-kamon-notable,
.report-kamon-note,
.report-kamon-interpretation {
  font-size: 12px;
  color: #2c1810;
  line-height: 1.7;
  margin: 3px 0;
}

.report-kamon-note {
  font-style: italic;
  color: #5d3a1e;
}

.report-kamon-interpretation {
  background: #faf0e0;
  border-left: 2px solid var(--c);
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: 0 3px 3px 0;
}

/* ============================================ */
/* アクセスゲート（パスワード認証）                 */
/* ============================================ */

body.access-locked > .container,
body.access-locked > #report-view,
body.access-locked > .paywall-modal,
body.access-locked > #ix-stage {
  display: none !important;
}

.access-gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #2c1810 0%, #1a0f0a 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.access-gate-inner {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid #c9a86c;
  border-radius: 8px;
  padding: 50px 40px;
  position: relative;
}

.access-gate-inner::before, .access-gate-inner::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid #c9a86c;
}

.access-gate-inner::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.access-gate-inner::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.access-gate-ornament {
  font-size: 56px;
  color: #c94c1c;
  margin-bottom: 20px;
  line-height: 1;
}

.access-gate-shuin {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.95;
}

.access-gate-title {
  font-size: 28px;
  color: #f4d76e;
  letter-spacing: 0.25em;
  margin: 0 0 8px;
  font-weight: normal;
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
}

.access-gate-subtitle {
  font-size: 12px;
  color: #c9a86c;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  line-height: 1.7;
}

.access-gate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.access-gate-form input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid #5d4a2c;
  color: #f4e4c1;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 3px;
  font-family: inherit;
  outline: none;
  letter-spacing: 0.05em;
}

.access-gate-form input:focus {
  border-color: #c9a86c;
  box-shadow: 0 0 12px rgba(201,168,108,0.3);
}

.access-gate-form button {
  margin: 0;
  padding: 12px 24px;
  font-size: 15px;
}

.access-gate-msg {
  font-size: 13px;
  margin: 6px 0;
  min-height: 20px;
  letter-spacing: 0.05em;
}

.access-gate-msg.success {
  color: #4CAF50;
}

.access-gate-msg.error {
  color: #ff7575;
}

.access-gate-hint {
  font-size: 11px;
  color: #8b6914;
  margin-top: 14px;
  font-style: italic;
}

@media (max-width: 480px) {
  .access-gate-inner {
    padding: 32px 24px;
  }
  .access-gate-title {
    font-size: 22px;
  }
  .access-gate-form {
    flex-direction: column;
  }
}

/* ============================================ */
/* 神様カレンダー                                  */
/* ============================================ */

.calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-today {
  background: linear-gradient(135deg, rgba(244,215,110,0.08), rgba(201,168,108,0.04));
  border: 1px solid #c9a86c;
  border-radius: 6px;
  padding: 16px 18px;
}

.cal-today-date {
  font-size: 14px;
  color: #f4d76e;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.cal-today-season {
  font-size: 12px;
  color: #c9a86c;
  font-style: italic;
  margin-bottom: 12px;
}

.cal-today-deity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.2);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 8px 0;
}

.cal-today-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.cal-today-deity-label {
  font-size: 11px;
  color: #c9a86c;
  letter-spacing: 0.15em;
}

.cal-today-deity-name {
  font-size: 16px;
  color: #f4d76e;
  margin: 2px 0;
}

.cal-today-deity-reason {
  font-size: 12px;
  color: #e8c878;
}

.cal-main-deity-hint {
  background: rgba(244,215,110,0.1);
  border-left: 3px solid #f4d76e;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #f4e4c1;
  line-height: 1.7;
  margin-top: 10px;
}

.cal-section-title {
  font-size: 15px;
  color: #e8c878;
  margin: 0 0 12px 0;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #5d4a2c;
  padding-bottom: 6px;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-event {
  display: flex;
  gap: 14px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid #c9a86c;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
}

.cal-event-date {
  flex-shrink: 0;
  width: 110px;
  font-size: 12px;
  color: #f4d76e;
  font-weight: bold;
}

.cal-event-body {
  flex: 1;
  min-width: 0;
}

.cal-event-name {
  font-size: 14px;
  color: #f4e4c1;
  margin-bottom: 2px;
}

.cal-event-note {
  font-size: 11px;
  color: #c9a86c;
  line-height: 1.7;
}

.cal-event-deities {
  margin-top: 4px;
}

/* ============================================ */
/* 自動保存・復元                                  */
/* ============================================ */

.restore-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(244,215,110,0.18) 0%, rgba(201,76,28,0.12) 100%);
  border: 1px solid #c9a86c;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0 24px;
  font-size: 14px;
  color: #f4e4c1;
}

.restore-banner > span {
  flex: 1;
  min-width: 200px;
}

.restore-banner button {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.autosave-indicator {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: rgba(39,174,96,0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.05em;
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.autosave-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.flash-message {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(39,174,96,0.95);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.flash-message.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flash-error { background: rgba(220,80,80,0.95); }
.flash-info { background: rgba(100,100,200,0.95); }

/* ============================================ */
/* モバイル最適化（〜768px）                       */
/* ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 20px 12px;
  }

  header {
    padding: 24px 0 20px;
    margin-bottom: 24px;
  }

  header::before, header::after {
    font-size: 22px;
  }
  header::before { left: 4%; }
  header::after { right: 4%; }

  h1 {
    font-size: 24px;
    letter-spacing: 0.15em;
  }

  .subtitle {
    font-size: 12px;
    padding: 0 12px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 15px;
  }

  .form-section {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 4px;
  }

  .form-row {
    flex-direction: column;
    gap: 6px;
  }

  .form-row > .form-group {
    min-width: 0;
    flex: 1 1 100%;
  }

  /* タイムライン行：4列 → 2行に再構成 */
  .timeline-row {
    grid-template-columns: 1fr 1fr 50px;
    grid-template-areas:
      "year age del"
      "place place place"
      "event event event";
    gap: 6px;
  }
  .timeline-row .tl-year { grid-area: year; }
  .timeline-row .tl-age { grid-area: age; }
  .timeline-row .tl-place { grid-area: place; }
  .timeline-row .tl-event { grid-area: event; }
  .timeline-row > button { grid-area: del; }

  .workplace-row {
    grid-template-columns: 1fr 1fr 50px;
    grid-template-areas:
      "name name del"
      "place place place"
      "note note note";
    gap: 6px;
  }
  .workplace-row .wp-name { grid-area: name; }
  .workplace-row .wp-place { grid-area: place; }
  .workplace-row .wp-note { grid-area: note; }
  .workplace-row > button { grid-area: del; }

  .meeting-row {
    grid-template-columns: 1fr 80px 50px;
    grid-template-areas:
      "place place del"
      "who who who"
      "year year year"
      "note note note";
    gap: 6px;
  }
  .meeting-row .mt-place { grid-area: place; }
  .meeting-row .mt-who { grid-area: who; }
  .meeting-row .mt-year { grid-area: year; }
  .meeting-row .mt-note { grid-area: note; }
  .meeting-row > button { grid-area: del; }

  .grandparent-row {
    grid-template-columns: 1fr 50px;
    grid-template-areas:
      "rel del"
      "origin origin"
      "residence residence"
      "note note";
    gap: 6px;
  }
  .grandparent-row .gp-relation { grid-area: rel; }
  .grandparent-row .gp-origin { grid-area: origin; }
  .grandparent-row .gp-residence { grid-area: residence; }
  .grandparent-row .gp-note { grid-area: note; }
  .grandparent-row > button { grid-area: del; }

  .hardship-row-header {
    grid-template-columns: 1fr 50px;
    grid-template-areas:
      "cat del"
      "period period"
      "desc desc";
    gap: 6px;
  }
  .hardship-row-header .hs-category { grid-area: cat; }
  .hardship-row-header .hs-period { grid-area: period; }
  .hardship-row-header .hs-desc { grid-area: desc; }
  .hardship-row-header > button { grid-area: del; }

  .hardship-row-people, .hardship-row-places {
    grid-template-columns: 1fr;
  }

  .concerns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ボタンサイズ調整（タッチ操作対応） */
  button {
    padding: 11px 18px;
    font-size: 14px;
    min-height: 44px;
    box-sizing: border-box;
  }
  button.primary {
    padding: 13px 24px;
    font-size: 15px;
  }
  button.danger {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 12px;
  }
  .add-btn {
    padding: 10px 16px;
    min-height: 40px;
    font-size: 13px;
  }

  input[type="text"], input[type="number"], textarea, select {
    font-size: 16px; /* iOS Safari ズーム防止 */
    padding: 10px 12px;
  }

  /* テーブルは横スクロール */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
  }

  /* 結果セクション */
  .result-section {
    padding: 14px;
  }

  .shrine-card {
    padding: 10px 12px;
  }

  .shrine-name {
    font-size: 14px;
  }

  /* モーダル */
  .paywall-modal-inner {
    padding: 18px 16px;
    max-height: 92vh;
    max-width: 96vw;
    width: 96vw;
  }

  .paywall-title {
    font-size: 20px;
  }

  /* 価格カード：縦並び */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* LINEセクション：縦並び */
  .line-flow {
    flex-direction: column;
    align-items: center;
  }

  .line-qr-img {
    width: 160px;
    height: 160px;
  }

  /* 画像生成ボタン：縦並び */
  .image-format-grid {
    grid-template-columns: 1fr;
  }

  /* シェアモーダル */
  .share-url-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .share-url-row input {
    flex: 1 1 100%;
  }

  .share-sns-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 診断書：スマホで縮小表示 */
  .report-toolbar {
    padding: 10px 8px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .report-toolbar button {
    font-size: 13px;
    padding: 9px 14px;
    min-height: 40px;
  }

  .report-page {
    padding: 24px 18px;
    min-height: auto;
    margin: 12px 8px;
    font-size: 13px;
  }

  .cover-title {
    font-size: 36px;
    letter-spacing: 0.2em;
  }

  .cover-surname {
    font-size: 28px;
  }

  .report-h2 {
    font-size: 20px;
  }

  .report-h2 .h2-mark {
    font-size: 22px;
  }

  /* 主神カード：縦並び */
  .main-deity-hero {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }

  .main-deity-portrait {
    width: 110px;
    height: 110px;
    padding: 12px;
  }

  .main-deity-name {
    font-size: 28px;
  }

  .md-meta-grid {
    grid-template-columns: 1fr;
  }

  .md-shrines-grid {
    grid-template-columns: 1fr;
  }

  .md-affinity {
    grid-template-columns: 1fr;
  }

  /* 副神：縦並び */
  .sub-deity-columns {
    grid-template-columns: 1fr;
  }

  .sub-deity-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .sub-deity-portrait {
    width: 60px;
    height: 60px;
  }

  /* 神様カードグリッド */
  .deity-grid {
    grid-template-columns: 1fr;
  }

  /* 出会いと仕事グリッド */
  .meeting-work-grid {
    grid-template-columns: 1fr;
  }

  /* チャート：オーバーフロー */
  .chart-container {
    overflow-x: auto;
  }

  /* 不調期：神様対比は縦並び */
  .deity-comparison, .hardship-comparison-report {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .deity-comparison .vs, .cmp-vs {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  /* 角飾りを小さく */
  .report-page::before, .report-page::after {
    width: 16px;
    height: 16px;
  }

  /* 管理画面トリガー */
  .admin-trigger {
    bottom: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  /* シェアバナー */
  .shared-banner {
    padding: 10px;
    font-size: 13px;
  }
}

/* スマホ縦狭め（〜480px） */
@media (max-width: 480px) {
  h1 { font-size: 22px; }
  .cover-title { font-size: 30px; }
  .cover-surname { font-size: 24px; }
  .main-deity-name { font-size: 24px; }
  .report-page { padding: 18px 12px; }
  .concerns-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #report-view, #report-view * {
    visibility: visible;
  }
  #report-view {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    background: white;
    padding: 0;
    width: 100%;
  }
  .report-toolbar,
  .paywall-modal,
  .paywall-cta-block,
  .pricing-grid,
  #unlock-btn,
  .lock-status-badge {
    display: none !important;
  }
  /* 各章は新しいページ */
  .report-page {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 18mm 16mm;
    min-height: auto;
    page-break-after: always;
    page-break-inside: avoid;
    background: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .report-page:last-child {
    page-break-after: auto;
  }
  /* 表紙の角飾りは印刷でも表示 */
  .report-page::before,
  .report-page::after {
    border-color: #8b3818 !important;
  }
  /* 章タイトル後を改ページしない */
  .report-h2, .report-h3 {
    page-break-after: avoid;
  }
  /* チャート、テーブル、カードは改ページしない */
  .chart-container,
  .report-table,
  .report-callout,
  .deity-card,
  .mw-card,
  .report-pattern,
  .report-shrine-card,
  .md-occurrence,
  .sub-deity-block,
  .report-concern,
  .report-hardship,
  .worship-step,
  .worship-special,
  .pricing-card {
    page-break-inside: avoid;
  }
  /* ペイウォール章は印刷時に非表示 */
  .paywall-page {
    display: none;
  }
  /* ヘッダの色を確実に印刷 */
  .chapter-num-decor,
  .hardship-cat,
  .worship-avoid-cond,
  .paywall-chapter-num {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
  /* 主要な色付き要素も */
  .deity-tag, .md-tag, .md-meta-label, .deity-card-name,
  .callout-label, .callout-title, .report-h2,
  .main-deity-name, .sub-deity-name, .pattern-type-label,
  .md-aff-label, .worship-special-title,
  .report-shrine-name, .md-shrine-name {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* リンクのアンダーライン無し */
  a {
    text-decoration: none;
    color: inherit;
  }
  @page {
    size: A4;
    margin: 0;
  }
  @page :first {
    margin: 0;
  }
}

/* ── 五行相性 ─────────────────────────── */
.gogyo-box {
  margin: 18px 0; padding: 16px 20px; border: 1px solid rgba(212,175,55,.35);
  border-radius: 10px; background: rgba(212,175,55,.07);
}
.gogyo-title { font-weight: 700; font-size: 14px; letter-spacing: .2em; margin-bottom: 12px; color: #d4af37; }
.gogyo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gogyo-side { font-size: 14px; font-weight: 600; color: #f4e4c1; }
.gogyo-note { font-size: 11px; color: #b8a888; font-weight: 400; margin-top: 3px; }
.gogyo-vs { font-size: 12px; border: 1px solid #d4af37; border-radius: 999px; padding: 2px 12px; color: #d4af37; white-space: nowrap; }
.gogyo-badge {
  display: inline-block; width: 27px; height: 27px; line-height: 27px; text-align: center;
  border-radius: 50%; background: var(--gg); color: #fff; font-weight: 700; margin: 0 3px;
  font-size: 14px; vertical-align: middle;
}
.gogyo-rank { margin-top: 12px; font-weight: 700; color: #f4e4c1; }
.gogyo-text { font-size: 13px; margin-top: 4px; line-height: 1.8; color: #e8d9bb; }
.gogyo-empty .gogyo-text { color: #9a8d76; }
.gogyo-inline { margin-top: 7px; font-size: 12px; color: #e8d9bb; }
.gogyo-inline-rank { font-weight: 700; margin-left: 6px; }
