/*
Theme Name: SupportFlow
Theme URI: 
Author: Takumi Masuda
Author URI: 
Description: A clean and modern WordPress theme for FAQ and support documentation.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: supportflow
*/

/* Import the original CSS */

/* Reset & Base Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #f5f7f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header__logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.header__logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.header__logo-image {
    max-height: 50px;
    width: auto;
}

.header__search {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
}

.header__search .search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #3498db;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    background-color: #2980b9;
}

.header__search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header__search-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.header__search-toggle-icon {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .header__search-toggle {
        display: flex;
    }
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Categories Grid */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-color: var(--accent-color);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-card__content {
    flex-grow: 1;
}

.category-card__title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.category-card__description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    display: block;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-item__title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #1a202c;
    font-weight: bold;
}

.page__title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #1a202c;
    font-weight: bold;
}

.article-item__excerpt {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-item {
        padding: 1rem;
    }

    .article-item__title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .article-item__excerpt {
        font-size: 0.875rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Category Header */
.category-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.category-header__content {
    flex-grow: 1;
}

.category-header__title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.category-header__description {
    color: #666;
    font-size: 0.9rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    border-left: 4px solid var(--accent-color);
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card__title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.article-card__excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.article-card__meta {
    font-size: 0.875rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Article Page */
.article {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.article__title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.article__meta {
    color: #666;
    font-size: 0.9rem;
}

.article__content {
    line-height: 1.8;
}

.article__content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.article__content p {
    margin-bottom: 1rem;
}

.article__content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article__content li {
    margin-bottom: 0.5rem;
}

.article__image {
    margin: 2rem 0;
}

.article__image img {
    max-width: 100%;
    border-radius: 8px;
}

.article__image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.article__note {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.article__note h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.article__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article__helpful {
    text-align: center;
    margin-bottom: 2rem;
}

.article__helpful p {
    margin-bottom: 1rem;
}

.article__helpful-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.helpful-button {
    padding: 0.5rem 2rem;
    border: 2px solid #3498db;
    border-radius: 6px;
    background: none;
    color: #3498db;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-button:hover {
    background-color: #3498db;
    color: white;
}

.article__related {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.article__related h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.article__related ul {
    list-style: none;
    padding: 0;
}

.article__related li {
    margin-bottom: 0.5rem;
}

.article__related a {
    color: #3498db;
    text-decoration: none;
}

.article__related a:hover {
    text-decoration: underline;
}

/* Category Content Layout */
.category-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.category-sidebar {
    position: sticky;
    top: 100px;
}

.category-nav__title {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    color: #0f172a;
}

.category-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav__item {
    margin-bottom: 0.5rem;
}

.category-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.category-nav__link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.category-nav__link.is-active {
    background-color: #3498db;
    color: white;
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-list__item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}

.article-list__item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-list__link {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.article-list__title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    font-weight: bold;
}

.article-list__excerpt {
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.article-list__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.article-list__category {
    background-color: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8fafc;
    border-radius: 12px;
}

.no-results p {
    margin: 0.5rem 0;
    color: #64748b;
}

.no-results a {
    color: #3498db;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Search Results Page */
.search-page .category-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 12px;
}

.search-page .category-header__icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-page .category-header__content {
    flex-grow: 1;
}

.search-page .category-header__title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    font-weight: bold;
}

.search-page .category-header__description {
    color: #64748b;
    margin: 0;
}

.search-page .category-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.search-page .category-sidebar {
    position: sticky;
    top: 100px;
}

.search-page .category-nav__title {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    color: #0f172a;
}

.search-page .category-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-page .category-nav__item {
    margin-bottom: 0.5rem;
}

.search-page .category-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.search-page .category-nav__link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.search-page .category-nav__link.is-active {
    background-color: #3498db;
    color: white;
}

.search-page .article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-page .article-list__item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}

.search-page .article-list__item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-page .article-list__link {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.search-page .article-list__title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    font-weight: bold;
}

.search-page .article-list__excerpt {
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.search-page .article-list__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.search-page .article-list__category {
    background-color: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* Popular Articles */
.popular-articles {
    margin-top: 3rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .category-main {
        padding: 0 1rem;
    }

    .article-list__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* Category Sidebar */
.category-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.category-nav {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.category-nav__title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.category-nav__list {
    list-style: none;
    padding: 0;
}

.category-nav__item {
    margin-bottom: 1rem;
}

.category-nav__item > a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.category-nav__item--active > a {
    color: #3498db;
}

.category-nav__sublist {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.category-nav__sublist li {
    margin-bottom: 0.5rem;
}

.category-nav__sublist a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.3rem 0;
}

.category-nav__sublist a:hover {
    color: #3498db;
}

/* Article List */
.article-section {
    margin-bottom: 3rem;
}

.article-section__title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-list__item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-list__item:hover {
    transform: translateX(4px);
}

.article-list__link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.article-list__title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.article-list__excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-list__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__title {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer__subtitle {
    font-size: 1rem;
    color: #2c3e50;
}

.footer__text {
    color: #666;
    margin-bottom: 1rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: #3498db;
}

.footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer__copyright {
    color: #888;
    font-size: 0.85rem;
}

.footer__inner {
    text-align: center;
}

.footer__text {
    margin-bottom: 1rem;
    color: #666;
}

.contact-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.contact-button:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .category-content {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 1rem 0;
    }

    .header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .header__logo {
        font-size: 1.3rem;
        margin: 0;
    }

    .header__search-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        color: #333;
    }

    .header__search {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .header__search.is-active {
        display: flex;
        gap: 0.5rem;
    }

    .search-input {
        flex-grow: 1;
        padding: 0.5rem;
        font-size: 16px;
    }

    .search-button {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    /* Main Content */
    .main {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.35rem;
        margin: 1.5rem 0 1rem;
    }

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

    /* Breadcrumb */
    .breadcrumb {
        margin: 0 0 1.5rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Categories */
    .categories__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .category-card {
        padding: 0.75rem;
    }

    .category-card__icon {
        font-size: 1.25rem;
    }

    .category-card__title {
        font-size: 0.95rem;
    }

    .category-card__description {
        font-size: 0.8rem;
    }

    /* Category Page */
    .category-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-header {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    .category-header__icon {
        font-size: 1.5rem;
    }

    .category-header__title {
        font-size: 1.25rem;
    }

    .category-header__description {
        font-size: 0.85rem;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .category-nav {
        padding: 1rem;
    }

    .category-nav__title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .category-nav__item > a {
        padding: 0.5rem;
        font-size: 0.95rem;
    }

    .category-nav__sublist {
        display: none;
        padding-left: 0.75rem;
    }

    .category-nav__item--active .category-nav__sublist {
        display: block;
    }

    .category-nav__sublist a {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Article List */
    .article-section__title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .article-list {
        gap: 0.75rem;
    }

    .article-list__item {
        margin-bottom: 0;
    }

    .article-list__link {
        padding: 1rem;
    }

    .article-list__title {
        font-size: 1rem;
    }

    .article-list__excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .article-list__meta {
        font-size: 0.75rem;
    }

    /* Article Page */
    .article {
        padding: 1rem;
    }

    .article__header {
        margin-bottom: 1.5rem;
    }

    .article__title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .article__meta {
        font-size: 0.85rem;
    }

    .article__content {
        font-size: 0.95rem;
    }

    .article__content h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article__content p,
    .article__content ul {
        margin-bottom: 0.75rem;
    }

    .article__image {
        margin: 1.5rem 0;
    }

    .article__image-caption {
        font-size: 0.8rem;
    }

    .article__note {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .article__note h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .article__footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .article__helpful {
        margin-bottom: 1.5rem;
    }

    .helpful-button {
        padding: 0.4rem 1.5rem;
        font-size: 0.9rem;
    }

    .article__related {
        padding: 1rem;
    }

    .article__related h3 {
        font-size: 1.1rem;
    }

    .article__related li {
        margin-bottom: 0.4rem;
    }

    .article__related a {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer__section {
        gap: 0.75rem;
    }

    .footer__title {
        font-size: 1.1rem;
    }

    .footer__subtitle {
        font-size: 0.95rem;
    }

    .footer__links {
        gap: 0.4rem;
    }

    .footer__links a {
        font-size: 0.85rem;
    }

    .footer__bottom {
        padding-top: 1rem;
    }

    .footer__copyright {
        font-size: 0.8rem;
    }

    .footer__text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .contact-button {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .header__search-toggle {
        display: none;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .category-card {
        padding: 0.75rem;
    }

    .article-list__link {
        padding: 0.75rem;
    }

    .article__content {
        font-size: 0.9rem;
    }
}

/* レスポンシブ用ユーティリティ */
.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination__numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__number:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.pagination__number--current {
    background-color: #3498db;
    color: white;
}

.pagination__dots {
    color: #64748b;
    padding: 0 0.5rem;
}

.pagination__button {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__button:not(:disabled):hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.pagination__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination__numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.pagination__number:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.pagination__number--current {
    background-color: #1976d2;
    color: white;
}

.pagination__dots {
    color: #666;
    padding: 0 0.5rem;
}

.pagination__button {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: #fff;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__button:not(:disabled):hover {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.pagination__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Page */
.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.page__title {
    font-size: 2rem;
    color: #1a202c;
    margin: 0;
    font-weight: bold;
}

.page__content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

.page__content p {
    margin-bottom: 1.5rem;
}

.page__content h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 2.5rem 0 1.5rem;
}

.page__content h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

.page__content ul,
.page__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page__content li {
    margin-bottom: 0.5rem;
}

.page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.page__content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #3498db;
    background-color: #f8fafc;
    color: #4a5568;
    font-style: italic;
}

.page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.page__content th,
.page__content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.page__content th {
    background-color: #f8fafc;
    font-weight: bold;
}

@media (max-width: 768px) {
    .page {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .page__title {
        font-size: 1.75rem;
    }

    .page__content {
        font-size: 1rem;
    }

    .page__content h2 {
        font-size: 1.35rem;
    }

    .page__content h3 {
        font-size: 1.2rem;
    }
}

/* Page Card */
.page-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.page-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-card__title {
    font-size: 1.75rem;
    color: #1a202c;
    margin: 0;
    font-weight: bold;
}

.page-card__content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-card__content p {
    margin-bottom: 1.5rem;
}

.page-card__content h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

.page-card__content h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
}

.page-card__content ul,
.page-card__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-card__content li {
    margin-bottom: 0.5rem;
}

.page-card__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-card__content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #3498db;
    background-color: #f8fafc;
    color: #4a5568;
    font-style: italic;
}

.page-card__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-card__content th,
.page-card__content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.page-card__content th {
    background-color: #f8fafc;
    font-weight: bold;
}

@media (max-width: 768px) {
    .page-card {
        padding: 1.5rem;
    }

    .page-card__title {
        font-size: 1.5rem;
    }

    .page-card__content {
        font-size: 1rem;
    }

    .page-card__content h2 {
        font-size: 1.35rem;
    }

    .page-card__content h3 {
        font-size: 1.2rem;
    }
}

/* Page Specific Styles */
.page .article__header {
    text-align: center;
    margin-bottom: 3rem;
}

.page .article__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page .article__meta {
    justify-content: center;
}

/* Page Styles - Make it consistent with single post */
.page .article {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page .article__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page .breadcrumb {
    margin-bottom: 2rem;
}

/* Override any existing page styles */
.page-content,
.page__content,
.page-card,
.page-card__content {
    all: unset;
}

/* Override default page styles */
.page-template-default .main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-template-default .article {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-template-default .article__content {
    max-width: 800px;
    margin: 0 auto;
}

/* WordPressのpageクラスのリセット */
body.page {
    padding: 0;
    margin: 0;
    background: none;
    /* WordPressのデフォルトスタイルをリセット */
    all: unset;
}

.page {
    all: unset;
}

/* 以降は独自のスタイルを適用 */
.sf-page {
    padding: 2rem 0;
    background-color: #fff;
    display: block; /* unsetを上書き */
}

.sf-page__header {
    margin-bottom: 2rem;
}

.sf-page__title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.sf-page__content {
    max-width: 800px;
    margin: 0 auto;
}

.sf-page__content p {
    margin-bottom: 1.5rem;
}

.sf-page__content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.sf-page__content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.sf-page__content ul,
.sf-page__content ol {
    margin: 1rem 0 1rem 2rem;
}

.sf-page__content li {
    margin-bottom: 0.5rem;
}

.sf-page__content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.sf-page__content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
}

.sf-page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.sf-page__content th,
.sf-page__content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.sf-page__content th {
    background-color: #f8fafc;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sf-page {
        padding: 1rem 0;
    }

    .sf-page__title {
        font-size: 1.75rem;
    }

    .sf-page__content {
        padding: 0 1rem;
    }

    .sf-page__content h2 {
        font-size: 1.5rem;
    }

    .sf-page__content h3 {
        font-size: 1.25rem;
    }
}

/* Page specific styles */
.page .article__header {
    text-align: center;
    margin-bottom: 3rem;
}

.page .article__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page .article__meta {
    justify-content: center;
}

.page-title-centered {
    text-align: center;
}

.button {
    background-color: var(--accent-color);
}

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