/* =================================================================
   page.css
   下層ページ用のスタイルシート
================================================================= */

/* --- about.html 用のスタイル --- */
.content-section { padding: 60px 0; border-bottom: 1px solid var(--color-border); }
.content-section:last-of-type { border-bottom: none; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-section:nth-of-type(even) .content-grid { grid-template-areas: "text image"; }
.content-section:nth-of-type(even) .content-image { grid-area: image; }
.content-section:nth-of-type(even) .content-text { grid-area: text; }
.content-image img { width: 100%; height: 400px; object-fit: cover; border-radius: 4px; }
.content-text h2 { font-size: 28px; margin: 0 0 10px; color: var(--color-heading); }
.content-text h3 { font-size: 18px; font-weight: normal; margin: 0 0 20px; }
.content-text p { margin: 0 0 30px; }
.links-section { padding: 60px 0; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.link-card { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; }
.link-card:hover { color: inherit; transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.link-card-image { height: 250px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.link-card-image h3 { font-size: 24px; color: white; font-weight: 600; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.link-card-caption { padding: 15px; text-align: center; font-weight: 600; background-color: #fff; }

/* --- trade-law.html 用のスタイル --- */
.page-content { padding-top: 60px; padding-bottom: 60px; }
.trade-law-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--color-border); font-size: 15px; }
.trade-law-table th, .trade-law-table td { padding: 20px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.trade-law-table th { width: 240px; font-weight: 600; background-color: var(--color-light-gray); border-right: 1px solid var(--color-border); }
.trade-law-table tr:last-child th, .trade-law-table tr:last-child td { border-bottom: none; }
.trade-law-table strong { font-weight: 600; color: var(--color-dark); }
.attention-text { margin-top: 25px; font-size: 14px; color: #555; text-align: center; }

/* --- privacy.html, terms.html などテキストコンテンツ用の汎用スタイル --- */
.text-content-area { max-width: 800px; margin-left: auto; margin-right: auto; }
.text-content-area h2 { font-size: 22px; font-weight: 600; margin: 50px 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.text-content-area p { margin-bottom: 1.5em; line-height: 1.8; }
.text-content-area ul, .text-content-area ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.text-content-area li { margin-bottom: 1em; padding-left: 0.5em; line-height: 1.8; }
.text-content-area ul { list-style: disc; }
.text-content-area ol { list-style: none; counter-reset: item; }
.text-content-area ol > li::before { counter-increment: item; content: counter(item) ". "; font-weight: 600; margin-left: -1.5em; margin-right: 0.5em; }
.text-content-area ol ol { margin-top: 1em; counter-reset: subitem; }
.text-content-area ol ol > li::before { counter-increment: subitem; content: "(" counter(subitem, lower-alpha) ") "; }
.text-content-area li > strong { display: block; margin-bottom: 0.5em; }
.text-content-area a { color: var(--color-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--ui-neutral-800), 0.3); transition: all 0.3s; }
.text-content-area a:hover { color: #000; text-decoration-color: rgba(var(--ui-neutral-800), 1); }

/* --- guide.html (ご利用ガイド) 用のスタイル --- */
.page-wrapper { padding: 40px 0 80px; }
.guide-layout { display: flex; flex-direction: row; gap: 60px; }
.guide-main-content { flex: 1; min-width: 0; }
.guide-sidebar { width: 280px; flex-shrink: 0; }
.guide-main-content .text-content-area { max-width: none; margin: 0; }
.guide-main-content .text-content-area section { margin-bottom: 60px; scroll-margin-top: 120px; }
.anchor-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 60px; }
.anchor-links a { display: block; padding: 15px 10px; background-color: var(--color-light-gray); border: 1px solid var(--color-border); text-align: center; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 0.3s; }
.anchor-links a:hover { background-color: #e9e9e9; color: var(--color-text); }
.text-content-area h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px;
    padding: 0.2em 1em;
    background: #f5f5f5;
}
.text-content-area .note {
    font-size: 14px;
    color: #cb4949;
}.text-content-area .inline-img { max-width: 100%; height: auto; margin: 10px 0; }
.guide-sidebar .page-nav { position: sticky; top: 120px; border: 1px solid var(--color-border); }
.page-nav-title { font-size: 14px; font-weight: 600; padding: 15px; margin: 0; background-color: var(--color-light-gray); border-bottom: 1px solid var(--color-border); letter-spacing: 1px; }
.page-nav ul { list-style: none; padding: 0; margin: 0; }
.page-nav li a { display: block; padding: 15px; font-size: 14px; border-bottom: 1px solid var(--color-border); text-decoration: none; transition: background-color 0.3s; }
.page-nav li:last-child a { border-bottom: none; }
.page-nav li a:hover { background-color: #f9f9f9; color: var(--color-text); }

/* --- 2カラムレイアウト汎用スタイル (faq.htmlなどで使用) --- */
.two-column-layout {
    display: flex;
    flex-direction: row;
    gap: 60px;
}
.main-content-area {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* --- サイドバー汎用スタイル --- */
.sidebar-widget {
    border: 1px solid var(--color-border);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.sidebar-list li a:hover {
    background-color: #f9f9f9;
    color: var(--color-text);
}
.sidebar-list li a::after {
    content: '>';
    color: #ccc;
    font-weight: bold;
    font-size: 14px;
    transform: scale(0.8, 1.2);
}

/* --- faq.html 専用スタイル --- */
.faq-intro {
    padding: 30px;
    margin-bottom: 40px;
    background-color: var(--color-light-gray);
    border-radius: 4px;
}
.faq-intro h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
}
.faq-intro p {
    margin: 0;
    line-height: 1.8;
}

/* --- 全ページ共通のレスポンシブ調整 --- */
@media (max-width: 992px) {
    /* about.html */
    .content-grid { gap: 40px; }

    /* guide.html */
    .guide-layout { flex-direction: column; }
    .guide-sidebar { width: 100%;}
    .guide-sidebar .page-nav { position: static; top: auto; }
    .anchor-links { display: none; }

    /* 2カラムレイアウト汎用 */
    .two-column-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}

@media (max-width: 768px) {
    /* SP表示時の左右の余白を確保 */
    .page-wrapper.container, .page-content.container { padding-left: 20px; padding-right: 20px; }
    .page-wrapper { padding-top: 20px; }
    
    /* about.html */
    .content-section { padding: 40px 0; }
    .content-grid { grid-template-columns: 1fr; grid-template-areas: none !important; gap: 30px; }
    .content-section:nth-of-type(even) .content-image { order: -1; }
    .content-text h2 { font-size: 22px; }
    .links-grid { grid-template-columns: 1fr; gap: 20px; }

    /* trade-law.html */
    .page-content { padding-top: 40px; padding-bottom: 40px; }
    .trade-law-table th, .trade-law-table td { display: block; width: 100%; border-bottom: none; }
    .trade-law-table th { border-right: none; padding-bottom: 8px; }
    .trade-law-table td { padding-top: 0; padding-bottom: 20px; }
    .trade-law-table tr { display: block; border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
    .trade-law-table tr:last-child { border-bottom: none; margin-bottom: 0; }

    /* text-content-area */
    .text-content-area h2 { font-size: 20px; margin-top: 40px; }
    .text-content-area h3 { font-size: 16px; }

    /* faq.html */
    .faq-intro { padding: 20px; }
    .faq-intro h2 { font-size: 18px; }
}
/* --- faq-detail (FAQ詳細) ページ用のスタイル --- */
.page-description {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

.faq-anchor-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.faq-list {
    margin-top: 40px;
}

.faq-category {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.faq-category-title {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 15px;
    background-color: var(--color-light-gray);
    margin: 0 0 20px 0;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item details {
    padding: 20px 1em;
}
.accordion-item details:hover {
    background: #f5f5f5;
}

.accordion-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Safari, Chromeのマーカーを消す */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item summary::-webkit-details-marker {
    display: none; /* Safari, Chromeのマーカーを消す */
}

/* アコーディオンの開閉アイコン */
.accordion-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #888;
    transition: transform 0.2s;
    margin-left: 15px;
}

.accordion-item details[open] > summary::after {
    content: '−'; /* 全角のマイナス */
    transform: rotate(180deg);
}

.accordion-content {
    padding: 20px 0 0 20px;
    line-height: 1.8;
}
.accordion-content p {
    margin-bottom: 1em;
}
.accordion-content ul {
    list-style: disc;
    padding-left: 1.5em;
}
.accordion-content li {
    margin-bottom: 0.5em;
}

.faq-contact-section {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}
.faq-contact-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}
.faq-contact-section p {
    margin: 0 0 25px;
}

.back-to-top {
    text-align: center;
    margin-top: 60px;
}
.back-to-top a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-dark);
}
.back-to-top a:hover {
    text-decoration: underline;
}

/* サイドバーのアクティブな項目 */
.sidebar-list li a.is-active {
    font-weight: 600;
    background-color: #f0f0f0;
}
.sidebar-list li a.is-active::after {
    display: none; /* アクティブな項目は矢印を非表示 */
}

/* レスポンシブ調整 */
@media (max-width: 992px) {
    .faq-anchor-links {
        display: none;
    }
}
@media (max-width: 768px) {
    .page-description {
        text-align: left;
    }
}
/* セクション全体 */
.download-section {
    margin-top: 20px;
}

/* カテゴリタイトル */
.download-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-heading);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #000;
}

/* テーブル */
.download-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.download-table th,
.download-table td {
    padding: 20px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border, #e9e9e9);
}

.download-table thead th {
    font-weight: 600;
    color: var(--color-text, #333);
    background-color: var(--color-light-gray, #f9f9f9);
}

/* 各列の幅を調整 */
.download-table th:nth-child(1),
.download-table td:nth-child(1) {
    width: 20%; /* カテゴリ */
}
.download-table th:nth-child(2),
.download-table td:nth-child(2) {
    width: 45%; /* 製品 */
}
.download-table th:nth-child(3),
.download-table td:nth-child(3) {
    width: 15%; /* 発売年月 */
}
.download-table th:nth-child(4),
.download-table td:nth-child(4) {
    width: 20%; /* ダウンロード */
}

/* ダウンロードリンク */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #000;
    transition: opacity 0.3s;
}

.download-link:hover {
    opacity: 0.7;
    color: #000;
}

.download-link svg {
    flex-shrink: 0; /* アイコンが縮まないように */
}

table.download-table td .category {
    display: none;
}

table.download-table td .category:last-child {
    display: block;
}

/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
    /* テーブルが画面からはみ出た場合に横スクロールできるようにする */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロール */
        margin: 0 -20px; /* 画面幅いっぱいに広げる */
        padding: 0 20px;
    }

    .download-table {
        min-width: 600px; /* テーブルの最小幅を設定し、スクロールを発生させる */
    }

    .download-table th,
    .download-table td {
        padding: 15px 10px;
        white-space: nowrap; /* セル内でテキストが折り返さないように */
    }
    
    .download-table td:first-child {
        white-space: normal; /* 製品名だけは折り返しを許可 */
    }
}



#tpl-nav ul {
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#tpl-nav li { list-style: none; }
#tpl-nav a {
    display: block;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: var(--ect-text-color);
    font-size: 14px;
    transition: background-color 0.3s;
}
#tpl-nav a:hover { background-color: #e0e0e0; }
.tpl-section {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    scroll-margin-top: 80px; /* アンカーリンクのズレ防止 */
}
.tpl-section > h2 {
    font-size: 20px;
    border-bottom: 2px solid var(--ect-text-color);
    padding-bottom: 10px;
    margin-top: 0;
}
.tpl-component {
    margin-top: 30px;
    border-top: 1px dashed #ccc;
    padding-top: 30px;
}
.tpl-component:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.tpl-component > h3 {
    font-size: 16px;
    margin-top: 0;
    border-left: 5px solid var(--ect-primary-color);
    padding-left: 10px;
}
.tpl-preview {
    border: 1px solid var(--ect-border-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}
.tpl-code {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Consolas, 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
    background-color: #f5f5f5;
    resize: vertical;
    box-sizing: border-box;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}
.tpl-code:focus {
    background-color: #fff;
    border-color: var(--ect-primary-color);
    outline: none;
}
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    min-height: 100px;
    box-sizing: border-box;
}
.copy-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* 緑から黒系のグレーに変更 */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}
.copy-alert.is-show {
    opacity: 1;
    visibility: visible;
}

/* ===============
 * コンテンツテンプレート用のCSS
 * prefix: ect- (EC-Template)
 * =============== */

.ect-text-center { text-align: center; }
.ect-text-left { text-align: left; }
.ect-text-right { text-align: right; }
.ect-mb-20 { margin-bottom: 20px !important; }
.ect-mt-20 { margin-top: 20px !important; }
.ect-d-sp-none { display: block; }
.ect-d-pc-none { display: none; }

.ect-section { padding: 60px 0; }
.ect-container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.ect-grid { display: grid; gap: 30px; }
.ect-grid--2col { grid-template-columns: repeat(2, 1fr); }
.ect-grid--3col { grid-template-columns: repeat(3, 1fr); }
.ect-grid--4col { grid-template-columns: repeat(4, 1fr); }

.ect-heading { text-align: center; margin: 0 0 30px; }
.ect-heading--main { font-size: 32px; font-weight: bold; }
.ect-heading--sub { font-size: 24px; font-weight: bold; }
.ect-text { font-size: 16px; line-height: 1.8; margin: 0 0 20px; }
.ect-text em { font-weight: bold; }
.ect-note { font-size: 13px; color: #666; }
.ect-button { display: inline-block; padding: 12px 30px; background-color: #333; color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold; text-align: center; transition: opacity 0.3s; border: 1px solid #333; cursor: pointer; }
.ect-button:hover { opacity: 0.8; }
.ect-button--secondary { background-color: #fff; color: #333; }
.ect-button--full { display: block; width: 100%; }
.ect-image-wrapper { margin: 0; }
.ect-image-wrapper img { max-width: 100%; height: auto; vertical-align: bottom; }
.ect-divider { height: 1px; background-color: var(--ect-border-color); border: 0; margin: 40px 0; }

.ect-mv { background-color: #f0f0f0; overflow: hidden; position: relative; }
.ect-mv .swiper-slide img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.ect-mv .swiper-pagination-bullet-active { background-color: #333; }
.ect-mv .swiper-button-next, .ect-mv .swiper-button-prev { color: #333; }

.ect-product-card { background-color: #fff; border: 1px solid var(--ect-border-color); border-radius: 8px; overflow: hidden; text-align: left; }
.ect-product-card__image { margin: 0; display: block; }
.ect-product-card__image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ect-product-card__body { padding: 15px; }
.ect-product-card__name { font-size: 16px; font-weight: bold; margin: 0 0 10px; }
.ect-product-card__price { font-size: 18px; font-weight: bold; color: #333; /* 赤から黒系のグレーに変更 */ margin: 0 0 15px; }
.ect-product-card__price small { font-size: 12px; font-weight: normal; color: #666; }

.ect-feature-section { display: flex; gap: 40px; align-items: center; }
.ect-feature-section + .ect-feature-section { margin-top: 60px; }
.ect-feature-section__image, .ect-feature-section__content { flex: 1; min-width: 0; }
.ect-feature-section--reverse { flex-direction: row-reverse; }
.ect-feature-section__title { font-size: 22px; font-weight: bold; margin: 0 0 15px; }

.ect-feature-slide-section { display: flex; gap: 40px; align-items: center; }
.ect-feature-slide-section + .ect-feature-slide-section { margin-top: 60px; }
.ect-feature-slide-section__image-slider, .ect-feature-slide-section__content { flex: 1; min-width: 0; }
.ect-feature-slide-section--reverse { flex-direction: row-reverse; }
.ect-feature-slide-section__title { font-size: 22px; font-weight: bold; margin: 0 0 15px; }
.ect-feature-slide-section__image-slider { position: relative; overflow: hidden; }
.ect-feature-slide-section .swiper-slide img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ect-feature-slide-section .swiper-pagination-bullet-active { background-color: #333; }
.ect-feature-slide-section .swiper-button-next, .ect-feature-slide-section .swiper-button-prev { color: #333; --swiper-navigation-size: 30px; }

.ect-banner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ect-banner-list a { display: block; }
.ect-banner-list img { transition: opacity 0.3s; }
.ect-banner-list a:hover img { opacity: 0.8; }

.ect-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background-color: #000; }
.ect-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- 高度なコンポーネント --- */
.ect-icon-list { display: flex; gap: 30px; padding: 0; list-style: none; }
.ect-icon-list__item { flex: 1; text-align: center; }
.ect-icon-list__icon {
    margin: 0 auto 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ect-primary-color);
}
.ect-icon-list__icon .material-symbols-outlined {
    font-size: 50px;
}
.ect-icon-list__title { font-weight: bold; }

.ect-step-flow { display: flex; list-style: none; padding: 0; justify-content: space-between; position: relative; }
.ect-step-flow__item { flex: 1; text-align: center; position: relative; padding: 0 10px; }
.ect-step-flow__item:not(:last-child)::after { content: ''; position: absolute; top: 25px; right: -15%; width: 30%; height: 1px; background: #ccc; border-top: 1px dashed #ccc; }
.ect-step-flow__number { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; background: var(--ect-primary-color); color: #fff; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; margin-bottom: 10px; }
.ect-step-flow__title { font-weight: bold; }

.ect-spec-table { width: 100%; border-collapse: collapse; }
.ect-spec-table th, .ect-spec-table td { border: 1px solid var(--ect-border-color); padding: 15px; text-align: left; }
.ect-spec-table th { background-color: var(--ect-background-color); width: 30%; }

.ect-anchor-nav { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--ect-border-color); z-index: 100; }
.ect-anchor-nav.is-fixed { position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.ect-anchor-nav ul { display: flex; justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ect-anchor-nav a { text-decoration: none; color: var(--ect-text-color); font-weight: bold; padding: 10px; }

.ect-tabs__nav { display: flex; list-style: none; padding: 0; border-bottom: 2px solid var(--ect-border-color); }
.ect-tabs__nav-item { margin: 0; }
.ect-tabs__nav-link { padding: 10px 20px; display: block; text-decoration: none; color: #999; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.ect-tabs__nav-link.is-active { color: var(--ect-text-color); border-color: var(--ect-border-color); border-bottom-color: #fff; font-weight: bold; border-radius: 5px 5px 0 0; }
.ect-tabs__content { padding: 20px; border: 2px solid var(--ect-border-color); border-top: 0; }
.ect-tabs__pane { display: none; }
.ect-tabs__pane.is-active { display: block; }

.ect-tabs--button .ect-tabs__nav {
    border-bottom: none;
    gap: 10px;
}
.ect-tabs--button .ect-tabs__nav-link {
    border: 1px solid var(--ect-border-color);
    background-color: var(--ect-background-color);
    color: var(--ect-text-color);
    border-radius: 5px;
    margin-bottom: 0;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.ect-tabs--button .ect-tabs__nav-link:hover {
    background-color: #e9e9e9;
}
.ect-tabs--button .ect-tabs__nav-link.is-active {
    background-color: var(--ect-primary-color);
    color: #fff;
    border-color: var(--ect-primary-color);
    font-weight: bold;
}
.ect-tabs--button .ect-tabs__content {
    border: 1px solid var(--ect-border-color);
    margin-top: 20px;
}

/* 汎用アコーディオン */
.ect-accordion__item {
    border-bottom: 1px solid var(--ect-border-color);
}
.ect-accordion__item:first-child {
    border-top: 1px solid var(--ect-border-color);
}
.ect-accordion__title {
    padding: 15px 40px 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    background: #fff;
}
.ect-accordion__title::before,
.ect-accordion__title::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 14px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease-out;
}
.ect-accordion__title::after {
    transform: translateY(-50%) rotate(90deg);
}
.ect-accordion__item.is-open .ect-accordion__title::after {
    transform: translateY(-50%) rotate(0deg);
}
.ect-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.ect-accordion__content-inner {
    padding: 20px;
    background-color: var(--ect-background-color);
}

/* サムネイル付きスライダー（縦） */
.ect-thumbnail-slider--vertical { display: grid; grid-template-columns: 100px 1fr; gap: 20px; }
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__main {
    overflow: hidden;
    position: relative;
    height: 430px;
}
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs { overflow: hidden; height: 430px; }
.ect-thumbnail-slider--vertical .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__main .swiper-slide img { aspect-ratio: 1/1; }
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs .swiper-slide { opacity: 0.5; cursor: pointer; transition: opacity 0.3s; border: 2px solid transparent; box-sizing: border-box; height: calc((100% - 30px) / 4) !important; }
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs .swiper-slide:not(:last-child) { margin-bottom: 10px; }
.ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--ect-primary-color); }

/* サムネイル付きスライダー（横） */
.ect-thumbnail-slider--horizontal .ect-thumbnail-slider__main { overflow: hidden; position: relative; margin-bottom: 10px; }
.ect-thumbnail-slider--horizontal .ect-thumbnail-slider__thumbs { overflow: hidden; }
.ect-thumbnail-slider--horizontal .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ect-thumbnail-slider--horizontal .ect-thumbnail-slider__main .swiper-slide img { aspect-ratio: 1/1; }
.ect-thumbnail-slider--horizontal .ect-thumbnail-slider__thumbs .swiper-slide { opacity: 0.5; cursor: pointer; transition: opacity 0.3s; border: 2px solid transparent; box-sizing: border-box; width: 25%; }
.ect-thumbnail-slider--horizontal .ect-thumbnail-slider__thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--ect-primary-color); }

@media screen and (max-width: 768px) {
    .ect-d-sp-none { display: none; }
    .ect-d-pc-none { display: block; }
    .ect-section { padding: 40px 0; }
    .ect-grid--2col, .ect-grid--3col, .ect-grid--4col { grid-template-columns: 1fr; }
    .ect-grid--sp-2col { grid-template-columns: repeat(2, 1fr); }
    .ect-heading--main { font-size: 24px; }
    .ect-heading--sub { font-size: 20px; }
    .ect-mv .swiper-slide img { aspect-ratio: 1 / 1; }
    .ect-feature-section, .ect-feature-section--reverse,
    .ect-feature-slide-section, .ect-feature-slide-section--reverse { flex-direction: column; }
    .ect-banner-list { grid-template-columns: 1fr; }
    .ect-icon-list, .ect-step-flow { flex-direction: column; gap: 20px; }
    .ect-step-flow__item:not(:last-child)::after { display: none; }
    .ect-spec-table th, .ect-spec-table td { width: auto; display: block; border: none; padding: 5px 0; }
    .ect-spec-table tr { border-bottom: 2px solid #ccc; display: block; margin-bottom: 15px; padding-bottom: 15px; }
    .ect-anchor-nav { overflow-x: auto; }
    .ect-anchor-nav ul { justify-content: flex-start; padding: 0 10px; }
    
    .ect-thumbnail-slider--vertical { display: flex; flex-direction: column; }
    .ect-thumbnail-slider--vertical .ect-thumbnail-slider__main { order: 1; margin-bottom: 10px; height: auto; }
    .ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs { order: 2; height: auto; }
    .ect-thumbnail-slider--vertical .ect-thumbnail-slider__thumbs .swiper-slide { width: 25%; height: auto; margin-bottom: 0; }
}


@media screen and (max-width: 992px) {
  .store-finder-layout {
    display: flex;
    flex-direction: column;
    gap: 40px; /* メインとサイドバーの間隔 */
  }

  .store-finder-layout .store-list-area,
  .store-finder-layout .sidebar {
    width: 100%;
    flex: none; /* flex-grow, flex-shrinkをリセット */
  }
}

/* --- 768px以下で適用（スマートフォンサイズなど） --- */
@media screen and (max-width: 768px) {
  /*
   * 既存の横スクロール設定をリセット
   */
  .table-container {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  .download-table {
    min-width: 100%;
    white-space: normal;
  }

  /*
   * テクニカルインフォメーションのテーブルをカード型レイアウトに変更
   */
  .download-table.techinfo thead {
    display: none; /* PC用のテーブルヘッダーは非表示に */
  }

  .download-table.techinfo tr {
    display: block; /* 各行をブロック要素にして独立させる */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
  }
  .download-table.techinfo tr:last-of-type {
    margin-bottom: 0;
  }

  .download-table.techinfo td {
    display: block; /* 各セルをブロック要素に */
    width: 100%;    /* 幅を100%に */
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    text-align: left; /* PC用のスタイルをリセット */
    white-space: normal; /* テキストの折り返しを許可 */
  }
  .download-table.techinfo tr td:first-of-type {
    padding-top: 0;
  }
  .download-table.techinfo tr td:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* HTMLのdata-label属性を使い、各項目のラベルを表示 */
/*  .download-table.techinfo td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25em;
  }*/

  /* 製品名のリンクを見やすく調整 */
  .download-table.techinfo td[data-label="製品名"] a {
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.4;
    word-break: break-word; /* 長い製品名でも折り返すように */
  }

  /* カテゴリの表示をタグ風に調整 */
  .download-table.techinfo td[data-label="カテゴリ"] span.category {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
  }
}