/* ==========================================================================
   オリパラ — Base Styles
   Mobile-first responsive CSS
   ========================================================================== */

:root {
    --color-primary: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-primary-light: #EEF2FF;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #F9FAFB;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.is-lp .header {
    position: relative;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header__nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
}

.header__nav.is-open {
    display: flex;
}

.header__nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.header__nav-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

@media (min-width: 768px) {
    .header__menu-btn { display: none; }

    .header__nav {
        display: flex;
        position: static;
        flex-direction: row;
        border-bottom: none;
        padding: 0;
        gap: 4px;
    }

    .header__nav-link {
        padding: 8px 16px;
    }
}

/* ==========================================================================
   Main
   ========================================================================== */
.main {
    flex: 1;
    padding: 24px 0 48px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
}

.footer__inner {
    text-align: center;
}

.footer__nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer__nav a {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.footer__copy {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.breadcrumb__link {
    color: var(--color-text-light);
}

.breadcrumb__link:hover {
    color: var(--color-primary);
}

.breadcrumb__sep {
    color: var(--color-border);
    margin: 0 2px;
}

.breadcrumb__current {
    color: var(--color-text);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    text-align: center;
    padding: 48px 0 40px;
}

.hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__search {
    max-width: 480px;
    margin: 0 auto;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.hero__tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.hero__tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

@media (min-width: 768px) {
    .hero { padding: 72px 0 56px; }
    .hero__title { font-size: 2.5rem; }
    .hero__subtitle { font-size: 1.125rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary-light);
}

/* ==========================================================================
   Section
   ========================================================================== */
.section {
    margin-top: 48px;
}

.section__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .section__title { font-size: 1.375rem; }
}

.section__desc {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.section__cta {
    margin-top: 20px;
}

/* ==========================================================================
   Card Grid
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.card__body {
    padding: 20px;
}

.card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.card__desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Page Title
   ========================================================================== */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ==========================================================================
   Coming Soon
   ========================================================================== */
.coming-soon {
    text-align: center;
    padding: 64px 0;
}

.coming-soon__text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.coming-soon__sub {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 64px 0;
}

.error-page h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.error-page p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ==========================================================================
   Article
   ========================================================================== */
.article__header {
    margin-bottom: 32px;
}

.article__category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .article__title { font-size: 2rem; }
}

.article__meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.article__updated {
    color: var(--color-text-light);
}

/* Article Body */
.article__body {
    max-width: 100%;
}

.article__body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}
@media (min-width: 768px) {
    .article__body h2 { font-size: 1.375rem; }
}

.article__body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 32px 0 12px;
}

.article__body p {
    margin-bottom: 16px;
}

.article__body ul, .article__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article__body li {
    margin-bottom: 4px;
}

.article__body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--color-primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-light);
}

.article__body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

.article__body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.article__body th, .article__body td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.9375rem;
}

.article__body th {
    background: var(--color-primary-light);
    font-weight: 600;
}

/* Article Table Wrap */
.article-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

/* Article TOC */
.article-toc {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.article-toc__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.article-toc__summary::-webkit-details-marker { display: none; }

.article-toc__icon { display: flex; color: var(--color-primary); }

.article-toc__list {
    margin-top: 12px;
    padding-left: 20px;
    list-style: none;
    counter-reset: toc;
}

.article-toc__item {
    margin-bottom: 6px;
}

.article-toc__item a {
    color: var(--color-text);
    font-size: 0.9375rem;
}

.article-toc__item a:hover {
    color: var(--color-primary);
}

.article-toc__item--h3 {
    padding-left: 20px;
}

/* Article Boxes */
.article-box {
    background: var(--color-primary-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
}

.article-box--memo {
    background: #FFFBEB;
    border-left: 4px solid var(--color-warning);
}

.article-box--alert {
    background: #FEF2F2;
    border-left: 4px solid var(--color-danger);
}

.article-box__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.article-box__body p { margin-bottom: 8px; }
.article-box__body p:last-child { margin-bottom: 0; }
.article-box__body ul { padding-left: 20px; margin: 0; }

/* Article Say (Bubble) */
.article-say {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.article-say__bubble {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    flex: 1;
    position: relative;
}

.article-say__bubble p { margin-bottom: 8px; }
.article-say__bubble p:last-child { margin-bottom: 0; }

/* Article FAQ */
.article-faq {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 16px 0;
    overflow: hidden;
}

.article-faq__question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.article-faq__question::-webkit-details-marker { display: none; }

.article-faq__q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.article-faq__answer {
    padding: 0 20px 16px 60px;
}

.article-faq__answer p { margin-bottom: 8px; }
.article-faq__answer p:last-child { margin-bottom: 0; }

/* Article Pros/Cons */
.article-proscons {
    margin: 16px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-proscons__title {
    font-weight: 700;
    padding: 12px 20px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.article-proscons__grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .article-proscons__grid { grid-template-columns: 1fr 1fr; }
}

.article-proscons__col { padding: 16px 20px; }

.article-proscons__col--pros { background: #F0FDF4; }
.article-proscons__col--cons { background: #FEF2F2; }

.article-proscons__label {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.article-proscons__label--pros { color: var(--color-success); }
.article-proscons__label--cons { color: var(--color-danger); }

.article-proscons__col ul {
    padding-left: 18px;
    margin: 0;
}

.article-proscons__col li {
    margin-bottom: 4px;
    font-size: 0.9375rem;
}

/* Article Inline Elements */
.article-marker {
    background: linear-gradient(transparent 60%, #FDE68A 60%);
    padding: 0 2px;
}

.article-marker--red {
    background: linear-gradient(transparent 60%, #FECACA 60%);
}

.article-note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.article-btn-wrap {
    text-align: center;
    margin: 24px 0;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}

.article-btn:hover {
    background: var(--color-primary-dark);
}

.article-samples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.article-samples img {
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    object-fit: cover;
}

.article-figure {
    margin: 16px 0;
    text-align: center;
}

.article-figure img {
    border-radius: var(--radius-sm);
    margin: 0 auto;
}

.article-inline-img {
    max-height: 400px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Shop Ranking (一覧ランキング)
   ========================================================================== */
.shop-ranking {
    margin-bottom: 32px;
}

.shop-ranking__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-ranking__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .shop-ranking__grid { grid-template-columns: repeat(2, 1fr); }
}

.shop-ranking__card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
}

.shop-ranking__label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.shop-ranking__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.shop-ranking__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9375rem;
}

.shop-ranking__item:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.shop-ranking__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--color-border);
    color: var(--color-text-light);
}

.shop-ranking__item:first-child .shop-ranking__position {
    background: var(--color-warning);
    color: var(--color-white);
}

.shop-ranking__name {
    flex: 1;
    font-weight: 600;
    color: var(--color-text);
}

.shop-ranking__name:hover {
    color: var(--color-primary);
}

.shop-ranking__score {
    color: var(--color-warning);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Shop Filter (一覧フィルタ)
   ========================================================================== */
.shop-filter {
    margin-bottom: 16px;
}

.shop-filter__games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter__tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.shop-filter__tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-filter__tag.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.shop-filter__empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 32px 0;
}

/* ==========================================================================
   Shop Sort (一覧ソート)
   ========================================================================== */
.shop-sort {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.shop-sort__btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.shop-sort__btn:hover {
    color: var(--color-text);
}

.shop-sort__btn.is-active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Shop Grid (一覧)
   ========================================================================== */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Shop Card (一覧カード)
   ========================================================================== */
.shop-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shop-card__header {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shop-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.shop-card__stars {
    color: var(--color-warning);
    letter-spacing: 1px;
}

.shop-card__score {
    font-weight: 700;
    color: var(--color-text);
}

.shop-card__count {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.shop-card__body {
    padding: 16px 20px;
    flex: 1;
}

.shop-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.shop-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 10px;
    border-radius: 20px;
}

.shop-card__specs {
    width: 100%;
    font-size: 0.875rem;
    margin-bottom: 12px;
    border-collapse: collapse;
}

.shop-card__specs th {
    text-align: left;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 4px 8px 4px 0;
    white-space: nowrap;
    width: 30%;
}

.shop-card__specs td {
    padding: 4px 0;
}

.shop-card__ratings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.shop-card__rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-card__rating-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    width: 48px;
    flex-shrink: 0;
}

.shop-card__rating-bar {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.shop-card__rating-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.shop-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.shop-card__feature {
    font-size: 0.6875rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.shop-card__actions {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Shop Detail (個社ページ)
   ========================================================================== */
.shop-detail {
    padding-bottom: 72px;
}

@media (min-width: 768px) {
    .shop-detail { padding-bottom: 0; }
}

.shop-detail__header {
    margin-bottom: 24px;
}

.shop-detail__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .shop-detail__title { font-size: 2rem; }
}

.shop-detail__rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.shop-detail__stars {
    color: var(--color-warning);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.shop-detail__score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.shop-detail__count {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Shop Info Table
   ========================================================================== */
.shop-info {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.shop-info__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-info__details {
    margin-bottom: 0;
}

.shop-info__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    padding: 8px 0;
}

.shop-info__toggle::-webkit-details-marker { display: none; }

.shop-info__toggle::after {
    content: '▼';
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.shop-info__details[open] > .shop-info__toggle::after {
    transform: rotate(180deg);
}

.shop-info__details[open] > .shop-info__toggle {
    margin-bottom: 0;
}

.shop-info__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.shop-info__table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}

.shop-info__table th,
.shop-info__table td {
    padding: 10px 12px;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.shop-info__table th {
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
    width: 35%;
    background: none;
}

@media (min-width: 768px) {
    .shop-info__table th { width: 25%; }
}

.shop-info__note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.shop-info__cta {
    margin-top: 20px;
    text-align: center;
}

/* ==========================================================================
   Shop Tabs
   ========================================================================== */
.shop-tabs {
    margin-bottom: 32px;
}

.shop-tabs__nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--color-border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 4px 4px 0;
}

.shop-tabs__btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.shop-tabs__btn:hover {
    color: var(--color-primary);
    background: rgba(255,255,255,0.5);
}

.shop-tabs__btn.is-active {
    color: var(--color-primary);
    background: var(--color-white);
    font-weight: 700;
}

.shop-tabs__panel {
    padding: 24px 0;
}

.shop-tabs__cta {
    margin-top: 32px;
    text-align: center;
}

.shop-tabs__heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-tabs__subheading {
    font-size: 1rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.shop-tabs__text {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ==========================================================================
   Floating CTA (mobile only)
   ========================================================================== */
.shop-float-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(255,255,255,0.97) 70%, rgba(255,255,255,0));
}

.shop-float-cta .btn {
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .shop-float-cta { display: none; }
}

/* ==========================================================================
   Shop Tags
   ========================================================================== */
.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-tags__item {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 14px;
    border-radius: 20px;
}

.shop-tags__item--feature {
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   Shop Reviews
   ========================================================================== */
.shop-reviews__summary {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.shop-reviews__survey-info {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.shop-reviews__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-reviews__bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    width: 72px;
    flex-shrink: 0;
}

.shop-reviews__bar-label--positive { color: var(--color-success); }
.shop-reviews__bar-label--negative { color: var(--color-danger); }

.shop-reviews__bar {
    flex: 1;
    height: 12px;
    background: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.shop-reviews__bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.shop-reviews__bar-fill--positive { background: var(--color-success); }
.shop-reviews__bar-fill--negative { background: var(--color-danger); }

.shop-reviews__bar-pct {
    font-size: 0.875rem;
    font-weight: 700;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.shop-reviews__section {
    margin-bottom: 32px;
}

.shop-reviews__section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid;
}

.shop-reviews__section-title--positive {
    border-color: var(--color-success);
    color: var(--color-success);
}

.shop-reviews__section-title--negative {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.shop-reviews__themes {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.shop-reviews__theme {
    padding: 6px 0;
    font-size: 0.9375rem;
}

.shop-reviews__theme::before {
    content: '●';
    margin-right: 8px;
    font-size: 0.5rem;
    vertical-align: middle;
    color: var(--color-text-light);
}

.shop-reviews__theme-count {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.shop-reviews__quotes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-reviews__quote {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    margin: 0;
}

.shop-reviews__quote--positive {
    background: #F0FDF4;
    border-color: var(--color-success);
}

.shop-reviews__quote--negative {
    background: #FEF2F2;
    border-color: var(--color-danger);
}

.shop-reviews__quote p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.shop-reviews__quote cite {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-style: normal;
}

.shop-reviews__editorial {
    background: var(--color-primary-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 24px;
}

.shop-reviews__editorial-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.shop-reviews__editorial p {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ==========================================================================
   Shop FAQ
   ========================================================================== */
.shop-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   Shop Detail — Logo
   ========================================================================== */
.shop-detail__logo {
    margin-bottom: 12px;
}

.shop-detail__logo img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   Shop Card — Logo
   ========================================================================== */
.shop-card__logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.card__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--color-border);
    margin-bottom: 8px;
}

/* ==========================================================================
   Shop Radar Chart
   ========================================================================== */
.shop-radar {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.shop-radar__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-radar__wrap {
    display: flex;
    justify-content: center;
}

.shop-radar__wrap canvas {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Shop Showcase (LP Screenshot + Badges)
   ========================================================================== */
.shop-showcase {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.shop-showcase__image {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.shop-showcase__image img {
    width: 100%;
    height: auto;
    display: block;
}

.shop-showcase__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.shop-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.shop-showcase__badge::before {
    content: '✓';
    font-weight: 700;
    font-size: 0.75rem;
}

/* ==========================================================================
   Shop Scroll (トップページ横スクロール)
   ========================================================================== */
.shop-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.shop-scroll::-webkit-scrollbar {
    height: 4px;
}

.shop-scroll::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 2px;
}

.shop-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2px;
}

.shop-scroll__card {
    flex: 0 0 200px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    scroll-snap-align: start;
    transition: box-shadow 0.2s, transform 0.2s;
}

.shop-scroll__card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.shop-scroll__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--color-border);
    margin: 0 auto 12px;
}

.shop-scroll__name {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-scroll__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.shop-scroll__stars {
    color: var(--color-warning);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.shop-scroll__score {
    font-size: 0.875rem;
    font-weight: 700;
}

.shop-scroll__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
}

.shop-scroll__tag {
    font-size: 0.6875rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 8px;
    border-radius: 12px;
}

.shop-scroll__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 768px) {
    .shop-scroll__card { flex: 0 0 220px; }
}

/* ==========================================================================
   Home Reviews (トップページ新着口コミ)
   ========================================================================== */
.home-reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-reviews__item {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
}

.home-reviews__quote {
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

.home-reviews__quote p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text);
}

.home-reviews__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
}

.home-reviews__shop {
    font-weight: 600;
    color: var(--color-primary);
}

.home-reviews__source {
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .home-reviews {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
