@charset "UTF-8";
/* public/assets/scss/result.scss */
:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --fg: #1b1b1b;
  --muted: rgba(27, 27, 27, .64);
  --border: rgba(27, 27, 27, .12);
  --shadow: 0 10px 24px rgba(0, 0, 0, .06);
  --radius: 18px;
  --maxW: 720px;
  --padX: 16px;
  --padY: 18px;
  --gold: #c2ae6d;
  --gold-ink: #111;
  --focus: rgba(194, 174, 109, .35);
  /* 余白の基準（統一用） */
  --gap: 14px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  height: auto;
  font-family: "Hina Mincho", ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.result-body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "Hina Mincho", ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 18px var(--padX) 44px;
}

/* ヘッダー（PDF寄せ） */
.result-header {
  text-align: center;
  margin: 14px 0 var(--gap);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

p {
  margin: 10px 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* =========================
   “カードは1囲いまで”を徹底するため、
   カードは .card のみで管理
========================= */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--padY) var(--padX);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  margin: 0 0 var(--gap);
}

/* 旧: article/section へ直当てしていたものを解除（内側カード化防止） */
article,
section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  margin: 0;
}

/* 区切り線（PDFの黒線寄せ。余白は統一） */
.divider {
  border: 0;
  height: 1px;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(var(--border)), to(transparent));
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 0 var(--gap);
}

/* リストの整形 */
.list {
  margin: 0;
  padding-left: 1.1em;
}

.list li {
  margin: 8px 0;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:active {
  opacity: 0.75;
}

.result-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================
   profile (64px)
========================= */
.profile-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.profile-name {
  margin: 0;
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 64px;
          flex: 0 0 64px;
  max-width: none;
}

.thumb--preview {
  display: none;
}

.input--name {
  width: auto;
  min-width: 10em;
}

.input--file {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
}

.btn--compact {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
}

.muted {
  color: var(--muted);
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================
   画像回り込み（サムネ以外）
   - 横幅 50%
========================= */
.media__img,
.media__img--small {
  float: right;
  width: 50%;
  max-width: 50%;
  height: auto;
  margin: 2px 0 10px 12px;
}

/* カード内でfloatを閉じる */
.card::after {
  content: "";
  display: block;
  clear: both;
}

/* 狭い時は1列 */
@media (max-width: 420px) {
  .media__img,
  .media__img--small {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 10px;
  }
}
/* link row */
.linkrow {
  margin: 10px 0 0;
}

.sep {
  opacity: 0.55;
  padding: 0 6px;
}

/* =========================
   地元情報（内側カードなし）
========================= */
.local-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.local-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.local-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.local-hero__title {
  margin: 0 0 6px;
}

.local-hero__text {
  margin: 10px 0;
}

.local-hero__actions {
  margin: 12px 0 0;
}

/* いまちず最優先ボタン */
.local-hero__btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #c2ae6d;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.local-hero__btn:active {
  opacity: 0.85;
}

/* =========================
   Tips: pills常時 + detailsトグル
========================= */
.tips-pills {
  margin: 10px 0 14px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  margin: 0 6px 6px 0;
  color: rgba(27, 27, 27, 0.78);
}

.tips-details {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.tips-details:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.tips-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.tips-details summary::-webkit-details-marker {
  display: none;
}

.tips-details summary::after {
  content: "＋";
  float: right;
  opacity: 0.7;
}

.tips-details[open] summary::after {
  content: "－";
}

.tips-content {
  margin-top: 10px;
}

.tips-ol {
  margin: 8px 0 10px;
  padding-left: 1.2em;
}

.tips-ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
}

/* =========================
   協力（カード外）
========================= */
.cooperation {
  margin: 4px 0 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* =========================
   フッタークレジット（layout側の要素をセンター）
========================= */
.result-footer {
  text-align: center;
}

.result-credit {
  display: inline-block;
  text-align: center;
}

/* desktop微調整 */
@media (min-width: 768px) {
  :root {
    --padX: 20px;
    --padY: 22px;
    --gap: 16px;
  }
  h1 {
    font-size: 1.7rem;
  }
}
/* =========================
   Local hero button (gold)
========================= */
.local-hero__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.local-hero__btn:hover {
  -webkit-filter: brightness(0.98);
          filter: brightness(0.98);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.local-hero__btn:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* =========================
   Result: profile register
========================= */
.result-register {
  margin-top: 14px;
}

.result-register__lead {
  color: var(--muted);
  margin: 6px 0 14px;
}

#resultRegisterForm {
  display: -ms-grid;
  display: grid;
  gap: 12px;
}

.form-row {
  display: -ms-grid;
  display: grid;
  gap: 8px;
}

.form-label {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  outline: none;
  -webkit-box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
          box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
  border-color: rgba(194, 174, 109, 0.55);
  -webkit-box-shadow: 0 0 0 6px var(--focus), 0 10px 22px rgba(0, 0, 0, 0.06);
          box-shadow: 0 0 0 6px var(--focus), 0 10px 22px rgba(0, 0, 0, 0.06);
}

.form-help {
  color: var(--muted);
  font-size: 0.92rem;
}

.file {
  display: -ms-grid;
  display: grid;
  gap: 10px;
}

.file__controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.file__input {
  /* 見た目は隠して、labelをボタンにする */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
          box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.file__btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.file__btn:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
          box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.result-register__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 6px;
}

/* 送信ボタンは local-hero__btn の見た目を使う */
.result-register__submit {
  border: none;
  cursor: pointer;
}

input:focus {
  outline: none;
  border-color: #c2ae6d;
  -webkit-box-shadow: 0 0 0 2px rgba(194, 174, 109, 0.2);
          box-shadow: 0 0 0 2px rgba(194, 174, 109, 0.2);
}

/* ===== profile-card (register ui) ===== */
.profile-card {
  /* プレビューはsrcが入るまで見せない（JSでsrc入ったら表示される想定） */
  /* file input を“それっぽく”する（構造変更なしでできる範囲） */
  /* 「登録」ボタンを、いまちずボタンと同じ “金×黒” に寄せる（クラスは変えない） */
}
.profile-card .profile-form {
  margin-top: 12px;
}
.profile-card .profile-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.profile-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  -o-object-fit: cover;
     object-fit: cover;
}
.profile-card .thumb--preview {
  display: none;
}
.profile-card .thumb--preview[src]:not([src=""]) {
  display: block;
}
.profile-card .input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  padding: 10px 12px;
  outline: none;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.profile-card .input:focus {
  border-color: var(--gold);
  -webkit-box-shadow: 0 0 0 4px var(--focus);
          box-shadow: 0 0 0 4px var(--focus);
}
.profile-card .input--name {
  min-width: 220px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 240px;
          flex: 1 1 240px;
}
.profile-card .input--file {
  padding: 8px 10px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 260px;
          flex: 1 1 260px;
  min-width: 240px;
}
.profile-card .input--file::-webkit-file-upload-button {
  height: 28px;
  margin-right: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
}
.profile-card .input--file::file-selector-button {
  height: 28px;
  margin-right: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
}
.profile-card .input--file::-webkit-file-upload-button:hover {
  border-color: rgba(27, 27, 27, 0.22);
}
.profile-card .input--file::file-selector-button:hover {
  border-color: rgba(27, 27, 27, 0.22);
}
.profile-card .btn.btn--compact {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--gold);
  color: #111;
  font-weight: 800;
  -webkit-box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.profile-card .btn.btn--compact:hover {
  -webkit-filter: brightness(0.98);
          filter: brightness(0.98);
}
.profile-card .btn.btn--compact:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.local-block::after {
  content: "";
  display: block;
  clear: both;
}

/* local-info 用 画像サイズ調整（構造は触らない） */
.media__img {
  max-width: 200px;
  width: 50%;
  height: auto;
}