/*不要なものがいろいろ散乱してるので、あとで整理すること*/

/* リセット */

html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本 */
:root {
    --topbar-height: 62px;
}

body.scan-modal-open {
    overflow: hidden;
}

 .home-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 40px;   /* ←ここで高さ調整 */
    width: auto;    /* 縦横比維持 */
}

/* ヘッダー代替トップバー */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 18px;
    gap: 16px;

    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.home-link {
    color: #111;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.menu-toggle {
    display: block;
    border: none;
    background: none;
    color: #111;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

body {
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.7;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    padding-top: var(--topbar-height);
}

#nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    background: rgba(255,255,255,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 240;
    overflow-y: auto;
}

#nav.active {
    transform: translateX(0);
}

#nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 86px 18px 24px;
    margin: 0;
}

#nav li a {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 18px;
    border-radius: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-footer {
    margin-top: 24px;
    padding: 18px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-footer .nav-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(30,58,138,0.08);
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-footer .nav-social:hover {
    background: rgba(30,58,138,0.16);
    color: #1e3a8a;
}

.nav-footer .nav-social-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

#nav li a:hover,
#nav li a:focus-visible {
    background: rgba(30,58,138,0.08);
}

#nav li a:visited {
    color: #111;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: auto;
    padding: 10px 16px;
}

.container section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.container-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container-section h2 {
  display: inline-block;
  width: auto;
  margin-bottom: 15px;
  margin-left: 0;
}

/* グリッド */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

.shop-page .grid {
  padding-left: 10px;
  padding-right: 10px;
}

.shop-page .container-section {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 900px) {
  .shop-page .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
}

@media (max-width: 700px) {
  .shop-page .grid {
    padding: 0 10px;
  }

  .shop-page .container-section {
    padding: 30px 10px;
  }
}

/* カード */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

/* 画像 */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* タイトル部分 */
.card-body {
  padding: 10px;
  text-align: center;
}

.card-body h3 {
  font-size: 18px;
  margin: 0;
}

/* 詳細は普段非表示 */
/*.detail {
  display: none;
}*/

@media (max-width: 700px) {
    body {
        padding-top: var(--topbar-height);
    }

    #nav {
        top: var(--topbar-height);
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        transform: translateY(-100%);
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        display: block;
    }

    #nav.active {
        transform: translateY(0);
        max-height: calc(100vh - var(--topbar-height));
        display: block;
    }

    #nav ul {
        padding: 16px 16px 20px;
    }

    .topbar {
        padding: 12px 16px;
    }
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

h2 {
    margin-bottom: 30px;
    /*border-left: 5px solid #1e3a8a;*/
    padding-left: 15px;
    font-size: 36px;
    font-weight: 600;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -5px;
    width: calc(100% - 15px);
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 2px;
}

.guest > h2,
.guest-text h2,
.access > h2 {
    display: inline-block;
    border-bottom: 4px solid #1e3a8a;
    padding-bottom: 8px;
}

.guest > h2::after,
.guest-text h2::after,
.access > h2::after {
    display: none;
}

/* ヒーロー */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url("header_ed.jpg") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(64,88,152,0.3), rgba(30,58,138,0.3));
    z-index: 1;
}

.hero .hero-text {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stamp-scan-line {
    0% {
        top: 14px;
        opacity: 0.15;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 18px);
        opacity: 0.9;
    }
}

@keyframes stamp-scan-check {
    0% {
        transform: translate(-50%, -50%) scale(0.55);
        opacity: 0;
    }
    45% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stamp-scan-modal,
    .stamp-scan-modal-panel,
    .stamp-scan-line,
    .stamp-scan-success,
    .stamp-sheet-bar-fill {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== カード（トップ用） ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 80px 20px;
}
/* ===== 共通カード ===== */
.card {
    display: block; /* aタグでも崩れないように */
    color: inherit;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64,88,152,0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px 25px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #1e3a8a;
}

.card p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.card a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}

.card a:hover {
    color: #405898;
}

/* ===== 開閉用詳細 ===== */
.detail {
    max-height: 0;
    overflow: hidden;
    transition:  max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    background: #f0f4ff;

}

.card.active .detail {
    max-height: 400px;
    padding: 15px;
}

/* ===== グリッド（模擬店・イベント用） ===== */
.grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px;

    width: 100%;

    margin: 0;
    padding: 0 20px;

    justify-items: stretch;
}

/* ===== ゲスト ===== */

/* セクション全体 */
.guest-highlight {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.guest-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 中身 */
.guest-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* 画像 */
.guest-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: transform 0.5s;
}

.guest-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* テキスト */
.guest-text {
    max-width: 550px;
}

.guest-label {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 500;
}

.guest-text h2 {
    font-size: 36px;
    margin: 15px 0;
    font-weight: 700;
}

/* ボタン */
.guest-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: white;
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.guest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* スマホ */
@media (max-width: 700px) {
    .guest-box {
        flex-direction: column;
        text-align: center;
    }

    .guest-image img {
        width: 100%;
        height: auto;
    }
}
.guest-highlight {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest {
    padding: 60px 0;
    text-align: center;
}

.guest h2 {
    margin-bottom: 30px;
}

/* ===== スタンプラリー ===== */
.stamp-rally {
    padding: 40px 0 80px;
}

.stamp-intro {
    max-width: 900px;
    margin-bottom: 22px;
    color: #334155;
    font-size: 1rem;
}

.stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.stamp-sheet-panel {
    margin: 18px 0 26px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.stamp-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.stamp-sheet-head h3 {
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.2rem;
}

.stamp-sheet-progress {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a;
    font-weight: 800;
    white-space: nowrap;
}

.stamp-sheet-progress span:last-child {
    font-size: 0.95rem;
    color: #475569;
}

.stamp-sheet-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    margin-bottom: 12px;
}

.stamp-sheet-bar-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #2563eb, #7c3aed);
    transition: width 0.35s ease;
}

.stamp-sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.stamp-sheet-slot {
    --stamp-slot-color: #2563eb;
    --stamp-slot-color-soft: #38bdf8;
    --stamp-slot-surface: #eff6ff;
    position: relative;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, var(--stamp-slot-surface));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stamp-sheet-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.stamp-sheet-slot-visual {
    position: relative;
    min-height: 164px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed rgba(148, 163, 184, 0.45);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.stamp-sheet-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stamp-sheet-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(78%, 176px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) scale(0.92) rotate(-7deg);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
}

.stamp-sheet-slot.filled .stamp-sheet-slot-visual {
    border-color: rgba(16, 185, 129, 0.26);
}

.stamp-sheet-slot.filled .stamp-sheet-empty {
    opacity: 0;
    transform: scale(0.9);
}

.stamp-sheet-slot.filled .stamp-sheet-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-7deg);
}

.stamp-sheet-slot-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.stamp-sheet-step {
    color: var(--stamp-slot-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stamp-sheet-slot-meta strong {
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.45;
}

.stamp-card {
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stamp-card:hover {
    transform: translateY(-4px);
}

.stamp-card.visited {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.stamp-label {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stamp-card h3 {
    margin: 6px 0 8px;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.stamp-note {
    min-height: 42px;
    color: #475569;
    font-size: 0.95rem;
}

.stamp-qr {
    width: 160px;
    height: 160px;
    margin: 8px auto 12px;
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.stamp-metrics {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 700;
    margin: 8px 0 10px;
}

.stamp-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.stamp-link:hover {
    text-decoration: underline;
}

.stamp-status {
    font-weight: 700;
    color: #1f2937;
}

.stamp-card.visited .stamp-status {
    color: #15803d;
}

.stamp-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.stamp-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.98rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.24);
}

.stamp-btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}

.stamp-btn:hover {
    filter: brightness(1.05);
}

.scan-status {
    color: #334155;
    margin-bottom: 10px;
}

.stamp-scan-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.stamp-scan-modal.is-open,
.stamp-scan-modal.is-closing {
    opacity: 1;
    pointer-events: auto;
}

.stamp-scan-modal.hidden {
    display: none !important;
}

.stamp-scan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stamp-scan-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.98));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.stamp-scan-modal.is-open .stamp-scan-modal-panel,
.stamp-scan-modal.is-closing .stamp-scan-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.stamp-scan-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.stamp-scan-modal-head h3 {
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.35rem;
}

.stamp-scan-stage {
    margin-bottom: 16px;
}

.stamp-scan-reader-wrap {
    position: relative;
    min-height: 320px;
    padding: 16px;
    border-radius: 24px;
    background: #020617;
    overflow: hidden;
}

.stamp-scan-reader {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    min-height: 320px;
    background: #020617;
}

.stamp-scan-frame {
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 3px solid rgba(34, 197, 94, 0.3);
    box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    pointer-events: none;
}

.stamp-scan-line {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.95), transparent);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.65);
    opacity: 0;
}

.stamp-scan-modal.is-scanning .stamp-scan-line {
    animation: stamp-scan-line 0.45s ease-in-out 1;
    opacity: 1;
}

.stamp-scan-modal.is-success .stamp-scan-frame {
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, 0.12);
}

.stamp-scan-modal.is-loading .stamp-scan-frame {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: inset 0 0 0 9999px rgba(59, 130, 246, 0.08);
}

.stamp-scan-success {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0;
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.35);
    pointer-events: none;
}

.stamp-scan-success.is-visible {
    animation: stamp-scan-check 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) 1;
    opacity: 1;
}

.stamp-scan-modal.is-error .scan-status {
    color: #b91c1c;
}

.stamp-scan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.stamp-scan-modal .stamp-btn.secondary {
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.stamp-scan-modal .stamp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reader-box {
    max-width: 420px;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

.reader-box video {
    width: 100%;
    display: block;
}

.stamp-summary {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #1f2937;
}

.hidden {
    display: none !important;
}

.stamp-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin: 10px 0;
}

.stamp-map-panel {
    margin-top: 20px;
    border-radius: 18px;
    padding: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.stamp-map-frame {
    width: 100%;
    min-height: 360px;
    border: none;
    border-radius: 16px;
    margin-top: 12px;
}

.stamp-survey {
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.stamp-survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.stamp-survey-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #334155;
    font-size: 14px;
}

.stamp-survey-grid select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    color: #111827;
}


.analytics-page {
    padding-top: 24px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.analytics-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 700;
}

.analytics-intro {
    max-width: 680px;
    color: #334155;
}

.analytics-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.analytics-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.analytics-card .stamp-label {
    color: #1d4ed8;
}

.analytics-table-wrapper {
    margin-top: 16px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.analytics-table th,
.analytics-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    text-align: left;
    color: #334155;
}

.analytics-table th {
    background: #f8fafc;
    font-weight: 700;
}

.analytics-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06);
}

.user-table td > .stamp-btn {
    padding: 8px 12px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .analytics-table,
    .analytics-table th,
    .analytics-table td {
        display: block;
        width: 100%;
    }

    .analytics-table thead {
        display: none;
    }

    .analytics-table tbody tr {
        margin-bottom: 12px;
        display: block;
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 14px;
        overflow: hidden;
    }

    .analytics-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
    }

    .analytics-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #475569;
        margin-right: 12px;
    }
}

#analytics-summary {
    grid-column: 1 / -1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

#analytics-events {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .analytics-header {
        flex-direction: column;
    }

    .analytics-back {
        width: 100%;
    }
}

/* visited icon for stamp cards */
.visited-icon{
    display:inline-block;
    background:linear-gradient(90deg,#10b981,#06b6d4);
    color:#fff;
    padding:6px 10px;
    border-radius:10px;
    font-weight:700;
}

.stamp-card.visited {
    border-color: rgba(16,185,129,0.25);
}

@media (max-width: 700px) {
    .stamp-controls {
        flex-direction: column;
    }

    .stamp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stamp-grid .stamp-card {
        padding: 10px;
        border-radius: 12px;
    }

    .stamp-grid .stamp-label {
        font-size: 0.7rem;
    }

    .stamp-grid .stamp-thumb {
        height: 80px;
        margin: 6px 0;
        border-radius: 10px;
    }

    .stamp-grid .stamp-card h3 {
        font-size: 0.9rem;
        margin: 4px 0 6px;
    }

    .stamp-grid .stamp-link,
    .stamp-grid .stamp-status {
        font-size: 0.8rem;
    }

    .stamp-grid .stamp-link {
        margin-bottom: 6px;
    }

    .stamp-btn {
        width: 100%;
    }

    .stamp-sheet-panel {
        padding: 16px;
    }

    .stamp-sheet-head {
        flex-direction: column;
    }

    .stamp-sheet-progress {
        width: 100%;
        justify-content: center;
    }

    .stamp-sheet-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* ===== アクセスセクション ===== */
.access {
    padding: 80px 0;
}

.access-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 16px;
}

.access-info {
    flex: 0 1 min(420px, 40%);
    max-width: 460px;
    min-width: 280px;
}

.access-info h3 {
    margin-bottom: 16px;
    font-size: 24px;
    color: #1e3a8a;
}

.access-info p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #444;
}

.access-info .map-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 18px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.access-info .map-link:hover {
    background: #405898;
}

.map {
    flex: 1 1 0;
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    border: 0;
}

@media (max-width: 820px) {
    .access-container {
        flex-direction: column;
        align-items: stretch;
    }

    .access-info,
    .map {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .access-info {
        padding-bottom: 16px;
    }

    .map iframe {
        min-height: 260px;
    }
}


.guest-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.guest img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.guest-info {
    max-width: 400px;
    text-align: left;
}

/* ヒーロー */
.guest-hero {
    height: 70vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    color: white;
    overflow: hidden;
}

.guest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("images/guest1.jpg") center/cover;
    opacity: 0.4;
    z-index: 1;
}

.guest-hero .overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    animation: fadeIn 1.5s ease-out;
}

.guest-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    color: #fff;
}

.guest-hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #fff;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* メイン */
.guest-main {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin: 50px 0;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

/* 左側：写真と概要 */
.guest-left {
    flex: 1;
    text-align: center;
}

.guest-left img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.guest-left img:hover {
    transform: scale(1.05);
}

.guest-intro h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.guest-intro p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* 右側：実績とSNS */
.guest-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guest-stats h3,
.guest-social h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 5px;
}

.follower-count {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 20px;
    display: block;
}

.guest-career li {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border-left: 3px solid #1e3a8a;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 10px 15px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,58,138,0.3);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.youtube {
    background: #ff0000;
}

/* リスト */
.guest-points li,
.guest-career li {
    margin-bottom: 10px;
}

/* CTA */
.guest-cta {
    margin-top: 40px;
    padding: 30px;
    background: #1e3a8a;
    color: white;
    text-align: center;
    border-radius: 10px;
}

.guest-cta a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 5px;
}

/* スマホ */
@media (max-width: 700px) {
    .guest-hero {
        height: 50vh;
    }

    .guest-hero h1 {
        font-size: 2rem;
    }

    .guest-hero h2 {
        font-size: 1.8rem;
    }

    .guest-main {
        flex-direction: column;
        padding: 25px 15px;
        margin: 30px 10px;
        gap: 30px;
    }

    .guest-left img {
        width: 180px;
        height: 180px;
    }

    .guest-intro h2 {
        font-size: 1.8rem;
    }

    .guest-intro p {
        font-size: 1rem;
    }

    .guest-right {
        gap: 20px;
    }

    .follower-count {
        font-size: 1.5rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-link {
        flex: 1;
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}


/* ===== アクセス ===== */
.access {
    background: linear-gradient(135deg, #eef2f7 0%, #d1d9e6 100%);
    padding: 80px 0;
}

.access h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #1e3a8a;
}

/* 横並び */
.access-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左 */
.access-info {
    flex: 1;
    min-width: 280px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.access-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e3a8a;
    font-weight: 600;
}

.access-info p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

/* 右 */
.map {
    flex: 2;
    min-width: 350px;
}

.map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* リンク */
.map-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    background: #1e3a8a;
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.map-link:hover {
    background: #405898;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,58,138,0.3);
}

#userMessage {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

#userMessage.success {
  background: #dcfce7;
  color: #166534;
}

#userMessage.error {
  background: #fee2e2;
  color: #991b1b;
}

#userMessage.info {
  background: #e0f2fe;
  color: #075985;
}

/* =========================
   お知らせティッカー
   ========================= */

.announcement-ticker {
    display: flex;
    align-items: center;

    width: 100%;
    height: 42px;

    overflow: hidden;
}

.ticker-label {
    flex-shrink: 0;
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 15px;

    font-weight: bold;
}

.ticker-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
}

.ticker-content {
    position: absolute;
    top: 50%;
    white-space: nowrap;
    transform: translateY(-100%);
    animation: ticker-move 10s linear infinite;

    font-size: 14px;
    font-weight: 500;
}

.ticker-scroll {
    display: inline-block;
    white-space: nowrap;

    padding-left: 100%;

    animation: ticker-move 10s linear infinite;
}

/* 無限横スクロール */
@keyframes ticker-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.info-ticker {
    background: #fff3cd;
    border-bottom: 1px solid #e0c85f;
}

.info-ticker .ticker-label {
    background: #ffc107;
    color: #333;
}

.warning-ticker {
    background: #fff5f5;
    border-bottom: 1px solid #e06666;
}

.warning-ticker .ticker-label {
    background: #c53030;
    color: #fff;
}

.warning-ticker .ticker-content {
    color: #742a2a;
    font-weight: 600;
}


/* ===== フッター ===== */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #2d5aa0 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

 #add-user-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 700px) {
    .cards,
    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        padding: 0 10px;
        margin: 0;
    }

    .access-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .guest-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .guest-image img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .access-info {
        padding: 30px 20px;
    }

    .map iframe {
        height: 280px;
    }

    h2 {
        font-size: 28px;
        padding-left: 10px;
    }

    h2::after {
        left: 10px;
        width: calc(100% - 10px);
        height: 3px;
    }
}

    .hero {
        height: 50vh;
        padding: 0 10px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    /* カード系（全部1列） */
    .cards,
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;

    }

    .card img {
        height: 150px;
    }

    /* セクション余白 */
    .section {
        padding: 40px 0;
    }

    /* ゲスト */
    .guest-container {
        flex-direction: column;
        text-align: center;
    }

    .guest img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .guest-info {
        text-align: center;
    }

    /* アクセス */
    .access-container {
        flex-direction: column;
    }

    .map iframe {
        height: 250px;
    }

    /* フッター */
    footer {
        font-size: 12px;
    }

   
