/* ===== PCで画面を開いた時 ===== */
.front-gate__qr{
	width:60%;
	margin:20px auto;}

.front-gate__qr img{
	width:100%;
	height:auto;
	margin:20px auto;
	display:block;}


/* ===== 到達スポット内の詳細表示（tour_walk） ===== */
.tw-spot-content{background:#fff;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden;padding-top:20px;}

.tw-spot-content .inner{padding:0 16px 20px;}

/* タブボタン（ポイントを探す／この場所を調べる 等） */
.tw-spot-content #menu{list-style:none;display:flex;gap:8px;margin:0 0 16px;padding:12px 16px 0;}
.tw-spot-content #menu li{flex:1;}
.tw-spot-content #menu button{width:100%;background:none;border:none;padding:0;margin:0;}
.tw-spot-content #menu a.btn-c{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  padding:10px 6px;border:1px solid #dde4f5;border-radius:8px;
  background:#f7f9ff;color:#2d3a6e;text-decoration:none;
  font-size:13px;font-weight:600;line-height:1.3;
}
.tw-spot-content #menu a.btn-c span{font-size:11px;font-weight:400;color:#8a94b8;}

/* 見出し・本文 */
.tw-spot-content .inner h2{font-size:18px;font-weight:700;margin:0 0 14px;color:#1a1a1a;}
.tw-spot-content .inner h3{font-size:15px;font-weight:700;margin:22px 0 8px;color:#1a1a1a;}
.tw-spot-content .inner p{font-size:14px;line-height:1.75;color:#444;margin:0 0 12px;}

/* 画像 */
.tw-spot-content .inner img{max-width:100%;height:auto;border-radius:10px;display:block;margin:0 auto 12px;}
.tw-spot-content .inner figure{margin:0 0 16px;}

/* HP等のリンク */
.tw-spot-content .to_hp a{display:inline-block;margin-top:8px;font-size:13px;color:#1a56db;text-decoration:none;}

.tw-btn-wrap a.tw-info-btn{background:#fff;}

/* ===== 体験バナー（tour_dashboard） ===== */
.td-course-banner{
  grid-column: 1 / -1;
  display:block;
  border-radius:12px;
  overflow:hidden;
}
.td-course-banner img{
  width:100%;
  display:block;
}
/* ===== tour_dashboard（ツアー参加者ダッシュボード） ===== */

/* WooCommerceの固定ミニカートバーを非表示（td-nav-barと競合するため） */
.storefront-sticky-add-to-cart,
.site-header-cart.sticky,
#wc-sticky-add-to-cart {
    display: none !important;
}

.td-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

/* 固定ナビの分だけ本文が隠れないよう、下に余白を作る */
body {
    padding-bottom: 70px;
}

/*
 * 【要確認】以下はyaotsu-mall.comの固定ページテンプレート名
 * (page-walking_around_town_default) に依存しています。
 * satoyama-gifu.com側で同じテンプレート名を使う予定がなければ
 * このブロックは効果がありません（削除しても支障ありません）。
 *
body.page-template-page-walking_around_town_default #content #main h1.entry-title{
	font-size:1.3em;
	letter-spacing: 0.1em;
	color:#fff;
	text-align:center;
	font-family: 'M PLUS Rounded 1c', sans-serif !important;
	margin:1em auto 0 auto;}

body.page-template-page-walking_around_town_default #content #main h1.entry-title::before{
	content:'WEBARまちあるき';
	letter-spacing: 0.1em;
	display:block;
	font-size:60%;
	width:130px;
	padding:0.03em 0;
	margin:0 auto 0.7em auto;
	border:1px solid #fff;
	color:#fff;
	text-align:center;
	font-family: 'M PLUS Rounded 1c', sans-serif !important;}
*/

#td-wrap{
	max-width:420px;
	margin:0 auto;
	font-family:sans-serif;}

#td-wrap a{
	text-decoration:none;}

.td-header{background:#f7f9ff;border:1px solid #dde4f5;border-radius:14px;padding:14px 16px 12px;margin-bottom:14px;}
.td-header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;}
.td-tour-label{font-size:11px;color:#888;letter-spacing:.04em;}
.td-lang-badge{font-size:11px;background:#e8f0fe;color:#1a56db;border:1px solid #c5d3f5;border-radius:20px;padding:3px 10px;text-decoration:none;}
.td-tour-title{font-size:16px;font-weight:600;color:#1a1a2e;margin:4px 0 10px;line-height:1.35;}
.td-progress-bar-wrap{height:5px;background:#e0e0e0;border-radius:3px;overflow:hidden;}
.td-progress-bar-fill{height:100%;background:#3b82f6;border-radius:3px;transition:width .5s ease;}
.td-progress-label{display:flex;justify-content:space-between;font-size:11px;color:#888;margin-top:5px;}
.td-section-label{
	font-size:11px;
	color:#fff;
	letter-spacing:.04em;
	margin:14px 0 8px;}

.td-main-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px;}
.td-feature-card{background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:14px 12px 12px;display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit;transition:border-color .15s;}
.td-feature-card:hover{border-color:#93c5fd;}
.td-card-accent{border-color:#bfdbfe;background:#eff6ff;}
.td-card-icon{font-size:20px;line-height:1;color:#3b82f6;}
.td-icon-green{color:#16a34a;}
.td-icon-amber{color:#d97706;}
.td-icon-gray{color:#9ca3af;}
.td-card-name{font-size:13px;font-weight:600;color:#111827;line-height:1.2;}
.td-card-desc{font-size:11px;color:#6b7280;line-height:1.4;}
.td-card-tag{font-size:10px;padding:2px 7px;border-radius:20px;width:fit-content;}
.td-tag-ar{background:#ede9fe;color:#5b21b6;}
.td-tag-live{background:#dcfce7;color:#15803d;}
.td-tag-lms{background:#fef9c3;color:#854d0e;}
.td-tag-gps{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;}
.td-post-btn{width:100%;background:#fff;border:1.5px dashed #d1d5db;border-radius:13px;padding:13px 14px;display:flex;align-items:center;gap:12px;cursor:pointer;margin-bottom:14px;text-align:left;}
.td-post-btn:hover{border-color:#93c5fd;background:#f8faff;}
.td-post-icon{font-size:22px;color:#9ca3af;flex-shrink:0;}
.td-post-btn strong{display:block;font-size:13px;color:#111827;}
.td-post-sub{font-size:11px;color:#9ca3af;}
.td-spot-card{background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:13px 14px;display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.td-spot-icon{font-size:22px;color:#9ca3af;flex-shrink:0;}
.td-spot-title{font-size:13px;font-weight:600;color:#111827;}
.td-spot-sub{font-size:11px;color:#6b7280;margin-top:2px;}
.td-nav-bar{
	text-align:center;
	display:flex;
	justify-content:space-around;
	padding:10px 0 6px;
	border-top:1px solid #e5e7eb;
	background:#fff;
	border-radius:0 0 14px 14px;}

.td-nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;color:#9ca3af;text-decoration:none;}
.td-nav-active{color:#3b82f6;}
.td-nav-icon{font-size:20px;line-height:1;}

.td-card-thumb{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

/* ログインカード全体 */
.td-login-card {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.td-login-message {
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
}

.td-login-card #loginform {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.td-login-card #loginform .login-username,
.td-login-card #loginform .login-password {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

label.user_login {
  display: block !important;
}

.td-login-card #loginform .input,
.td-login-card #loginform input[type="text"],
.td-login-card #loginform input[type="password"] {
  border-radius: 10px;
  width: 100%;
}

.td-login-card #loginform #wp-submit,
.td-login-card #loginform .button-primary {
  border-radius: 10px;
}

.td-login-card #loginform .login-remember,
.td-login-card #loginform .login-submit{
  display: flex;
  justify-content: center;
  width: 100%;
}

.td-banner-note {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
  text-align: center;
  font-weight: normal;
  margin: 12px 0;
}

.td-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-logout-badge {
  font-size: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.td-header-top .td-logout-badge {
  background: #f3f4f6 !important;
  color: #1f2937 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* ===== フッターナビ：全幅・中央ぞろえに強制上書き ===== */
.td-nav-bar{
  max-width: none !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
}

/* ===== WebARページのみ: WooCommerceスマホ用固定フッターを非表示 ===== */
body.has-webar-nav .storefront-handheld-footer-bar{
  display: none !important;
}

/* フッターナビ分の余白も、WebARページだけに限定 */
body.has-webar-nav {
  padding-bottom: 70px;
}

/* ===== tour_walk（まち歩きツアー統合ショートコード） ===== */
#tw-wrap{max-width:480px;margin:0 auto;font-family:sans-serif;}
.tw-inner{padding:20px 16px;}

.tw-inner h2{
	font-size:20px;
	font-weight:600;
	margin:0 0 8px;
	color:#fff;
	text-align:center;}

.tw-explanation{
	font-size:14px;
	color:#e5e7eb;
	margin:0 0 20px;
	text-align:center !important;}

/*　スタートボタン */
.tw-btn-wrap {
  position: relative;
  margin: 0 0 20px 0;
}
#tw-start-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 160px !important;
  min-width: 160px !important;
  height: 80px;
  margin: 0 auto;
  border-radius: 50px;
  background-color: #63d4db;
  color: #001933;
	font-weight: bold;
  text-decoration: none;
  text-align: center;
  font-size: 130% !important;
  line-height: 1.15 !important;
	font-family: sans-serif;
  border: none;
  position: relative;
}
#tw-start-btn em{
  display: block;
  font-style: normal;
  font-size: 70% !important;
  line-height: 1.2;
  margin-top: 4px;
}
#tw-start-btn:before, #tw-start-btn:after {
  content: "";
  position: absolute;
  z-index: -10;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50px;
  background: #a6f9ff;
  transform: translate3d(0,0,0);
}
#tw-start-btn:before {
  animation: anime 1s ease-out infinite;
}
#tw-start-btn:after {
  animation: anime 1s ease-out 1s infinite;
}
@keyframes anime{
0%{transform:scale(.95); opacity:1}
90%{opacity:.1}
to{transform:scale(1.2,1.4); opacity:0}
}

.tw-info-row{display:flex;gap:10px;padding:0 16px 20px;}
.tw-info-btn{flex:1;display:block;text-align:center;padding:10px 8px;border:1px solid #ddd;border-radius:8px;font-size:12px;font-weight:600;color:#333;text-decoration:none;line-height:1.3;background:#fff;}
.tw-info-btn em{display:block;font-size:10px;font-weight:400;color:#888;margin-top:2px;font-style:normal;}
.tw-header{padding:12px 16px;background:#f7f9ff;border-bottom:1px solid #e5e7eb;}
.tw-progress-bar-wrap{height:5px;background:#e0e0e0;border-radius:3px;overflow:hidden;margin-bottom:6px;}
.tw-progress-fill{height:100%;background:#3b82f6;border-radius:3px;transition:width .5s ease;}
.tw-progress-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#666;}
.tw-reset-btn{font-size:11px;color:#999;background:none;border:1px solid #ddd;border-radius:4px;padding:2px 8px;cursor:pointer;}
.tw-status{padding:10px 16px;font-size:13px;color:#2d3a6e;background:#f0f4ff;border-bottom:1px solid #dde4f5;}
.tw-spot-area{padding:16px;}
.tw-searching{text-align:center;padding:40px 20px;color:#888;font-size:14px;}
.tw-loading{display:flex;justify-content:center;margin-top:20px;}
.tw-loading i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3b82f6;margin:0 3px;animation:tw-bounce .8s infinite alternate;}
.tw-loading i:nth-child(2){animation-delay:.1s;}
.tw-loading i:nth-child(3){animation-delay:.2s;}
.tw-loading i:nth-child(4){animation-delay:.3s;}
.tw-loading i:nth-child(5){animation-delay:.4s;}
.tw-loading i:nth-child(6){animation-delay:.5s;}
@keyframes tw-bounce{from{transform:translateY(0);}to{transform:translateY(-10px);opacity:.5;}}
.tw-spot-content{background:#fff;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden;padding-top:20px;}
.tw-arrived-banner{background:#d4edda;border:1px solid #a8d5b5;border-radius:10px;padding:12px 14px;margin-bottom:12px;font-size:14px;color:#155724;}
.tw-login-required{background:#fff8e1;border:1px solid #ffe082;border-radius:10px;padding:16px;text-align:center;}
.tw-login-required h3{font-size:16px;margin:0 0 8px;}
.tw-login-required p{font-size:13px;color:#666;margin:0 0 12px;}
.tw-login-btn{display:inline-block;padding:10px 20px;background:#1a7a4a;color:#fff;border-radius:8px;text-decoration:none;font-size:14px;font-weight:600;}
.tw-courses-wrap{padding:0 16px 20px;}
.tw-map-wrap{padding:0 16px 16px;}
#tw-map{height:280px;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;}
.tw-list-wrap{padding:0 16px 24px;}
.tw-list-title{font-size:12px;color:#888;margin-bottom:8px;}
.tw-list-card{display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin-bottom:8px;cursor:pointer;}
.tw-list-card.reached{background:#f0fff4;border-color:#a8d5b5;}
.tw-list-card.nearby{background:#fffbea;border-color:#f5c842;}
.tw-list-name{font-size:14px;font-weight:600;color:#111827;}
.tw-list-meta{font-size:11px;color:#6b7280;margin-top:4px;}
.tw-list-dist{font-size:12px;color:#6b7280;white-space:nowrap;}

/* ===== tour_map_list（進捗情報・閲覧用マップ＆リスト） ===== */
#tml-wrap{max-width:480px;margin:0 auto;padding:0 16px 24px;font-family:sans-serif;}
.tml-head{padding:14px 16px;background:#f7f9ff;border-radius:12px;margin:12px 0;}
.tml-progress{font-size:22px;font-weight:700;color:#111827;margin-bottom:6px;}
#tml-count{color:#2563eb;}
.tml-label{font-size:13px;font-weight:400;color:#6b7280;margin-left:6px;}
.tml-bar{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-bottom:8px;}
#tml-bar-fill{height:100%;width:0%;background:#2563eb;transition:width .3s ease;}
.tml-gps{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280;}
#tml-gps-dot{width:8px;height:8px;border-radius:50%;background:#9ca3af;display:inline-block;}
#tml-gps-dot.ok{background:#22c55e;}
#tml-gps-dot.err{background:#ef4444;}
.tml-filter-wrap{margin-bottom:14px;}
.tml-filter-label{display:block;font-size:12px;color:#fff;margin-bottom:6px;}
.tml-filter-select{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;color:#111827;}
#tml-map{height:320px;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;margin-bottom:14px;}
.tml-list-title{font-size:12px;color:#888;margin-bottom:8px;}
.tml-card{display:block;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin-bottom:10px;}
.tml-card.reached{background:#f0fff4;border-color:#a7d7b4;}
.tml-card.nearby{background:#fffbea;border-color:#f4d35e;}
.tml-card.tml-hidden{display:none;}
.tml-row-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
.tml-name{font-size:14px;font-weight:600;color:#111827;}
.tml-meta{font-size:11px;color:#6b7280;margin-top:4px;}
.tml-dist{font-size:12px;color:#6b7280;white-space:nowrap;}
.tml-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
.tml-btn{display:inline-block;padding:8px 12px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:600;line-height:1.2;}
.tml-btn-map{background:#eef2ff;color:#3730a3;}
.tml-btn-ar{background:#ecfdf5;color:#166534;}
.tml-btn-lesson{background:#eff6ff;color:#1d4ed8;}
.tml-btn-disabled{background:#f3f4f6;color:#9ca3af;pointer-events:none;}
.tml-debug-box{margin-top:10px;font-size:11px;color:#888;}
#tml-debug{background:#f5f5f5;border-radius:6px;padding:8px;max-height:160px;overflow:auto;font-size:11px;}

/* スポットリスト　カードの中のレイアウト */
.tml-card-inner{display:flex;gap:12px;align-items:flex-start;}
.tml-thumb{width:100px;height:100px;object-fit:cover;border-radius:8px;flex-shrink:0;}
.tml-card-body{flex:1;min-width:0;}