/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0085b2;
    --primary-dark: #006794;
    --primary-light: #00a3d9;
    --accent-color: #008c8c;
    --accent-dark: #004c66;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --drawer-width: min(100%, 360px);
    --drawer-bg: #ffffff;
    --drawer-text: #1a1a1a;
    --drawer-overlay: rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.seeed-media {
    display: block;
    max-width: 100%;
}

.seeed-media--cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seeed-media--contain {
    width: 100%;
    height: auto;
    object-fit: contain;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.seeed-inline-link {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

ul {
    list-style: none;
}

/* ========================================
   コンテナ
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0;
}

/* ========================================
   ボタンスタイル
======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

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

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

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

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    overflow: hidden;
}

.hero-bg-video,
.cta-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--text-white);
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    opacity: 0.9;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ヒーロースライダー */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.is-active {
    opacity: 1;
}
.hero-slider-indicators {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    backdrop-filter: blur(4px);
}
.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
.hero-slider-dot.is-active {
    background: #fff;
    transform: scale(1.3);
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    min-width: 44px;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease;
}
.hero-slider-prev { left: 0; }
.hero-slider-next { right: 0; }
.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================
   セクション共通スタイル
======================================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ========================================
   特徴セクション
======================================== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   サービスセクション
======================================== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    gap: 40px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) > * {
    direction: ltr;
}

.service-image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.service-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-item:hover .image-placeholder {
    transform: scale(1.05);
}

.service-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

.service-link .service-link-arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.85;
}

.service-link:hover .service-link-arrow {
    transform: translateX(6px);
    opacity: 1;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   ギャラリーセクション
======================================== */
.gallery {
    background: var(--bg-white);
    overflow: hidden;
}

.gallery-slider {
    margin-top: 40px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

.gallery-item {
    min-width: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 250px;
}

.gallery-caption {
    padding: 20px;
    background: var(--bg-white);
}

.gallery-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.gallery-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 5 - 150px));
    }
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* ========================================
   導入事例セクション
======================================== */
.case-studies {
    --cs-accent: #111827;
    --cs-edge: #ffffff;
    background: transparent;
    overflow: hidden;
}

.cs-slider {
    max-width: 1200px;
    margin: 42px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
}

.cs-track-viewport {
    margin-top: 0;
    overflow: hidden;
    position: relative;
}

.cs-track-viewport::before,
.cs-track-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    pointer-events: none;
    z-index: 2;
}

.cs-track-viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--cs-edge), rgba(255,255,255,0.86), rgba(255,255,255,0));
}

.cs-track-viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--cs-edge), rgba(255,255,255,0.86), rgba(255,255,255,0));
}

.cs-track {
    display: flex;
    gap: 28px;
    align-items: center;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.cs-item {
    flex-shrink: 0;
    width: 170px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cs-item:hover {
    transform: translateY(-2px);
}

.cs-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.25s ease;
}

.cs-nav {
    display: none !important;
}

.cs-static-list {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

/* ========================================
   料金プランセクション
======================================== */
.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-card-featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.price-currency {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 10px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 20px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 30px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-card .btn {
    width: 100%;
}

/* ========================================
   CTAセクション
======================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.cta .btn-large:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   トップへ戻るボタン
======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 133, 178, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 133, 178, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.8;
    color: #999;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: var(--drawer-width);
        max-width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 0;
        border: 0;
        background: var(--drawer-bg);
        color: var(--drawer-text);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 1100;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .nav-list a {
        display: inline-block;
        width: auto;
        padding: 0;
        font-size: 1rem;
        font-weight: 500;
        color: var(--drawer-text);
    }

    .nav-list a::after {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: -5px;
        background: var(--primary-color);
    }

    .menu-toggle {
        display: flex;
    }

    .drawer-backdrop {
        position: fixed;
        inset: 0;
        background: var(--drawer-overlay);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1050;
    }

    .drawer-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-item:nth-child(even) {
        direction: ltr;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-10px);
    }

    section {
        padding: 60px 0;
    }

    .gallery-item {
        min-width: 280px;
    }

    .cs-track-viewport::before,
    .cs-track-viewport::after {
        width: 56px;
    }

    .cs-item {
        width: 132px;
        height: 76px;
    }

    .cs-track {
        gap: 18px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .cs-track {
        gap: 12px;
    }

    .cs-item {
        width: 116px;
        height: 72px;
        padding: 10px 12px;
    }

    .cs-track-viewport::before,
    .cs-track-viewport::after {
        width: 28px;
    }
}

/* ========================================
   固定ページ テーマ設定対応
======================================== */
/* ページヒーロー */
.seeed-page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.seeed-page-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.seeed-page-hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
    padding: 40px 20px;
}

.seeed-page-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.seeed-page-hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    opacity: 0.85;
    line-height: 1.6;
}

/* レイアウト幅 */
.seeed-page-width-normal { max-width: 800px; margin-left: auto; margin-right: auto; }
.seeed-page-width-wide   { max-width: 1000px; margin-left: auto; margin-right: auto; }
.seeed-page-width-full   { max-width: 1200px; margin-left: auto; margin-right: auto; }

.seeed-layout-full .container { max-width: 100%; padding: 0; }
.seeed-layout-narrow .container { max-width: 680px; }
.seeed-layout-wide .container { max-width: 1200px; }

/* 貼り付け表: コピー元のセル幅を維持し、必要時のみ横スクロール */
.services .entry-content .seeed-block-sheet {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.services .entry-content .seeed-block-sheet--html .seeed-block-sheet-inner {
    width: max-content;
    max-width: none;
}

/* TSV生成表のみテーマ既定の罫線色を適用（貼り付けHTMLは元スタイルを優先） */
.services .entry-content .seeed-block-sheet--tsv table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.services .entry-content .seeed-block-sheet--tsv table,
.services .entry-content .seeed-block-sheet--tsv th,
.services .entry-content .seeed-block-sheet--tsv td {
    border-color: var(--seeed-sheet-border, #000000) !important;
}

.services .entry-content .seeed-block-sheet--tsv table {
    border: 1px solid var(--seeed-sheet-border, #000000) !important;
}

.services .entry-content .seeed-block-sheet--tsv th,
.services .entry-content .seeed-block-sheet--tsv td {
    border: 1px solid var(--seeed-sheet-border, #000000) !important;
}

/* HTML貼り付け表: コピー元のスタイルを維持しつつ最低限のセル幅を保証 */
.services .entry-content .seeed-block-sheet--html table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto;
}

.services .entry-content .seeed-block-sheet--html th,
.services .entry-content .seeed-block-sheet--html td {
    min-width: 100px;
}

@media (max-width: 1023px) {
    .services .entry-content .seeed-block-sheet--tsv table {
        width: auto !important;
        min-width: max-content !important;
        table-layout: auto !important;
    }

    .services .entry-content .seeed-block-sheet--tsv th,
    .services .entry-content .seeed-block-sheet--tsv td {
        min-width: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        vertical-align: middle;
    }

    .services .entry-content .seeed-block-sheet--html table {
        min-width: max-content !important;
        table-layout: auto !important;
    }

    .services .entry-content .seeed-block-sheet a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

/* 固定ページの表: PCでは表示領域を広げ、最大幅超過時のみ横スクロールを許可 */
@media (min-width: 1024px) {
    .services .entry-content .seeed-block-table,
    .services .entry-content .seeed-block-sheet {
        position: relative;
        left: 50%;
        right: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding-left: 32px;
        padding-right: 32px;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .services .entry-content .seeed-block-table table,
    .services .entry-content .seeed-block-sheet--tsv table,
    .services .entry-content .seeed-block-sheet--html table {
        width: auto !important;
        min-width: max-content !important;
        table-layout: auto;
    }

    .services .entry-content .seeed-block-table table {
        width: max-content !important;
        min-width: 100% !important;
        table-layout: auto;
    }
}
