/*
Theme Name: ShoppalMart
Template: twentytwentyfive
Version: 1.0
*/

:root {
    --sm-pink: #ff8c08;
    --sm-text: #222;
    --sm-muted: #666;
    --sm-border: #eee;
}

body.shoppalmart {
    background: #fff;
}

.sm-topbar {
    background: var(--sm-pink);
    text-align: center;
    padding: 6px 12px;
}

.sm-topbar__text {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.sm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}

.sm-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sm-text);
}

.sm-header__logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sm-header__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin: 0;
}

.sm-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sm-header__nav a {
    font-size: 15px;
    font-weight: 700;
    color: var(--sm-text);
    text-decoration: none;
}

.sm-header__nav a:hover {
    color: var(--sm-pink);
}

@media (max-width: 480px) {
    .sm-header {
        padding: 16px;
    }
    .sm-header__title {
        font-size: 18px;
    }
    .sm-header__logo {
        width: 32px;
        height: 32px;
    }
    .sm-header__nav {
        gap: 16px;
    }
    .sm-header__nav a {
        font-size: 13px;
    }
}

.sm-chucat-nav {
    border-top: 1px solid var(--sm-border);
    border-bottom: 1px solid var(--sm-border);
    padding: 12px 0;
}

.sm-chucat-nav__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.sm-chucat-nav__scroll::-webkit-scrollbar {
    height: 6px;
}

.sm-chucat-nav__scroll::-webkit-scrollbar-thumb {
    background: var(--sm-border);
    border-radius: 3px;
}

.sm-chucat-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--sm-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-text);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}

.sm-chucat-pill:hover {
    border-color: var(--sm-pink);
    color: var(--sm-pink);
}

.sm-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    border-top: 1px solid var(--sm-border);
}

.sm-section__eyebrow {
    color: var(--sm-pink);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
}

.sm-section__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.sm-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .sm-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-card {
    display: block;
    text-decoration: none;
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease;
}

.sm-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.sm-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f2f2;
    display: block;
}

.sm-card__body {
    padding: 10px 12px 14px;
}

.sm-card__name {
    font-weight: 400;
    font-size: 12px;
    color: var(--sm-muted);
    margin: 0;
}

.sm-card__tagline {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--sm-text);
    margin: 0 0 4px;
}

.sm-more {
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 16px auto 0;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--sm-text);
    background: none;
    border: 1px solid var(--sm-border);
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    transition: border-color .15s ease, color .15s ease;
}

.sm-more:hover {
    border-color: var(--sm-pink);
    color: var(--sm-pink);
}

.sm-footer-featured {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 16px;
    text-align: center;
}

.sm-footer-featured__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sm-muted);
    letter-spacing: 0.02em;
    margin: 0 0 12px;
}

.sm-footer-featured__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-footer-featured__list a {
    font-size: 13px;
    color: var(--sm-text);
    text-decoration: none;
}

.sm-footer-featured__list a:hover {
    color: var(--sm-pink);
    text-decoration: underline;
}

.sm-footer {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 24px 16px 48px;
    border-top: 1px solid var(--sm-border);
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.sm-footer a {
    color: var(--sm-muted);
    text-decoration: none;
}

/* ===== 記事ページ ===== */

.sm-breadcrumb {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 16px 0;
    font-size: 12px;
    color: var(--sm-muted);
}

.sm-breadcrumb a {
    color: var(--sm-muted);
    text-decoration: none;
}

.sm-breadcrumb a:hover {
    color: var(--sm-pink);
}

.sm-article-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 16px 24px;
    text-align: left;
}

.sm-article-hero__cat {
    display: inline-block;
    color: var(--sm-pink);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sm-article-hero__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 8px;
}

.sm-article-hero__date {
    font-size: 12px;
    color: var(--sm-muted);
}

.sm-article-hero__author {
    color: var(--sm-muted);
    text-decoration: none;
}

.sm-article-hero__author:hover {
    color: var(--sm-pink);
    text-decoration: underline;
}

.sm-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 48px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--sm-text);
}

.sm-article p {
    margin: 0 0 20px;
}

.sm-article ul, .sm-article ol {
    margin: 0 0 20px;
    padding-left: 1.4em;
}

.sm-article li {
    margin-bottom: 8px;
}

.sm-article h2 {
    font-size: 21px;
    font-weight: 800;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--sm-pink);
}

.sm-article h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--sm-pink);
}

.sm-shop-label {
    font-size: 12px;
    color: var(--sm-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 28px 0 4px;
}

.sm-shop-label + h3 {
    margin-top: 0;
}

.sm-article h3 a {
    color: var(--sm-text);
    text-decoration: none;
}

.sm-article h3 a:hover {
    color: var(--sm-pink);
}

.sm-article img {
    display: block;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    margin: 0 0 12px;
}

.sm-article strong {
    color: var(--sm-pink);
}

/* Easy Table of Contents のブランド調整 */
#ez-toc-container {
    background: #fff4e6 !important;
    border: 1px solid #ffdcb9 !important;
    border-radius: 8px !important;
}
.ez-toc-title {
    color: var(--sm-text) !important;
}

.sm-cta {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 0 16px;
    text-align: center;
}

.sm-cta__button {
    display: inline-block;
    background: var(--sm-pink);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 999px;
    transition: opacity .15s ease;
}

.sm-cta__button:hover {
    opacity: 0.85;
}

.sm-cta__sub {
    margin: 12px 0 0;
}

.sm-cta__sub a {
    font-size: 14px;
    color: var(--sm-muted);
    text-decoration: none;
}

.sm-cta__sub a:hover {
    color: var(--sm-pink);
}

.sm-related {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 0;
    border-top: 1px solid var(--sm-border);
}

.sm-internal-links {
    margin: 32px 0 0;
    padding: 16px 20px;
    background: #fff8f1;
    border: 1px solid #ffdcb9;
    border-radius: 8px;
}

.sm-internal-links p {
    margin: 0 0 8px !important;
    font-size: 14px;
}

.sm-internal-links ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.sm-internal-links li {
    margin-bottom: 4px !important;
}

.sm-internal-links a {
    color: var(--sm-pink);
    font-size: 14px;
    text-decoration: underline;
}

.sm-related h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 24px 0 12px;
}

.sm-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-related li {
    border-bottom: 1px solid var(--sm-border);
}

.sm-related a {
    display: block;
    padding: 12px 0;
    color: var(--sm-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.sm-related a:hover {
    color: var(--sm-pink);
}

/* ===== 記事一覧ページ ===== */

.sm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--sm-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--sm-text);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.sm-tag:hover {
    border-color: var(--sm-pink);
    color: var(--sm-pink);
}

.sm-tag__count {
    color: var(--sm-muted);
    font-size: 11px;
}

.sm-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .sm-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-article-card {
    display: block;
    text-decoration: none;
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease;
}

.sm-article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.sm-article-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f2f2;
    display: block;
}

.sm-article-card__body {
    padding: 12px 14px 16px;
}

.sm-article-card__cat {
    color: var(--sm-pink);
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 4px;
}

.sm-article-card__title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.sm-article-card__date {
    color: var(--sm-muted);
    font-size: 12px;
    margin: 0;
}

.sm-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 14px;
}

.sm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sm-border);
    border-radius: 6px;
    color: var(--sm-text);
    text-decoration: none;
}

.sm-pagination .page-numbers.current {
    background: var(--sm-pink);
    border-color: var(--sm-pink);
    color: #fff;
    font-weight: 700;
}

.sm-pagination .page-numbers:hover:not(.current) {
    border-color: var(--sm-pink);
    color: var(--sm-pink);
}

/* ===== TOPページ 新着記事(横並びリスト) ===== */

.sm-newsrow-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.sm-newsrow {
    border-bottom: 1px solid var(--sm-border);
}

.sm-newsrow:first-child {
    border-top: 1px solid var(--sm-border);
}

.sm-newsrow__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    text-decoration: none;
    color: var(--sm-text);
}

.sm-newsrow__img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    background: #f2f2f2;
    display: block;
}

@media (max-width: 600px) {
    .sm-newsrow__img {
        width: 72px;
        height: 72px;
    }
}

.sm-newsrow__body {
    min-width: 0;
}

.sm-newsrow__cat {
    color: var(--sm-pink);
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 4px;
}

.sm-newsrow__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 6px;
}

.sm-newsrow__date {
    color: var(--sm-muted);
    font-size: 12px;
    margin: 0;
}

.sm-newsrow__link:hover .sm-newsrow__title {
    color: var(--sm-pink);
}

/* ===== TOPページ FAQ ===== */

.sm-faq-list {
    max-width: 760px;
    margin: 16px auto 0;
}

.sm-faq-item {
    border-bottom: 1px solid var(--sm-border);
}

.sm-faq-item:first-child {
    border-top: 1px solid var(--sm-border);
}

.sm-faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: 16px 28px 16px 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
}

.sm-faq-item__q::-webkit-details-marker {
    display: none;
}

.sm-faq-item__q-text {
    display: inline;
    margin: 0;
    font: inherit;
}

.sm-faq-item__q::before {
    content: "Q";
    display: inline-block;
    color: var(--sm-pink);
    font-weight: 800;
    margin-right: 10px;
}

.sm-faq-item__q::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 16px;
    color: var(--sm-pink);
    font-weight: 800;
    font-size: 18px;
}

.sm-faq-item[open] .sm-faq-item__q::after {
    content: "−";
}

.sm-faq-item__a {
    padding: 0 0 20px 24px;
    color: var(--sm-muted);
    font-size: 14px;
    line-height: 1.9;
}

.sm-faq-item__a a {
    color: var(--sm-pink);
    text-decoration: underline;
}

/* ===== TOPページ SEOテキスト ===== */

.sm-seo-text {
    max-width: 760px;
    margin: 0 auto;
}

.sm-seo-text p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--sm-text);
    margin: 0 0 20px;
}

.sm-seo-text h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--sm-pink);
}

.sm-seo-text a {
    color: var(--sm-pink);
    text-decoration: underline;
}
