body {
    overflow-x: hidden;
}
.basefile-bottom {
    margin-bottom: 80px;
}
.addhomebox {
    display: flex;
    justify-content: center;
}
/* タブリストをスワイプ可能にする（モバイル用） */
@media (max-width: 768px) {
    .header-container {
        display: none;
    }
    .masthead {
        height: 10vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1000;
    }
    .container {
        height: 75vh;
        /* height: calc(100% - 10vh - 60px); */
        padding-left: 0;
        padding-right: 0;
    }
    .nav-tabs {
        margin-top:10px;
    }
    #navarea {
        z-index: 2000;
    }
    #navarea .text-center {
        flex: 0 1 auto;
        max-width: 150px;
        min-width: 100px;
        overflow: hidden;
    }
    #shopTabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    #shopTabs .nav-item {
        display: inline-block;
        width: auto;
        flex: 0 0 auto;
    }
    #shopTabs .nav-link {
        padding: 0.5rem 1rem;
    }
    /* .masthead {
        position: fixed;
        top: 0;
        width: 100%;
    } */
    .mobile-shop-card, 
    .mobile-event-card,
    .mobile-item-card
    {
        height: 230px;
    }
    .card-body {
        display: flex;
        justify-content: space-between;
    }
    .card-imagebox {
        width: 50%;
        height: 100%;
    }
    .card-textbox {
        width: 50%;
        height: 100%;
    }
}
#question-form {
    display: none;
}
/* PCでは均等配置で中央寄せ */
@media (min-width: 769px) {
    .masthead {
        height: 320px;
        min-height: 15vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1000 !important;
    }
    .header-container {
        background-image: url(fukuistation001.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        width: 100vw;
        max-height: 40vh;
        min-height: 240px;
    }
    #map {
        position: relative; /* ボタンの絶対位置の基準にする */
        aspect-ratio: 16 / 9;
        max-width: 1500px;
        width: 100%;
        height: auto;
        min-height: 400px;
        max-height: 30vh;
    }
    .nav-tabs {
        margin-top: 30px;
    }
    #shopTabs .nav-item {
        flex: 1;
    }
    #shopTabs .nav-link {
        font-size: 1rem;
        text-align: center;
    }
}

.weather-infos {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.historyplans-list {
    list-style-position: inside;
}
.historyplans-list a {
    text-decoration: none;
    color: #000000;
    position: relative;
}
.historyplans-list a:after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #000000;
    bottom: 4px; /*アンダーラインが現れ始める位置（aタグの下辺からの高さ）*/
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.historyplans-list a:hover:after {
    visibility: visible;
    bottom: 12px; /*アニメーションが止まる位置*/
    opacity: 1;
}
.transportation {
    list-style: none;
    display: flex;
    justify-content: left;
    align-items: center;
}
.transportation ul a {
    text-decoration: none;
    color:black;
}
.flash-messages ul {
    list-style: none;
}
.gmap_iframe {
    aspect-ratio: 16 / 9;
    max-width: 1000px;
    width: 100%;
    max-height: 40vh;
    height: auto;
    z-index: 2000;
}
/* 位置固定ボタンのスタイル */
.location-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #007bff;
    border: none;
    cursor: pointer;
}
.location-button:hover {
    background-color: #0056b3;
}
/* リロードボタン（地図リセット） */
.reset-button {
    position: absolute;
    top: 20px;
    right: 20px;   /* 右上に配置 */
    z-index: 1999;
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    border: none;
    cursor: pointer;
}

.reset-button:hover {
    background-color: #e6e6e6;
}
.clearweather {
    /* background-color: #87CEEB !important; */
    background-image: url('/static/images/sunsetbeach.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.cloudweather {
    background-color: #d3d3d3 !important;
}
.rainweather {
    background: linear-gradient(to bottom, #6b6e70, #a0a4a8, #d3d6d8) !important;
}
.snowweather {
    background-color: white !important;
}
.drizzleweather {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(200, 200, 200, 0.5)) !important;
}
.thunderstormweather {
    background: linear-gradient(to bottom, #2c3e50, #34495e) !important;
}

.loading-overlay {
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .basefile-bottom {
        margin-bottom: 0 !important;
    }
    #map {
        max-width: 100%;
        width: 100vw;
        height: 80vh;
    }
    /* #map {
        height: 50vh;
    } */
    #mobile-shop-carousel {
        height: 400px;
        /* height: 50vh; */
        overflow-y: auto;
        background: #f8f9fa;
    }
    .leaflet-right:has(.leaflet-routing-container) {
        top: 0;
        /* top: 50vh; */
        right: auto;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-height: 50%;
        display: flex;
        justify-content: center;
        overflow-y: scroll;
    }
    .leaflet-routing-container {
        max-height: 100%; /* 親要素内で最大限表示 */
        overflow-y: auto; /* スクロールが発生する場合のみスクロール */
        display: none;
    }
    .location-button {
        bottom: 70px;
    }
}
#transportation-rentalcar a {
    text-decoration: none;
    color:#198754;
}
#transportation-rentalcar a:hover {
    color: white;
}
#transportation-taxi a {
    text-decoration: none;
    color:#198754;
}
#transportation-taxi a:hover {
    color: white;
}
.youtube_iframe {
    aspect-ratio: 16 / 9;
    max-width: 1000px;
    width: 100%;
    height: auto;
}
.selector-for-some-widget {
    box-sizing: content-box;
}
.col-lg-8 {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}
.container h2 {
    margin-bottom: 30px;
}
.flex-card {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.checkout-btn {
    width: 150px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background-color: green;
}
.checkout-btn a {
    text-decoration: none;
    color: white;
    font-size: 1em;
}
.checkout-btn:hover {
    background-color: greenyellow;
}
.footer-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-box ul {
    padding-left: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
.icon-position {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.x-img {
    width: 50% !important;
    height: auto;
    filter: invert(37%) sepia(96%) saturate(1312%) hue-rotate(124deg) brightness(99%) contrast(95%);
}

/* eiheiji.html */
.highlight-header {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* 蛍光マーカーアニメーション */
.highlight-header.highlighted::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.5em;
    background: rgba(63, 195, 128, 0.6);
    animation: marker 1s ease-out forwards;
}

@keyframes marker {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* トップに戻るボタンのスタイル */
#backToTop {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 10px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s;
}

#backToTop:hover {
    background-color: #0056b3; /* ホバー時の色 */
}

.carousel-inner {
    width: 100%;
    height: auto; /* 高さは画像とカードに合わせて可変 */
}
.carousel-inner img {
    width: 100%;
    height: auto;
}
/* mypage.html & home.htmlのSOLD OUTボタンのスタイル */
.sold-out-badge {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
}
.imagebox-inner {
    list-style: none;
    display: grid;
}
.carousel-image {
    height: 50vh;
}
/* スマートフォン用 */
@media (max-width: 576px) {
    /* usagefee.html */
    .usagefee-list {
        width: 90vw;
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .usagefee-list ul {
        text-align: left;
        display: inline-block;
        background: #888;
        list-style: none;
        padding: 0;
    }
    .carousel-image {
        height: 40vh;
    }
}
/* タブレット用 */
@media (min-width: 577px) and (max-width: 768px) {
    /* usagefee.html */
    .usagefee-list {
        width: 80vw;
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .usagefee-list ul {
        text-align: left;
        display: inline-block;
        background: #888;
        list-style: none;
        padding: 0;
    }
    .carousel-image {
        height: 45vh;
    }
    /* .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    } */
}
/* 大きなデスクトップ用 */
@media (min-width: 1200px) {
    .usagefee-list {
        width: 70vw;
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .usagefee-list ul {
        text-align: left;
        display: inline-block;
        background: #888;
        list-style: none;
        padding: 0;
    }
    .carousel-image {
        height: 60vh;
    }
    /* .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    } */
}
/* 各スライドを縦方向に分割 */
.carousel-item {
    /* Bootstrap が transform: translateX() で動かすので、flex や block 指定は不要 */
    position: relative;
}
/* .carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 250px;
} */

/* 画像部分は上側固定 */
.carousel-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}
/* .carousel-item img {
    flex-shrink: 0;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
} */

/* テキスト部分は下側に自然配置 */
.carousel-item .card-body {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}
.carousel-item .card-title,
.carousel-item .card-text {
    color: #000 !important; /* Bootstrap テーマ色を上書き */
}
/* .carousel-item img {
    max-height: 100%;
} */
.imagebox-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.imagebox-inner li {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 0.8;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}
.imagebox-inner li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.shop-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}
.shop-name {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
    font-weight: bold;
}
.shop-hours {
    font-size: 14px;
}
.shop-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.shop-icons a i,
.shop-icons a svg {
    color: #06b259;
    width: 24px;
    height: 24px;
}
.delete-image-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.delete-image-btn:hover {
    opacity: 1;
}
/* スマホ対応 */
@media (max-width: 600px) {
    .imagebox-inner {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .delete-image-btn {
        font-size: 10px;
        padding: 3px 7px;
    }
    /* .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    } */
}
.fixedfooter {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    color: white;
    text-align: center;
    z-index: 1000;
    overflow: hidden;
}
.fixedfooter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
}
.fixedfooter .container {
    position: relative;
    z-index: 1;
    line-height: normal;
    color: white;
}
.fixedfooter-menu a {
    text-decoration: none;
    color: #000000;
}
.footer-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
}
.footer-list .list-inline-item {
    display: inline-flex;
    margin: 0 12px;
}
.fixedfooter-listbox__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 0;
}
.fixedfooter-listbox__inner svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}
.fixedfooter-listbox__inner p {
    font-size: 12px;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.fixedfooter-listbox__inner i {
    font-size: 18px;
    margin-bottom: 3px;
}
/* footerメニュー：shops.htmlのCSS */
#tab-content {
    margin-bottom: 100px;
}
.tabs {
        margin-bottom: 20px;
}
.tab-button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    background-color: #eee;
    cursor: pointer;
}
.tab-button.active {
    background-color: #ccc;
    font-weight: bold;
}
.tab-section {
    display: none;
}
.tab-section.active {
    display: block;
}
.container-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.travelproduce-info ul {
    list-style: none;
}
.recruitment-info {
    height: 400px;
}
.recruitment-info h3 {
    font-size: 20px;
}
.section {
    display: flex;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
}
.section:nth-child(even) {
    flex-direction: row-reverse;
}
.circle-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 10px;
    flex-shrink: 0;
}
.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text {
    flex: 1;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.text h2 {
    margin: 0 0 10px;
}
.text ul {
    padding-left: 20px;
    margin: 10px 0;
}
.text ul li {
    margin-bottom: 5px;
}
.links a {
    margin-right: 10px;
    text-decoration: none;
    color: #007bff;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.media-grid img,
.media-grid video {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 8px;
}
.emergency-area {
    background-image: url('/static/images/emergency.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 1 / 1;
    width: 240px;
    height: 240px;
    border: 2px solid red;
    border-radius: 12px;
    text-decoration: none;
    color: black;
}
/* .emergency-box {
    width: 240px;
    height: 240px;
    border: 2px solid red;
    border-radius: 12px;
    background-color: #fff5f5;
    text-decoration: none;
    color: black;
} */
/* .emergency-box:hover {
    background-color: #ffe5e5;
} */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.loading-top {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.loading-top img {
    max-height: 80%;
    max-width: 80%;
    height: auto;
}
.loading-bottom {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.icon-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ← 上詰めで統一 */
    align-items: center;
    text-align: center;
    width: 80px;
    height: 120px; /* ← min-height を height に変更して固定 */
    box-sizing: border-box; /* パディング等を含めて高さ統一 */
}

/* アイコン画像 */
.icon-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem auto; /* 中央揃え */
}

/* テキスト */
.icon-item p {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .loading-top {
        height: 45%;
    }
    .loading-top img {
        max-height: 70%;
    }
    .icon-item img {
        width: 55px;
        height: 55px;
    }
}
@media (max-width: 576px) {
    .loading-top {
        height: 30%; /* ← スマホでは30%に調整 */
    }
    .loading-top img {
        max-height: 60%;
    }
    .loading-bottom {
        height: 70%; /* ← 下部に多く割り当て */
    }
    .icon-item img {
        width: 36px;
        height: 36px;
    }
}

.switch {
  font-size: 1rem;
  position: relative;
}
.switch input {
  position: absolute;
  height: 1px;
  width: 1px;
  background: none;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  padding: 0;
}
.switch input + label {
  position: relative;
  min-width: calc(calc(2.375rem * .8) * 2);
  border-radius: calc(2.375rem * .8);
  height: calc(2.375rem * .8);
  line-height: calc(2.375rem * .8);
  display: inline-block;
  cursor: pointer;
  outline: none;
  user-select: none;
  vertical-align: middle;
  text-indent: calc(calc(calc(2.375rem * .8) * 2) + .5rem);
}
.switch input + label::before,
.switch input + label::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(calc(2.375rem * .8) * 2);
  bottom: 0;
  display: block;
}
.switch input + label::before {
  right: 0;
  background-color: #dee2e6;
  border-radius: calc(2.375rem * .8);
  transition: 0.2s all;
}
.switch input + label::after {
  top: 2px;
  left: 2px;
  width: calc(calc(2.375rem * .8) - calc(2px * 2));
  height: calc(calc(2.375rem * .8) - calc(2px * 2));
  border-radius: 50%;
  background-color: white;
  transition: 0.2s all;
}
.switch input:checked + label::before {
  background-color: #08d;
}
.switch input:checked + label::after {
  margin-left: calc(2.375rem * .8);
}
.switch input:focus + label::before {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 136, 221, 0.25);
}
.switch input:disabled + label {
  color: #868e96;
  cursor: not-allowed;
}
.switch input:disabled + label::before {
  background-color: #e9ecef;
}
.switch.switch-sm {
  font-size: 0.875rem;
}
.switch.switch-sm input + label {
  min-width: calc(calc(1.9375rem * .8) * 2);
  height: calc(1.9375rem * .8);
  line-height: calc(1.9375rem * .8);
  text-indent: calc(calc(calc(1.9375rem * .8) * 2) + .5rem);
}
.switch.switch-sm input + label::before {
  width: calc(calc(1.9375rem * .8) * 2);
}
.switch.switch-sm input + label::after {
  width: calc(calc(1.9375rem * .8) - calc(2px * 2));
  height: calc(calc(1.9375rem * .8) - calc(2px * 2));
}
.switch.switch-sm input:checked + label::after {
  margin-left: calc(1.9375rem * .8);
}
.switch.switch-lg {
  font-size: 1.25rem;
}
.switch.switch-lg input + label {
  min-width: calc(calc(3rem * .8) * 2);
  height: calc(3rem * .8);
  line-height: calc(3rem * .8);
  text-indent: calc(calc(calc(3rem * .8) * 2) + .5rem);
}
.switch.switch-lg input + label::before {
  width: calc(calc(3rem * .8) * 2);
}
.switch.switch-lg input + label::after {
  width: calc(calc(3rem * .8) - calc(2px * 2));
  height: calc(calc(3rem * .8) - calc(2px * 2));
}
.switch.switch-lg input:checked + label::after {
  margin-left: calc(3rem * .8);
}
.switch + .switch {
  margin-left: 1rem;
}

/* body {
  padding: 1rem;
} */

.contentA {
  display: none;
}
/* 共通パララックススタイル */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh; /* 画面全体を埋める */
  color: white;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax h2,
.parallax h3,
.parallax p,
.parallax ul,
.parallax li {
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* スマホ対策: iOS Safariなどで固定背景が効かない場合 */
@media (max-width: 768px) {
  .parallax {
        background-attachment: scroll; /* 固定をオフに */
        background-size: cover;
        min-height: auto; /* 高さはコンテンツに応じる */
        padding: 60px 15px;
  }
  #backToTop {
        bottom: 30px;
        right: 20px;
        font-size: 16px;
    }
}

.line-add-button {
    display: inline-block;
    background-color: #06C755; /* :contentReference[oaicite:0]{index=0}グリーン */
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}
/* receiptgacha.htmlのCSS */
#cameraContainer {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
#cameraPreview {
    width: 100%;
    border-radius: 10px;
}
#guideFrame {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 3px solid red;
    border-radius: 10px;
    pointer-events: none;
}
#status {
    margin-top: 10px;
    text-align: center;
}
#captureBtn, #uploadBtn {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
}
#previewList img {
    width: 80px;
    margin: 5px;
    border: 1px solid #ccc;
}

h2.section-title {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: #444;
}
.progress {
    height: 1.2rem;
    background-color: #eee;
}
.progress-bar {
    background-color: #ff9966;
    font-weight: bold;
}
#cameraContainer {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}
video {
    width: 100%;
    height: auto;
    display: block;
}
#guideFrame {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    border: 2px dashed #ff9966;
    border-radius: 6px;
    pointer-events: none;
}
#status {
    text-align: center;
    margin-top: 0.5rem;
    color: #888;
}
.camera-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.camera-btns button {
    width: 40%;
    font-size: 1rem;
}
/* 撮影履歴 */
.receipt-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: #fff;
}
.reward-zone {
    text-align: center;
    background: #fff4e6;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.btn-gacha {
    background-color: #ff9966;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    border: none;
}

/* コレクション */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.character-card {
    background: white;
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.character-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}
/* ガチャマシン */
.machine {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 2rem auto;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff, #ffb380);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 6px 15px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}
.capsule {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #f3b04d);
    position: absolute;
    opacity: 0;
    transform: scale(0.3);
    animation: spin 3s ease-out forwards;
}
@keyframes spin {
    0% { opacity: 0; transform: scale(0.3) rotate(0deg); top: 50%; }
    50% { opacity: 1; transform: scale(1.2) rotate(720deg); top: 20%; }
    100% { opacity: 1; transform: scale(1) rotate(1080deg); top: 45%; }
}
.result-card {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 3.2s;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.result-card h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}
.rarity {
    font-weight: bold;
    color: #ff6600;
}
.btn-area {
    margin-top: 2rem;
}
/* デバイスサイズがモバイル(screen.width < 768px)の場合、
 * タップしたマーカーに対応するカードを地図の上の下側に表示。
*/
.mobile-shop-card,
.mobile-event-card,
.mobile-item-card {
    display: none;
    opacity: 0;
    transform: translateY(10%);
    transition: all 0.3s ease;
}
.mobile-shop-card.showcard,
.mobile-event-card.showcard,
.mobile-item-card.showcard {
    position: absolute;
    left: 0;
    width:100%;
    height: 40vh;
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0%);
    bottom: 0 !important;
    z-index: 9999 !important;
}
/* 閉じる動作をするためのボタン（後でJSで付与可能） */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s ease;
}
.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.hidden {
    display: none;
}

/* ======================================
 * FukuiSta LP（fukuistalp.html）用
 * ====================================== */

.lp-wrapper {
    background-color: #f8f9fa;
}

/* parallax の高さがキツいので LP 内では調整 */
.lp-wrapper .parallax {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ヒーロー */

.lp-hero {
    position: relative;
    min-height: 70vh;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
}

.lp-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
}

.lp-hero-title {
    font-size: 2.1rem;
    line-height: 1.4;
}

.lp-hero-lead {
    font-size: 1.05rem;
    max-width: 40rem;
}

.lp-hero-cta-group .btn {
    min-width: 220px;
}

.lp-hero-note {
    max-width: 260px;
    opacity: 0.9;
}

/* セクション共通 */

.lp-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.lp-section-image {
    max-width: 360px;
}

/* カード類（他ページの .card-body flex を上書き） */

.lp-wrapper .card-body {
    display: block;
}

.lp-feature-card,
.lp-benefit-card,
.lp-price-card,
.lp-plan-card {
    border-radius: 16px;
}

/* プランカード */

.lp-price-card--highlight {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.4);
}

/* 商品・イベントプラン内カード揃え */

.lp-plan-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* LINE セクション */

.lp-line-section .lp-line-inner {
    max-width: 1080px;
}

/* FAQ 背景の読みやすさ */

.lp-faq-section .accordion-button {
    font-size: 0.95rem;
}

/* 最後の CTA */

.lp-final-cta .container {
    max-width: 720px;
}

/* =========================
 * モバイル（〜768px）
 * ========================= */

@media (max-width: 768px) {

    /* base.css の .container { height:75vh; } を LP 内だけ打ち消し */
    .lp-wrapper .container {
        height: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .lp-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .lp-hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .lp-hero-title {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .lp-hero-lead {
        font-size: 0.95rem;
    }

    .lp-hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-hero-cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .lp-hero-note {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .lp-section-image {
        max-width: 260px;
    }

    .lp-wrapper .card {
        border-radius: 14px;
    }

    .lp-wrapper .album.container {
        padding: 2rem 1.25rem;
    }

    .lp-faq-section {
        background-attachment: scroll;
    }
}

/* =========================
 * タブレット（769〜991px）
 * ========================= */

@media (min-width: 769px) and (max-width: 991px) {
    .lp-hero-title {
        font-size: 1.8rem;
    }
}
