/* ===== 下層ページ共通（app.css） ===== */

.flash {
  background: #E8F5EE;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px 20px;
  border-bottom: 1px solid #CBE6D4;
}

/* ページ見出し帯 */
.page-head {
  background: var(--green-deep);
  color: #fff;
  padding: 26px 0;
}

.page-title {
  font-size: 22px;
  font-weight: 900;
}

.page-sub {
  font-size: 12px;
  color: #A5D6A7;
  margin-top: 4px;
}

.wrap.narrow {
  max-width: 560px;
}

.center {
  text-align: center;
}

/* カード・フォーム */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 11px;
  border-radius: 8px;
  color: #999;
  background: #F2F2F2;
}

.tab.active {
  background: var(--green-deep);
  color: #fff;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.field {
  width: 100%;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid #DDD;
  border-radius: 8px;
  background: #FAFAFA;
  font-family: inherit;
}

.field:focus {
  outline: 2px solid var(--green-dark);
  background: #fff;
}

.field-short {
  max-width: 220px;
}

.req {
  color: var(--red);
}

.btn-block {
  width: 100%;
  margin-top: 22px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 14px;
  line-height: 1.7;
}

.form-note a {
  color: var(--green-dark);
  text-decoration: underline;
}

.error-box {
  background: #FDF3F2;
  border: 1px solid #F4D2CE;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.error-box p {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #555;
  margin-top: 18px;
  line-height: 1.7;
}

.check-row input {
  margin-top: 3px;
}

/* 結果表示 */
.result-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.result-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.result-text {
  font-size: 14px;
  color: #444;
  line-height: 2;
  margin-bottom: 22px;
}

.big-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--yellow-deep);
}

/* チェックイン完了 */
.checkin-done {
  background: var(--green-deep);
  color: #fff;
  padding: 56px 0 64px;
  min-height: 60vh;
}

.done-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-deep);
  font-size: 48px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border: 5px solid var(--yellow);
}

.done-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.done-sub {
  font-size: 13px;
  color: #A5D6A7;
  margin-bottom: 26px;
}

.done-card {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 26px;
}

.done-spot-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow-deep);
  margin-bottom: 4px;
}

.done-spot-name {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 4px;
}

.done-spot-area {
  font-size: 12px;
  color: #999;
}

.done-progress {
  font-size: 14px;
  margin-bottom: 10px;
}

.checkin-done .big-num {
  color: var(--yellow);
}

.progress-bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--yellow);
  border-radius: 6px;
}

/* マイページ */
.progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 26px;
  margin-bottom: 18px;
}

.progress-label {
  font-size: 12px;
  color: #A5D6A7;
  margin-bottom: 4px;
}

.progress-num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
}

.progress-num span {
  font-size: 20px;
  color: #A5D6A7;
  font-weight: 700;
}

.progress-msg {
  font-size: 12px;
  color: var(--yellow);
  margin-top: 8px;
  font-weight: 700;
}

.progress-circle {
  --p: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--yellow) calc(var(--p)*1%), rgba(255, 255, 255, .2) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circle::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--green-deep);
}

.progress-circle span {
  position: relative;
  font-size: 16px;
  font-weight: 900;
}

.apply-banner {
  margin-bottom: 30px;
}

.apply-banner p {
  font-size: 13px;
  text-align: center;
  color: #444;
}

.apply-banner a {
  color: var(--green-dark);
  text-decoration: underline;
}

.sub-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.stamp {
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #F2F2F2;
  border: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  text-align: center;
}

.stamp.got {
  background: #FFF3E0;
  border: 2px solid var(--yellow);
}

.stamp-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  background: #E0E0E0;
  color: #fff;
}

.stamp.got .stamp-mark {
  background: var(--yellow);
}

.stamp-name {
  font-size: 9px;
  color: #999;
  line-height: 1.3;
  word-break: break-all;
}

.stamp.got .stamp-name {
  color: #B8860B;
  font-weight: 700;
}

/* 応募 */
.prize-info {
  background: #FFF8E1;
  border: 1px solid #F0DCA8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #6B5310;
  line-height: 1.9;
}

.prize-info-title {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
}

.prize-info ul {
  margin: 8px 0 0 1.2em;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 18px;
}

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

.faq-q {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.faq-a {
  font-size: 13px;
  color: #555;
  line-height: 1.9;
  padding: 0 18px 16px 56px;
}

@media(min-width:640px) {
  .stamp-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stamp-name {
    font-size: 10px;
  }
}

/* ===== スポット詳細 ===== */
a.spot-card {
  transition: transform .15s, box-shadow .15s;
}

a.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 107, 51, .12);
}

a.stamp {
  transition: transform .15s;
}

a.stamp:hover {
  transform: translateY(-2px);
}

.spot-detail-hero {
  position: relative;
  background: var(--green-bg);
}

.spot-detail-hero img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.spot-detail-ph {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
}

.sd-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  color: #3A2C05;
  font-weight: 900;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}

.sd-visited {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
}

.sd-body {
  padding-top: 28px;
}

.sd-area {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 4px;
}

.sd-name {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
}

.sd-official {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.sd-heading {
  font-size: 15px;
  font-weight: 900;
  color: var(--green-deep);
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--green-dark);
}

.sd-desc p {
  font-size: 14px;
  color: #38463D;
  line-height: 2;
}

.sd-gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  margin-top: 22px;
  align-items: start;
}

.sd-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sd-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.sd-info th {
  width: 34%;
  text-align: left;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-pale);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sd-info td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
}

.sd-info tr:last-child th,
.sd-info tr:last-child td {
  border-bottom: none;
}

.sd-info a {
  color: var(--green-dark);
  text-decoration: underline;
}

.sd-holiday {
  color: var(--red);
  font-weight: 700;
}

.sd-caution {
  margin-top: 14px;
  background: #FDF3F2;
  border: 1px solid #F4D2CE;
  border-radius: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
}

.sd-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.sd-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.sd-checkin-note {
  margin-top: 32px;
  background: #FFF8E1;
  border: 1px solid #F0DCA8;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: #6B5310;
  line-height: 1.9;
}

.sd-checkin-title {
  font-weight: 900;
  margin-bottom: 4px;
}

.sd-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
}

.sd-pager a {
  color: var(--green-dark);
}

.sd-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--gray);
  text-decoration: underline;
}

@media(min-width:640px) {

  .sd-map iframe {
    height: 340px;
  }
}

/* テストモード表示 */
.test-banner {
  background: #FFF3F3;
  color: #CC0000;
  border-bottom: 1px solid #F4D2CE;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
}

/* ===== QR読み取り ===== */
.scan-cta {
  display: block;
  text-align: center;
  background: var(--green-deep);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 0 0 26px;
}

.sd-checkin-note .scan-cta {
  margin: 14px 0 0;
}

.scan-section {
  padding-top: 28px;
}

.scan-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #1A1A1A;
  border-radius: 16px;
  overflow: hidden;
}

.scan-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-frame {
  position: absolute;
  inset: 18%;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.scan-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1A1A;
  padding: 0 24px;
}

.scan-start[hidden] {
  display: none;
}

.scan-start .btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.scan-status {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--green-deep);
  margin: 16px 0;
}

.scan-status.is-error {
  color: var(--red);
}

.scan-help {
  background: #FFF8E1;
  border: 1px solid #F0DCA8;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: #6B5310;
  line-height: 1.9;
  margin-bottom: 20px;
}

.scan-help-title {
  font-weight: 900;
  margin-bottom: 4px;
}

/* ===== スタンプ画像（施設ごとのスタンプ） ===== */
.stamp:has(.stamp-img) {
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}

.stamp.got:has(.stamp-img) {
  background: transparent;
  border: none;
}

.stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 未取得のスタンプは、グレーの円と番号だけを表示する（絵柄は見せない） */
.stamp.is-locked {
  background: transparent;
  border: none;
  padding: 0;
  gap: 0;
}

.stamp-blank {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #EDEFEE;
  border: 2px dashed #D2D8D4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #AEB7B1;
}

@media(min-width:640px) {
  .stamp-blank {
    font-size: 24px;
  }
}

/* :has() に対応していないブラウザ向けの保険 */
.stamp-img {
  border-radius: 12px;
}

/* チェックイン完了画面のスタンプ */
.done-stamp {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

/* 賞品セクションのリード文 */
.prize-lead {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  margin: -8px 0 20px;
}

/* ===== お問い合わせフォーム ===== */
.form-lead {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
}

.form-lead a {
  color: var(--green-dark);
  text-decoration: underline;
}

.type-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.type-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #DDD;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
}

.type-opt:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--green-pale);
  font-weight: 700;
}

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

textarea.field {
  line-height: 1.9;
  resize: vertical;
}

/* 迷惑メール対策の入力欄（画面には出しません） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media(min-width:640px) {
  .done-stamp {
    width: 230px;
    height: 230px;
  }
}
