/*不要なものがいろいろ散乱してるので、あとで整理すること*/

/* リセット */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本 */
:root {
    --topbar-height: 62px;
}

body.scan-modal-open {
    overflow: hidden;
}

body.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: 4000;

    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 {
    position: relative;
    z-index: 4100;
    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);
}

/* main {
    padding-top:0;
    padding-bottom: 0px;
} */

#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: 3500;
    overflow-y: auto;
    pointer-events: none;
}

#nav.active {
    pointer-events: auto;
    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: 20px;
    font-weight: 600;
    padding: 16px 18px;
    border-radius: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}

#nav li a:hover,
#nav li a:focus-visible {
    background: rgba(30, 58, 138, 0.08);
}

#nav li a:visited {
    color: #111;
}

/* =========================
   グループ
========================= */

.nav-group {
    list-style: none;
}

/* トグルボタン */
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    border: none;
    background: transparent;

    color: #111;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;

    padding: 16px 18px;
    border-radius: 14px;

    cursor: pointer;
    text-align: left;

    transition: background 0.25s ease, color 0.25s ease;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
    background: rgba(30, 58, 138, 0.08);
}

/* ＋アイコン */
.nav-group-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}

/* 開いた状態 */
.nav-group.open .nav-group-toggle span {
    transform: rotate(45deg);
}

/* =========================
   サブメニュー
========================= */

#nav .nav-submenu {
    display: flex;
    flex-direction: column;

    gap: 4px;

    list-style: none;

    padding: 0;
    margin: 0;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.3s ease;
}

/* サブメニューのリンク */
#nav .nav-submenu li a {
    font-size: 17px;
    font-weight: 500;

    padding: 12px 18px 12px 34px;

    border-radius: 10px;
}

/* =========================
   フッター
========================= */

.nav-footer {
    margin-top: 24px;
    padding: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
}

.nav-footer .nav-social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #111;
    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    padding: 12px 10px;
    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: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.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;
}

.shop-grid-wrap {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.shop-tab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
}

.shop-category-title {
    margin: 28px 0 16px;
    color: #102a63;
    font-size: 1.6rem;
}

.shop-category-title:first-child {
    margin-top: 0;
}

.shop-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
    padding: 22px 20px;
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.92));
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-tab:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(30, 58, 138, 0.18);
    border-color: rgba(59, 130, 246, 0.5);
}

.shop-tab-name {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 800;
    color: #102a63;
    letter-spacing: 0.04em;
}

.shop-tab-product {
    font-size: 0.96rem;
    line-height: 1.6;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop-error {
    grid-column: 1 / -1;
    padding: 30px 20px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a4d00;
    font-weight: 600;
    text-align: center;
}

.shop-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 400;
}

.shop-modal.open {
    opacity: 1;
    visibility: visible;
}

.shop-modal-panel {
    position: relative;
    width: min(680px, 92vw);
    max-height: min(82vh, 820px);
    overflow: auto;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.2s ease;
}

.shop-modal.open .shop-modal-panel {
    transform: translateY(0) scale(1);
}

.shop-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.shop-modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 28px 28px 0 0;
    background: #dfeafc;
}

.shop-modal-body {
    padding: 26px 28px 30px;
}

.shop-modal-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.shop-modal-body h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 14px;
    color: #0f172a;
}

.shop-modal-product {
    margin-bottom: 16px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}

.shop-modal-product strong {
    color: #102a63;
}

.shop-modal-description {
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
    white-space: pre-line;
}

@media (max-width: 900px) {
    .shop-page .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }

    .shop-tab-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 700px) {
    .shop-page .grid {
        padding: 0 10px;
    }

    .shop-page .container-section {
        padding: 30px 10px;
    }

    .shop-tab-grid {
        grid-template-columns: 1fr;
    }

    .shop-tab {
        min-height: 120px;
    }

    .shop-modal {
        padding: 16px;
    }

    .shop-modal-body {
        padding: 22px 20px 24px;
    }
}

/* =========================
   模擬店 詳細モーダル
   ========================= */

.modal {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 1000;

    /* 背景 */
    background: rgba(0, 0, 0, 0.55);

    /* モーダルを中央配置 */
    justify-content: center;
    align-items: center;

    padding: 20px;
    padding-top: 60px;

    overflow-y: auto;
}

#eventModal .modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
}

#eventModal .modal-time,
#eventModal .modal-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.6;
}

#eventModal .modal-label {
    font-weight: 700;
    color: #1e2432;
    white-space: nowrap;
}

#eventModal .modal-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

#eventModal .modal-meta-links a {
    padding: 8px 14px;
    background: #2d5aa0;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

#eventModal .modal-meta-links a:hover {
    opacity: 0.85;
}

@media (max-width: 520px) {
    #eventModal .modal-meta-row {
        flex-direction: column;
        align-items: flex-start;


    }

    #eventModal .modal-time,
    #eventModal .modal-location {
        white-space: normal;
    }

    #eventModal .modal-meta-links a {
        width: 100%;
        text-align: center;
    }
}

.shop-modal-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid #ddd;
}

.shop-modal-location-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
}

.shop-modal-location a {
    display: inline-block;
    padding: 8px 14px;
    background: #2d5aa0;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.shop-modal-location a:hover {
    opacity: 0.85;
}

/* モーダル本体 */
.modal-content {
    position: relative;

    width: min(680px, 100%);
    max-height: 90vh;

    background: #fff;
    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    animation: modalOpen 0.2s ease-out;
}


/* =========================
   画像
   ========================= */

.modal-image {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;
}


/* =========================
   閉じるボタン
   ========================= */

.close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.55);
    color: white;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    z-index: 2;

    transition: background 0.2s;
}

.close:hover {
    background: rgba(0, 0, 0, 0.75);
}


/* =========================
   本文
   ========================= */

.modal-body {
    padding: 28px 30px 32px;
}


/* 店名 */
.modal-body h2 {
    margin: 0 0 18px;

    font-size: 1.8rem;
    line-height: 1.4;

    color: #222;
}


/* 内容 */
.modal-product {
    margin: 0 0 20px;

    padding: 12px 16px;

    background: #f1f5fb;

    border-left: 4px solid #2d5aa0;

    border-radius: 6px;

    line-height: 1.6;
}

.modal-product strong {
    color: #2d5aa0;
}


/* 説明 */
.modal-description {
    margin: 0;

    color: #444;

    font-size: 1rem;
    line-height: 1.8;

    white-space: pre-wrap;
}


/* =========================
   アニメーション
   ========================= */

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================
   スマートフォン
   ========================= */

@media (max-width: 600px) {

    .modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .modal-content {
        width: 100%;
        max-height: 92vh;
        margin-top: 20px;

        border-radius: 16px;
    }

    .modal-image {
        height: 200px;
    }

    .modal-body {
        padding: 22px 20px 26px;
    }

    .modal-body h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .modal-product {
        font-size: 0.95rem;
    }

    .modal-description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .close {
        width: 38px;
        height: 38px;

        font-size: 25px;
    }
}

/* カード */
.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);
    }

    /* main {
        padding-top: calc(var(--topbar-height) + 12px);
    } */

    #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;
    }

    .nav-footer {
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px 18px;
    }

    .nav-footer .nav-social {
        width: 100%;
        flex: 1 1 auto;
        padding: 12px 14px;
        font-size: 14px;
    }

    .nav-footer .nav-social-icon {
        width: 28px;
        height: 28px;
    }
}

/* セクション共通 */
.section {
    /*padding: 18px 0 32px;*/

    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("./images/logo.png") 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;
    width: min(92vw, 980px);
    max-width: 980px;
    padding: 0 16px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw, 4.8rem);
    line-height: 1.12;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.04em;
}

.hero p {
    font-size: clamp(0.8rem, 1.5vw, 2rem);
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .hero-lead {
    max-width: 760px;
    margin: 8px auto 10px;
    font-size: clamp(0.8rem, 1.5vw, 2rem);
    line-height: 1.7;
    font-weight: 500;
}

@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: 300px;
    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;
}

#event-grid {
    display: block;
    padding: 0;
}

.event-day-section {
    margin-bottom: 52px;
}

.event-day-heading {
    margin: 0 0 20px;
    padding-left: 10px;
    font-size: clamp(1.8rem, 2.2vw, 2.6rem);
    font-weight: 700;
    color: #1e3a8a;
    border-left: 6px solid #1e3a8a;
}

.event-location-section {
    margin-bottom: 32px;
}

.event-location-heading {
    margin: 0 0 16px;
    padding: 8px 14px;
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border-bottom: 2px solid #93c5fd;
}

.event-day-grid {
    padding: 0;
    margin: 0;
}

/* ===== ゲスト ===== */

/* セクション全体 */
.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 15s 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) {
    .hero .hero-text {
        width: min(90vw, 620px);
        padding: 0 10px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 8vw, 3.2rem);
        line-height: 1.2;
    }

    .hero p {
        font-size: clamp(1.05rem, 4.6vw, 1.5rem);
    }

    .hero .hero-lead {
        font-size: clamp(1.08rem, 4vw, 1.5rem);
    }

    .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: 80px 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(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    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-reward-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    margin: 16px auto 4px;
    padding: 12px 24px;
    border: 2px dashed rgba(148, 163, 184, 0.55);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
}

.stamp-reward-label {
    font-size: 0.92rem;
    font-weight: 800;
}

.stamp-reward-status strong {
    color: #475569;
    font-size: 1rem;
}

.stamp-reward-status.is-acquired {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(236, 253, 245, 0.95);
    color: #047857;
}

.stamp-reward-status.is-acquired strong {
    color: #047857;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8em;
    margin: 6px 0 8px;
    color: #1e3a8a;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.stamp-grid .stamp-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 12px 0 16px;
    object-fit: contain;
    border-radius: 12px;
    background: #f7f8fa;
}

.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: block;
    width: fit-content;
    max-width: 100%;
    margin: 4px auto 14px;
    padding: 9px 16px;
    border: 2px solid #2d5aa0;
    border-radius: 8px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stamp-link:hover {
    background: #2d5aa0;
    color: #fff;
    transform: translateY(-2px);
}

.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);
    font-size: 18px;
    color: #ff3333;
}

.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 {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        margin: 8px 0 12px;
        border-radius: 10px;
    }

    .stamp-grid .stamp-card h3 {
        font-size: 0.9rem;
        margin: 4px 0 6px;
        min-height: 2.8em;
    }

    .stamp-grid .stamp-link,
    .stamp-grid .stamp-status {
        font-size: 0.8rem;
    }

    .stamp-grid .stamp-link {
        margin: 4px auto 8px;
        padding: 7px 8px;
        border-width: 2px;
    }

    .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));
    }
}

/* ========================================
   企業紹介
======================================== */

.company-section {
    width: 100%;
}

.company-intro {
    text-align: center;
    margin: 0 auto 28px;
    color: #555;
    font-size: 0.9rem;
}

.company-subsection {
    max-width: 1100px;
    margin: 0 auto 56px;
}

.company-subsection:last-child {
    margin-bottom: 0;
}

.company-subsection>h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    color: #234a85;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.company-subsection>h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd7e5;
}


/* ----------------------------------------
   企業一覧
---------------------------------------- */

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}


/* ----------------------------------------
   企業カード
---------------------------------------- */

.company-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}


/* ロゴ */

.company-card-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f7f8fa;
}

.company-card-image img {
    max-width: 90%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* カード本文 */

.company-card-body {
    padding: 20px;
}

.company-card-body h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    text-align: center;
    color: #333;
}

.company-name-affix,
.company-name-body {
    display: block;
}


/* 業種タグ */

.company-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.company-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #49677f;
    font-size: 0.78rem;
    line-height: 1.4;
}


/* 詳しく見る */

.company-detail-button {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background: #2d5aa0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.company-detail-button:hover {
    background: #234a85;
}

.company-detail-button:active {
    transform: scale(0.98);
}


/* ========================================
   企業紹介モーダル
======================================== */

.company-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.company-modal.active {
    visibility: visible;
    opacity: 1;
}


/* 背景 */

.company-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}


/* モーダル本体 */

.company-modal-content {
    position: relative;
    z-index: 1;

    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #fff;
    border-radius: 18px;

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);

    transform: translateY(15px) scale(0.98);
    transition: transform 0.25s ease;
}

.company-modal.active .company-modal-content {
    transform: translateY(0) scale(1);
}


/* 閉じるボタン */

.company-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    z-index: 2;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: #444;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.company-modal-close:hover {
    background: #f0f0f0;
}


/* ========================================
   モーダル内部
======================================== */

.company-detail {
    padding: 36px 40px 40px;
}


/* ヘッダー */

.company-detail-header {
    text-align: center;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
}


/* ロゴ */

.company-detail-header img {
    display: block;

    max-width: 320px;
    max-height: 140px;

    width: auto;
    height: auto;

    margin: 0 auto 20px;

    object-fit: contain;
}


/* 社名 */

.company-detail-header h2 {
    margin: 0 0 14px;

    font-size: 1.7rem;
    line-height: 1.4;

    color: #222;
}

.company-detail-header .company-name-body {
    overflow-wrap: anywhere;
}


/* タグ */

.company-detail-header .company-tags {
    margin-bottom: 0;
}


/* ----------------------------------------
   各セクション
---------------------------------------- */

.company-detail-section {
    padding: 24px 0;
    border-bottom: 1px solid #e8e8e8;
}

.company-detail-section:last-of-type {
    border-bottom: none;
}

.company-detail-section h3 {
    position: relative;

    margin: 0 0 12px;
    padding-left: 14px;

    font-size: 1.15rem;
    color: #333;
}

.company-detail-section h3::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.25em;

    width: 4px;
    height: 1.1em;

    border-radius: 2px;
    background: #2d5aa0;
}

.company-detail-section p {
    margin: 0;

    color: #555;
    line-height: 1.9;
}


/* ----------------------------------------
   企業情報
---------------------------------------- */

.company-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;

    margin: 0;

    font-size: 0.95rem;
}

.company-info dt,
.company-info dd {
    margin: 0;
    padding: 8px 0;
}

.company-info dt {
    font-weight: 600;
    color: #444;
}

.company-info dd {
    color: #555;
}


/* ----------------------------------------
   公式サイト
---------------------------------------- */

.company-detail-link {
    padding-top: 8px;
    text-align: center;
}

.company-detail-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;

    padding: 12px 24px;

    border-radius: 8px;

    background: #2d5aa0;
    color: #fff;

    text-decoration: none;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.company-detail-link a:hover {
    background: #234a85;
    transform: translateY(-2px);
}


/* ========================================
   モーダル表示中
======================================== */

body.modal-open {
    overflow: hidden;
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 900px) {

    .company-subsection {
        margin-bottom: 44px;
    }

    .company-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {

    .company-subsection {
        margin-bottom: 36px;
    }

    .company-subsection>h3 {
        gap: 10px;
        margin-bottom: 18px;
        font-size: 1.2rem;
        letter-spacing: 0.02em;
    }

    .company-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .company-card {
        border-radius: 12px;
    }

    .company-card-image {
        height: 180px;
        padding: 16px;
    }

    .company-card-image img {
        max-height: 180px;
        max-width: 98%;
    }

    .company-card-body {
        padding: 14px 12px;
    }

    .company-card-body h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .company-tags {
        gap: 4px;
        margin-bottom: 12px;
    }

    .company-tag {
        padding: 3px 7px;
        font-size: 0.68rem;
    }

    .company-detail-button {
        padding: 9px 8px;
        font-size: 0.82rem;
    }


    /* モーダル */

    .company-modal-content {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .company-detail {
        padding: 32px 20px 24px;
    }

    .company-detail-header {
        padding-bottom: 22px;
    }

    .company-detail-header img {
        max-width: 250px;
        max-height: 100px;
        margin-bottom: 16px;
    }

    .company-detail-header h2 {
        font-size: 1.35rem;
    }

    .company-detail-section {
        padding: 20px 0;
    }

    .company-detail-section h3 {
        font-size: 1rem;
    }

    .company-detail-section p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .company-info dl {
        grid-template-columns: 80px 1fr;
        font-size: 0.85rem;
    }

    .company-detail-link a {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

}

/* ===== アクセスセクション ===== */
.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;
}

.access-sns {
    margin-top: 20px;
}

.access-sns-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(30, 58, 138, 0.06));
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: 20px;
    padding: 20px 18px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.access-sns-kicker {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.access-sns h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.4;
    color: #111827;
}

.access-sns-text {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.access-sns-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.access-sns .nav-social {
    flex: 1 1 0;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.access-sns .nav-social:hover {
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.12);
    transform: translateY(-1px);
}

.access-sns .nav-social-icon {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* .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: 30vh;
    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/guest.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: #000000;
}

.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: 30vh;
    }

    .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-section {
    padding: 12px 0 20px;
}

.announcement-section-header {
    width: min(1100px, calc(100%));
    margin: 0 auto 12px;
}

.announcement-section-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-align: center;
}

.announcement-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   お知らせティッカー
   ========================= */

.announcement-ticker {
    display: flex;
    align-items: center;
    width: 100vw;
    height: 42px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.ticker-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: bold;
    z-index: 1;
}

.ticker-container {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    will-change: transform;
}

.ticker-scroll {
    display: inline-block;
    white-space: nowrap;
}

/* 無限横スクロール */
@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 {
    margin-top: 0;
    background: #111827;
    color: #fff;
    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;
    }

    .hero .hero-lead {
        font-size: 15px;
        line-height: 1.7;
    }

    .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;
}


/* =========================================================
   Guest Page
========================================================= */


/* =========================
   Common
========================= */

.guest-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.guest-section {
    padding: 80px 0;
}

.guest-section-gray {
    background: #f7f8fa;
}


/* =========================
   Section Title
========================= */

/*
    すべてのセクションを

             TITLE
        ───────────────

        CONTENT CONTENT

    という構造に統一
*/

.guest-section-title {
    margin-bottom: 45px;
    text-align: center;
}

.guest-section-title span {
    display: block;

    margin-bottom: 8px;

    color: #3d7cc9;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.22em;
}

.guest-section-title h2 {
    position: relative;

    margin: 0;
    padding-bottom: 20px;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.guest-section-title h2::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    width: 70px;
    height: 3px;

    transform: translateX(-50%);

    background: #3d7cc9;
}


/* =========================
   Hero
========================= */

.guest-hero {
    min-height: 55vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg,
            #0b5fa5 0%,
            #1685c7 50%,
            #45a9dc 100%);
}

.guest-hero::before,
.guest-hero::after {
    display: none;
}

@media (max-width: 600px) {

    .guest-hero {
        min-height: 480px;

        background:
            linear-gradient(to bottom,
                rgba(0, 0, 0, 0.05),
                rgba(0, 0, 0, 0.55)),
            url("./images/guest.jpg") center / cover no-repeat;
    }

}

.guest-hero-overlay {
    width: 100%;
    padding: 40px 20px;
}

.guest-hero-label {
    margin: 0 0 10px;

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 0.25em;
}

.guest-hero h1 {
    margin: 0;

    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;

    letter-spacing: 0.05em;
}

.guest-hero-subtitle {
    margin: 20px 0 0;

    font-size: clamp(1rem, 3vw, 1.4rem);
}


/* =========================
   Card Grid
========================= */

.guest-card-grid {
    width: 100%;
    display: grid;
    gap: 22px;
}


/*
    基本は3列。
    各セクションで必要に応じて
    2列などに変更。
*/

.guest-card {
    min-width: 0;

    padding: 32px;

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);
}

.guest-card h3 {
    margin: 12px 0 15px;

    font-size: 1.3rem;
    line-height: 1.5;
}

.guest-card p {
    margin: 0;

    color: #555;

    line-height: 1.8;
}

.guest-card-label {
    display: block;

    color: #3d7cc9;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.15em;
}

.guest-card-number {
    display: block;

    color: #3d7cc9;

    font-size: 0.85rem;
    font-weight: 800;

    letter-spacing: 0.08em;
}


/* =========================
   Event
========================= */

.guest-event-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.guest-event-card h3 {
    font-size: 1.6rem;
}

.guest-event-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guest-event-detail h3 {
    margin-bottom: 5px;
}


/* =========================
   Profile
========================= */

.guest-profile-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.guest-profile-card {
    grid-row: span 2;
}

.guest-profile-image {
    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 12px;
}

.guest-profile-image img {
    display: block;

    width: 100%;
    height: auto;
}

.guest-profile-card h3 {
    font-size: 1.7rem;
}

.guest-profile-lead {
    font-size: 1rem;
    font-weight: 700;
}

.guest-profile-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guest-profile-stat strong {
    display: block;

    margin: 10px 0;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
}


/* =========================
   Activities
========================= */

.guest-activity-grid {
    grid-template-columns: repeat(4, 1fr);
}

.guest-activity-grid .guest-card {
    padding: 28px;
}


/* =========================
   History
========================= */

.guest-history-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* =========================
   SASUKE
========================= */

.guest-sasuke-grid {
    grid-template-columns: 1fr 1fr;
}

.guest-sasuke-card {
    background: #17243a;
    color: #fff;
}

.guest-sasuke-card p {
    color: rgba(255, 255, 255, 0.8);
}

.guest-sasuke-card .guest-card-number {
    color: #8fc4ff;

    font-size: 4rem;
    line-height: 1;
}


/* =========================
   Miyagi
========================= */

.guest-miyagi-grid {
    grid-template-columns: 1fr;
}

.guest-miyagi-card {
    text-align: center;
}

.guest-miyagi-card p {
    max-width: 650px;
    margin: 12px auto 0;
}


/* =========================
   Book
========================= */

.guest-book-grid {
    grid-template-columns: minmax(0, 700px);

    justify-content: center;
}

.guest-book-card {
    text-align: center;
}

.guest-book-cover {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 0.7;

    margin: 0 auto 30px;

    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}

.guest-book-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.guest-book-placeholder {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;

    font-weight: 800;
    letter-spacing: 0.15em;
}

.guest-book-card h3 {
    max-width: 600px;
    margin: 15px auto;

    font-size: 1.4rem;
    line-height: 1.7;
}


/* =========================
   Video
========================= */

.guest-video-grid {
    grid-template-columns: 1fr 1fr;
}

.guest-video-card {
    padding: 12px;
}

.guest-video-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;

    border-radius: 10px;
}

.guest-video-frame iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: none;
}

.guest-section-lead {
    max-width: 700px;

    margin:
        -20px auto 35px;

    text-align: center;

    line-height: 1.9;
}

.guest-button-area {
    margin-top: 30px;

    text-align: center;
}

.guest-button {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid #3d7cc9;
    border-radius: 999px;

    color: #3d7cc9;

    text-decoration: none;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.guest-button:hover {
    background: #3d7cc9;
    color: #fff;
}


/* =========================
   SNS
========================= */

.guest-social-grid {
    grid-template-columns: repeat(3, 1fr);
}

.guest-social-card {
    display: block;

    color: #fff;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-social-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);
}

.guest-social-card h3 {
    margin-bottom: 5px;

    color: #fff;
}

.guest-social-card p {
    color: rgba(255, 255, 255, 0.85);
}


/* YouTube */

.guest-social-youtube {
    background: #ff0000;
}


/* X */

.guest-social-x {
    background: #000;
}


/* Instagram */

.guest-social-instagram {
    background: linear-gradient(135deg,
            #833ab4 0%,
            #e1306c 50%,
            #fd1d1d 75%,
            #fcb045 100%);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {

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

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

    .guest-event-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guest-event-card {
        grid-column: span 2;
    }

    .guest-profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guest-profile-card {
        grid-column: span 2;
        grid-row: auto;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 600px) {

    .guest-container {
        width: min(100% - 30px, 500px);
    }

    .guest-section {
        padding: 60px 0;
    }


    /* 全て1列 */

    .guest-card-grid,
    .guest-event-grid,
    .guest-profile-grid,
    .guest-activity-grid,
    .guest-history-grid,
    .guest-sasuke-grid,
    .guest-video-grid,
    .guest-social-grid {
        grid-template-columns: 1fr;
    }


    /* 横並び解除 */

    .guest-event-card,
    .guest-profile-card {
        grid-column: auto;
        grid-row: auto;
    }


    /* Section */

    .guest-section-title {
        margin-bottom: 35px;
    }

    .guest-section-title h2 {
        font-size: 1.7rem;
    }


    /* Card */

    .guest-card {
        padding: 25px;
    }


    /* Hero */

    .guest-hero {
        min-height: 48vh;
    }

    .guest-hero h1 {
        font-size: 3.2rem;
    }

    .guest-hero-label {
        font-size: 0.75rem;
    }


    /* Profile */

    .guest-profile-image {
        margin-bottom: 20px;
    }

    .guest-profile-stat {
        min-height: 150px;
    }


    /* Book */

    .guest-book-cover {
        width: 180px;
    }

    .guest-book-card h3 {
        font-size: 1.2rem;
    }


    /* Video */

    .guest-video-card {
        padding: 10px;
    }


    /* SNS */

    .guest-social-card {
        padding: 25px;
    }

}



/* アクセス */
.access-container {
    flex-direction: column;
}

/* .map iframe {
    height: 250px;
} */

/* フッター */
/* footer {
    margin-top: 80px;
    background: #111827;
    color: #fff;
} */


/* =========================
   メインフッター
========================= */

.footer-container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 60px 0 50px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
}


/* 各セクション */

.footer-section h3 {
    margin: 0 0 20px;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}


/* リンク */

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #fff;
}


/* =========================
   ブランド・学校情報
========================= */

.footer-brand {
    padding-right: 20px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.footer-brand h3 {
    margin-bottom: 5px;
}

.footer-brand p {
    margin: 0 0 15px;
    line-height: 1.7;
}

.footer-address {
    color: #9ca3af;
    font-size: 0.9rem;
}


/* =========================
   SNS
========================= */

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* =========================
   法務・案内リンク
========================= */

.footer-legal {
    width: min(1200px, 90%);
    margin: 0 auto;

    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    display: none;
}


/* =========================
   コピーライト
========================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    padding: 18px 20px;
}

.footer-bottom p {
    margin: 0;

    color: #6b7280;
    font-size: 0.8rem;
}


/* =========================
   タブレット
========================= */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}


/* =========================
   スマートフォン
========================= */

@media (max-width: 600px) {

    .footer-container {
        width: 88%;
        padding: 45px 0 40px;

        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        width: 160px;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }

    .footer-section li {
        font-size: 0.9rem;
        margin-bottom: 9px;
    }

    .footer-legal {
        width: 100%;
        line-height: 1.8;
        text-align: left;
    }
}


@media (max-width: 400px) {

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-legal {
        flex-direction: column;
        gap: 3px;
    }

    .footer-legal span {
        display: none;
    }
}