@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ====================================
   CORSA カスタムCSS - リニューアル版
   ==================================== */

/* --- グローバル --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ヘッダー調整 --- */
.l-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.l-header__bar {
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

/* --- メインビジュアル --- */
.p-mainVisual__slideTitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.08em;
    font-weight: 700;
}
.p-mainVisual__slideText {
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 0.04em;
}

/* --- セクション見出し --- */
.post_content h2,
.entry-content h2 {
    letter-spacing: 0.06em;
}

/* --- ブランドロゴ --- */
/* ブランドロゴ: corsa-brand-sectionクラス内のみ */
.corsa-brand-section .wp-block-columns .wp-block-column .wp-block-image img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}
.corsa-brand-section .wp-block-columns .wp-block-column .wp-block-image img:hover {
    transform: scale(1.05);
}

/* --- カードスタイル --- */
.wp-block-group.has-background[style*="border-radius:8px"] {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.wp-block-group.has-background[style*="border-radius:8px"]:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* --- ボタンホバー効果 --- */
.wp-block-button__link {
    transition: opacity 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.04em;
}
.wp-block-button__link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* --- アウトラインボタン --- */
.is-style-outline .wp-block-button__link:hover {
    opacity: 0.7;
}

/* --- フッターリンク --- */
.l-footer a {
    transition: opacity 0.3s;
}
.l-footer a:hover {
    opacity: 0.7;
}

/* --- Latest Posts ブロック --- */
.wp-block-latest-posts {
    padding: 0;
}
.wp-block-latest-posts li {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.wp-block-latest-posts li:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.wp-block-latest-posts__featured-image {
    margin-bottom: 0;
}
.wp-block-latest-posts__featured-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.wp-block-latest-posts__post-title {
    padding: 12px 16px 4px;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.5;
}
.wp-block-latest-posts__post-date {
    padding: 0 16px;
    font-size: 0.8em;
    color: #999;
}
.wp-block-latest-posts__post-excerpt {
    padding: 0 16px 16px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
}

/* --- テーブルスタイル --- */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}
.wp-block-table td {
    padding: 12px 16px;
    font-size: 0.95em;
}

/* --- セパレータ --- */
.wp-block-separator.is-style-wide {
    border-color: #d46612;
    border-width: 2px;
    max-width: 60px;
    margin-left: auto;
    margin-right: auto;
}

/* --- レスポンシブ --- */
@media (max-width: 781px) {
    .wp-block-columns .wp-block-column .wp-block-image img {
        max-height: 60px;
    }
}

/* ====================================
   Emanon Blocks 互換CSS
   ==================================== */

/* --- block-box (見出し付きボックス) --- */
.wp-block-emanon-blocks-block-box {
    margin-bottom: 48px;
}
.eb-block-box .block-box-h-left {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.eb-block-box .block-box-heading {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    padding: 8px 16px 8px 36px;
    flex: 1;
    border-radius: 4px 4px 0 0;
}
.eb-block-box .block-box-h-left i {
    position: absolute;
    margin-left: 10px;
    color: #fff;
    z-index: 1;
    font-size: 18px;
}
.eb-block-box .block-box-body-h-left {
    padding: 16px;
    border-style: solid;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* --- block-frame (枠線ボックス) --- */
.eb-block-frame {
    border-style: solid;
    border-radius: 0;
}
.block-frame-inner {
    /* inner wrapper */
}

/* --- block-cta-box (CTAボックス) --- */
.eb-cta-box {
    margin-bottom: 48px;
}
.block-cta-wrapper {
    border-style: solid;
    border-radius: 4px;
    overflow: hidden;
}
.block-cta-heading {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
}
.block-cta-text {
    margin-bottom: 16px;
}
.eb-cta-box .block-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s;
}
.eb-cta-box .block-btn:hover {
    opacity: 0.8;
}

/* --- pricing-table (料金表) --- */
.eb-pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.eb-pricing-table.is-eb-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}
.block-pricing-table-col {
    border-style: solid;
    border-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    min-width: 240px;
    flex: 1;
    max-width: 400px;
}
.block-col-2 { flex-basis: calc(50% - 8px); }
.block-col-3 { flex-basis: calc(33.333% - 11px); }
.block-pricing-table-heading-content {
    padding: 16px;
    text-align: center;
    color: #fff;
}
.block-pricing-table-heading {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    color: #fff;
}
.block-pricing-table-price {
    font-size: 1.3em;
    font-weight: bold;
    margin: 8px 0 0;
    color: #fff;
}
.block-pricing-table-description {
    padding: 16px;
    font-size: 0.95em;
}
.block-pricing-table-btn-content {
    padding: 0 16px 16px;
    text-align: center;
}
.block-pricing-table-btn-content .block-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* --- balloon (吹き出し) --- */
.epb-balloon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}
.epb-balloon__icon {
    flex-shrink: 0;
    width: 60px;
}
.epb-balloon__icon figure {
    margin: 0;
}
.epb-balloon__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.epb-balloon__content {
    flex: 1;
}
.epb-balloon__text {
    padding: 16px;
    border-radius: 8px;
    position: relative;
}

/* --- review (レビュー) --- */
.epb-review {
    margin-bottom: 32px;
    padding: 16px;
}
.is-style-epb-column__two-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.epb-review__icon {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}
.epb-review__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.epb-review__name {
    font-size: 0.85em;
    margin-top: 4px;
}
.epb-review__text {
    font-size: 0.8em;
}
.epb-review__content {
    flex: 1;
}
.epb-review__headling {
    font-size: 1em;
    padding: 8px 12px;
    margin-bottom: 8px;
}

/* --- starrating (星評価) --- */
.epb-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.epb-star-icon {
    width: 20px;
    height: 20px;
}

/* --- notice-box (通知ボックス) --- */
.epb-box {
    border-style: var(--epb-box-border-style, solid);
    border-color: var(--epb-box-border-color, #ddd);
    border-width: var(--epb-box-border-width-top, 2px) var(--epb-box-border-width-right, 2px) var(--epb-box-border-width-bottom, 2px) var(--epb-box-border-width-left, 2px);
    border-radius: var(--epb-box-radius, 4px);
    padding: var(--epb-box-padding-top, 16px) var(--epb-box-padding-right, 16px) var(--epb-box-padding-bottom, 16px) var(--epb-box-padding-left, 16px);
    background-color: var(--epb-box-padding-background-color, #fff);
    margin-bottom: 32px;
}
.epb-box__headline {
    font-weight: bold;
    padding: 4px 12px;
    margin-bottom: 8px;
    display: inline-block;
    border-radius: 3px;
    color: #fff;
    background-color: var(--epb-box-headline-background-color, #828990);
}

/* --- 共通ボタンスタイル --- */
.eb-buttons {
    text-align: center;
}
.block-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}
.block-btn:hover {
    opacity: 0.8;
}
.eb-btn-lg {
    padding: 16px 40px;
    font-size: 1.1em;
}

/* --- showcase-box (ショーケース) --- */
.eb-block-showcase-box {
    margin-bottom: 48px;
}
.showcase-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    border-style: solid;
    border-radius: 4px;
    overflow: hidden;
}
.showcase-box-image-position-right {
    flex-direction: row-reverse;
}
.showcase-box-thumbnail {
    flex: 0 0 40%;
    min-width: 200px;
}
.showcase-box-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.showcase-box-body {
    flex: 1;
    min-width: 200px;
}
.showcase-box-heading {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
}
.showcase-box-btn-content {
    margin-top: 16px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 599px) {
    .eb-pricing-table {
        flex-direction: column;
    }
    .block-pricing-table-col {
        max-width: 100%;
        flex-basis: 100%;
    }
    .showcase-box-wrapper {
        flex-direction: column;
    }
    .showcase-box-thumbnail {
        flex: none;
        width: 100%;
    }
    .is-style-epb-column__two-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .epb-balloon {
        flex-direction: column;
        align-items: center;
    }
}

/* --- 統計バー・CTAバーのダーク背景修正 --- */
.post_content > .wp-block-group.has-white-color.has-background[style*="background-color:#1a1a1a"] {
    background-color: #1a1a1a !important;
    color: #fff !important;
}
.post_content > .wp-block-group.has-white-color.has-background[style*="background-color:#1a1a1a"] .has-text-color {
    color: inherit;
}

/* --- 修理対応ブランド見出し色修正 --- */
.post_content .wp-block-group.has-background[style*="background-color:#f5f6f4"] h2 {
    color: #1a1a1a !important;
    border-left-color: #d46612 !important;
}


/* --- トップページ H2 セクション見出し --- */
/* 左ラインを削除し、SWELLセクション見出し風に */
.home .post_content h2.wp-block-heading {
    border: none !important;
    background: none !important;
    padding: .5em 0 !important;
    text-align: center;
    position: relative;
}
.home .post_content h2.wp-block-heading::before {
    display: none !important;
}
.home .post_content h2.wp-block-heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d46612;
    margin: 12px auto 0;
    border-radius: 2px;
}
/* フッターCTA内のH2は白文字のまま */
.home .post_content .has-white-color h2.wp-block-heading,
.home .post_content h2.wp-block-heading.has-white-color {
    color: #fff;
}

/* ====================================
   スマホ・タブレット レスポンシブ対応
   ==================================== */

/* --- ブランドセクション: モバイルで2列グリッド --- */
@media (max-width: 781px) {
    /* ブランドセクション内のcolumnsを横並び維持 */
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-columns:not(.are-vertically-aligned-center) {
        flex-wrap: wrap !important;
        flex-direction: row !important;
        gap: 12px !important;
    }
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-columns:not(.are-vertically-aligned-center) > .wp-block-column {
        flex-basis: calc(50% - 6px) !important;
        flex-grow: 0 !important;
        max-width: calc(50% - 6px) !important;
    }
    /* ブランドロゴ画像サイズ調整 */
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-image img {
        max-height: 50px;
    }

    /* --- 統計バー: 2×2グリッド --- */
    .has-background[style*="background-color:#1a1a1a"] .wp-block-columns.are-vertically-aligned-center[style*="padding-top:24px"] {
        flex-wrap: wrap !important;
        flex-direction: row !important;
        gap: 0 !important;
    }
    .has-background[style*="background-color:#1a1a1a"] .wp-block-columns.are-vertically-aligned-center[style*="padding-top:24px"] > .wp-block-column {
        flex-basis: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
    }

    /* --- CTAボタン（ダーク背景内）: 縦並び調整 --- */
    .has-background[style*="background-color:#1a1a1a"] .wp-block-columns:not(.are-vertically-aligned-center) > .wp-block-column {
        margin-bottom: 8px;
    }

    /* --- CORSAが選ばれる理由セクション: カード間スペース --- */
    .home .post_content .wp-block-columns > .wp-block-column > h3 {
        font-size: 1em;
    }

    /* --- サービス案内カード: 縦並び --- */
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top:40px"] {
        display: block !important;
    }
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top:40px"] > .wp-block-column {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        margin-bottom: 16px !important;
    }

    /* --- メインビジュアル テキスト重なり防止 --- */
    .p-mainVisual__slideTitle {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }
    .p-mainVisual__slideText {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    /* --- セクション余白をモバイル用に縮小 --- */
    .home .wp-block-group.alignfull[style*="padding-top:64px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* --- フッターCTAセクション余白 --- */
    .home .wp-block-group.alignfull[style*="background-color:#1a1a1a"][style*="padding-bottom:64px"] {
        padding-bottom: 40px !important;
    }

    /* --- H2見出しサイズ --- */
    .home .post_content h2.wp-block-heading {
        font-size: 1.3em;
    }

    /* --- 修理×レザーケア コロニルセクション --- */
    .home .wp-block-group.has-border-color[style*="border-color:#d46612"] {
        padding: 20px 16px !important;
    }
    .home .wp-block-group.has-border-color[style*="border-color:#d46612"] .wp-block-columns {
        flex-direction: column;
    }
    .home .wp-block-group.has-border-color[style*="border-color:#d46612"] .wp-block-column[style*="flex-basis:60%"],
    .home .wp-block-group.has-border-color[style*="border-color:#d46612"] .wp-block-column[style*="flex-basis:40%"] {
        flex-basis: 100% !important;
    }
}

/* --- さらに小さい画面（〜480px）--- */
@media (max-width: 480px) {
    /* ブランドロゴをさらに小さく */
    .home .has-background[style*="background-color:#f5f6f4"] .wp-block-image img {
        max-height: 40px;
    }

    /* 統計バーの数字サイズ */
    .has-background[style*="background-color:#1a1a1a"] .has-text-color[style*="font-size:1.6em"] {
        font-size: 1.2em !important;
    }
}

/* --- Floating Menu 下部バー（スマホ）--- */
@media (max-width: 599px) {
    /* FloatingMenuの上にコンテンツが被らないよう余白確保 */
    body {
        padding-bottom: 60px;
    }
}

/* --- outline buttons border standardization --- */
.is-style-outline .wp-block-button__link {
    border-width: 2px !important;
}

/* --- フッターウィジェット調整 --- */
.w-footer__box .c-widget__title.-footer {
    font-size: 0.9em;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.w-footer__box .textwidget a {
    transition: opacity 0.3s;
}
.w-footer__box .textwidget a:hover {
    opacity: 0.7;
}
.w-footer__box .corsa-footer-company p {
    color: rgba(255,255,255,0.85);
}


/* ====================================
   Phase 2: ダブルヘッダーバー
   ==================================== */
.corsa-headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1;
    padding: 6px 0;
}
.corsa-headbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.corsa-headbar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
}
.corsa-headbar__item i {
    font-size: 11px;
    opacity: 0.7;
}
.corsa-headbar__phone {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}
.corsa-headbar__phone:hover {
    opacity: 0.8;
}
.corsa-headbar__badge {
    background: rgba(255,255,255,0.12);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.corsa-headbar__right {
    flex-shrink: 0;
}
.corsa-headbar__line-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #06c755;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}
.corsa-headbar__line-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff !important;
}
.corsa-headbar__line-btn i {
    font-size: 14px;
}

/* ====================================
   Phase 3: グローバルナビ改善
   ==================================== */
.c-gnav .sub-menu {
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 6px 6px;
    border-top: 2px solid #d46612;
    padding: 4px 0;
    background: #fff;
}
.c-gnav .sub-menu li {
    border-bottom: none;
}
.c-gnav .sub-menu a {
    padding: 10px 20px;
    font-size: 13px;
    color: #333;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.c-gnav .sub-menu a:hover {
    background: #f5f6f4;
    color: #d46612;
}
.c-gnav > li > a {
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 0 14px;
}
.w-header .corsa-header-cta-wrap {
    display: flex;
    align-items: center;
}
.w-header .corsa-header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d46612;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}
.w-header .corsa-header-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ====================================
   Phase 4: CTA パターン
   ==================================== */
.corsa-cta-banner {
    padding: 32px 24px !important;
    border-radius: 8px;
    margin: 32px auto;
    border-left: 4px solid #d46612;
    max-width: 800px;
}
.corsa-cta-banner h3 {
    font-size: 1.3em;
    margin-bottom: 12px !important;
    border: none !important;
}
.corsa-cta-banner h3::after {
    display: none !important;
}
.corsa-cta-line-btn .wp-block-button__link,
a.corsa-line-btn {
    background: #06c755 !important;
    color: #fff !important;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    transition: opacity 0.2s, transform 0.2s;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.corsa-cta-line-btn .wp-block-button__link:hover,
a.corsa-line-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}
.corsa-cta-compact {
    background: #f8f8f8;
    padding: 16px 24px;
    border-radius: 6px;
    margin: 24px auto;
    max-width: 600px;
    text-align: center;
}
.corsa-floating-cta {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 8px 12px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
}
.corsa-floating-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 959px) {
    .corsa-floating-cta { display: block; }
}
@media (min-width: 960px) {
    .corsa-floating-cta { display: none !important; }
}
.corsa-floating-cta__inner {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}
.corsa-floating-cta__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.2s;
}
.corsa-floating-cta__btn:hover { opacity: 0.9; color: #fff !important; }
.corsa-floating-cta__btn--line { background: #06c755; }
.corsa-floating-cta__btn--tel { background: #1a1a1a; }

/* ====================================
   Phase 5: 修理箇所グリッド + FAQ + 営業時間テーブル
   ==================================== */
.corsa-repair-grid {
    gap: 16px !important;
    max-width: 900px;
    margin: 24px auto 0;
    justify-content: center !important;
}
.corsa-repair-card {
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 12px 16px !important;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 !important;
}
.corsa-repair-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.corsa-repair-card .repair-icon {
    font-size: 28px;
    color: #d46612;
    margin-bottom: 8px;
    display: block;
}
.corsa-repair-card p {
    margin: 0 !important;
    font-size: 13px;
    font-weight: 600;
}
.corsa-repair-card a { color: #333; text-decoration: none; }
.corsa-repair-card a:hover { color: #d46612; }
@media (max-width: 599px) {
    .corsa-repair-card {
        width: calc(50% - 8px) !important;
        flex-basis: calc(50% - 8px) !important;
    }
}
.corsa-hours-table table {
    max-width: 500px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.corsa-hours-table thead th {
    background: #d46612;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9em;
}
.corsa-hours-table thead th:first-child { border-radius: 6px 0 0 6px; }
.corsa-hours-table thead th:last-child { border-radius: 0 6px 6px 0; }
.corsa-hours-table tbody td {
    padding: 10px 20px;
    background: #f8f8f8;
    font-size: 0.9em;
    border: none;
}
.corsa-hours-table tbody tr td:first-child {
    border-radius: 6px 0 0 6px;
    font-weight: 600;
}
.corsa-hours-table tbody tr td:last-child { border-radius: 0 6px 6px 0; }
.corsa-hours-table tbody tr:hover td { background: #f0f0f0; }
.corsa-faq-section { padding: 48px 0; }
.corsa-faq-section .swell-block-faq {
    max-width: 800px;
    margin: 0 auto;
}


/* ====================================
   Phase 6-7: フッター強化 + ダークCTA
   ==================================== */
.corsa-footer-company p {
    margin: 4px 0;
    font-size: 0.9em;
    line-height: 1.6;
}
.corsa-footer-company a {
    color: inherit;
    text-decoration: none;
}
.corsa-footer-company a:hover {
    color: #d46612;
}
.corsa-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.corsa-footer-links li {
    margin: 0 0 6px;
}
.corsa-footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.corsa-footer-links a:hover {
    color: #d46612;
}
.corsa-footer-links a::before {
    content: '›';
    margin-right: 6px;
    color: #d46612;
}
.corsa-footer-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.corsa-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.2s;
}
.corsa-footer-btn:hover {
    opacity: 0.88;
    color: #fff !important;
}
.corsa-footer-btn--line {
    background: #06c755;
}
.corsa-footer-btn--form {
    background: #d46612;
}
.corsa-footer-btn--tel {
    background: #333;
}

/* ダークCTA */
.corsa-cta-dark {
    padding: 48px 32px !important;
    border-radius: 8px;
    margin: 32px auto;
    max-width: 800px;
    text-align: center;
}
.corsa-cta-dark h3 {
    border: none !important;
    font-size: 1.3em;
}
.corsa-cta-dark h3::after {
    display: none !important;
}


/* ====================================
   v2: 営業時間テーブル改善
   ==================================== */
.corsa-biz-hours table {
    border-collapse: collapse !important;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.corsa-biz-hours thead th {
    background: #d46612 !important;
    color: #fff !important;
    padding: 10px 16px !important;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center !important;
    border: none !important;
}
.corsa-biz-hours thead th:first-child {
    border-radius: 6px 0 0 0;
    text-align: left !important;
}
.corsa-biz-hours thead th:last-child {
    border-radius: 0 6px 0 0;
}
.corsa-biz-hours tbody td {
    padding: 10px 16px !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    font-size: 0.9em;
    text-align: center;
}
.corsa-biz-hours tbody td:first-child {
    font-weight: 600;
    text-align: left;
    background: #fafafa;
}
.corsa-biz-hours tbody tr:nth-child(odd) td {
    background: #fafafa;
}
.corsa-biz-hours tbody tr:nth-child(even) td {
    background: #f5f5f5;
}
.corsa-biz-hours tbody tr:last-child td {
    border-bottom: none !important;
}
.corsa-biz-hours tbody tr:last-child td[colspan] {
    color: #d46612;
    font-weight: 600;
}
.corsa-biz-hours figcaption,
.corsa-biz-hours caption {
    display: none;
}

/* ====================================
   v2: 修理箇所カード改善（センタリング）
   ==================================== */
.corsa-repair-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.corsa-repair-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 16px 16px;
    text-align: center;
    min-width: 120px;
    max-width: 140px;
    flex: 1 1 120px;
    transition: box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
}
.corsa-repair-card:hover {
    border-color: #d46612;
    box-shadow: 0 4px 16px rgba(212,102,18,0.15);
}
.corsa-repair-card .repair-icon {
    display: block;
    font-size: 28px;
    color: #d46612;
    margin-bottom: 8px;
}
.corsa-repair-card p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.4;
}
.corsa-repair-card a {
    color: #333;
    text-decoration: none !important;
    display: block;
}
.corsa-repair-card a:hover {
    color: #d46612;
}

@media (max-width: 599px) {
    .corsa-repair-grid {
        gap: 10px !important;
    }
    .corsa-repair-card {
        min-width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        flex-basis: calc(50% - 10px) !important;
        padding: 18px 10px 14px !important;
    }
    .corsa-repair-card .repair-icon {
        font-size: 24px;
    }
    .corsa-repair-card p {
        font-size: 12px;
    }
}

/* ====================================
   v2: 準備中セクション
   ==================================== */
.corsa-coming-soon {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.corsa-coming-soon h3 {
    border: none !important;
    padding: 0 !important;
}
.corsa-coming-soon h3::after {
    display: none !important;
}


/* ====================================
   ケアセット画像サイズ強制拡大
   ==================================== */
.wp-block-group.has-border-color[style*="border-color:#d46612"] .wp-block-image img {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.wp-block-group.has-border-color[style*="border-color:#d46612"] .wp-block-columns {
    gap: 32px;
}


/* ====================================
   FAQ アコーディオン
   ==================================== */
.corsa-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.corsa-faq-item {
    border-bottom: 1px solid #e8e8e8;
}
.corsa-faq-item:first-child {
    border-top: 1px solid #e8e8e8;
}
.corsa-faq-q {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 8px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}
.corsa-faq-q:hover {
    background: #fafafa;
}
.corsa-faq-question {
    flex: 1;
}
.corsa-faq-toggle {
    font-size: 18px;
    color: #d46612;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-weight: 400;
}
.corsa-faq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d46612;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.corsa-faq-badge--a {
    background: #888;
}
.corsa-faq-a {
    display: flex;
    gap: 12px;
    padding: 0 8px 18px 8px;
    align-items: flex-start;
}
.corsa-faq-a p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    flex: 1;
}
.corsa-faq-a[hidden] {
    display: none;
}
@media (max-width: 599px) {
    .corsa-faq-q {
        font-size: 14px;
        padding: 14px 4px;
    }
    .corsa-faq-a p {
        font-size: 13px;
    }
}


/* ====================================
   デザインポリッシュ: P0/P1/P2 修正
   ==================================== */

/* --- P0-1: フローティングCTA iPhone safe-area対応 --- */
.corsa-floating-cta {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- P1-3: ヘッダーバー狭いデスクトップ改善 --- */
@media (min-width: 960px) and (max-width: 1100px) {
    .corsa-headbar__inner {
        font-size: 11px;
        gap: 12px;
        padding: 0 12px;
    }
    .corsa-headbar__item:nth-child(1) {
        display: none; /* 住所を非表示 */
    }
}

/* --- P1-5: LINE CTAボタン パルスアニメーション --- */
@keyframes corsaPulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}
.corsa-headbar__btn--line {
    animation: corsaPulse 2.5s infinite;
}
.corsa-cta-banner .wp-block-button__link[style*="06c755"],
a.corsa-floating-cta__btn--line {
    animation: corsaPulse 2.5s infinite;
}

/* --- P1-6: サービスカード等高 --- */
.corsa-repair-grid {
    align-items: stretch;
}
.corsa-repair-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- P2: アウトラインボタン ホバー改善 --- */
.is-style-outline .wp-block-button__link:hover {
    background: rgba(0,0,0,0.03) !important;
    opacity: 1;
}

/* --- P2: シャドウ統一 (3段階: sm/md/lg) --- */
/* sm: 0 1px 4px rgba(0,0,0,0.06) - 通常状態 */
/* md: 0 4px 12px rgba(0,0,0,0.08) - ホバー */
/* lg: 0 8px 24px rgba(0,0,0,0.12) - 強調 */

/* --- P2: AIレポートセクション改善 --- */
.corsa-coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.corsa-coming-soon p:first-child {
    font-size: 40px;
    margin-bottom: 12px;
}
.corsa-coming-soon p:nth-child(2) {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.corsa-coming-soon p:nth-child(3) {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
}

/* --- 全体: スムーズスクロール --- */
html {
    scroll-behavior: smooth;
}

/* --- テーブル改善: ストライプを濃く --- */
.corsa-biz-hours tr:nth-child(even) td {
    background: #fdf6ef;
}
.corsa-biz-hours .lunch-note {
    background: #fff5eb;
    color: #c55a11;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
}

/* --- 修理カード: ホバー時のアイコン色変化 --- */
.corsa-repair-card a:hover .repair-icon {
    color: #b8530e;
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.corsa-repair-card .repair-icon {
    transition: all 0.3s ease;
}

/* --- FAQ: 開閉アニメーション --- */
.corsa-faq-a {
    animation: corsaFadeIn 0.3s ease;
}
@keyframes corsaFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CTA: グラデーション背景 --- */
.corsa-cta-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

/* --- ブランドセクション改善 --- */
.wp-block-columns .wp-block-column .wp-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* --- モバイル: FAQバッジサイズ調整 --- */
@media (max-width: 599px) {
    .corsa-faq-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .corsa-coming-soon {
        padding: 32px 16px;
    }
    .corsa-coming-soon p:first-child {
        font-size: 32px;
    }
    .corsa-coming-soon p:nth-child(2) {
        font-size: 16px;
    }
}

/* --- 印刷対応 --- */
@media print {
    .corsa-floating-cta,
    .corsa-headbar,
    .p-fixBtnWrap {
        display: none !important;
    }
}

/* ====================================
   フッター営業時間テーブル可読性修正
   ==================================== */
.w-footer__box .corsa-footer-hours table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}
.w-footer__box .corsa-footer-hours th {
    background: rgba(212, 102, 18, 0.9);
    color: #fff;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.85em;
    text-align: left;
}
.w-footer__box .corsa-footer-hours th:first-child {
    border-radius: 4px 0 0 4px;
}
.w-footer__box .corsa-footer-hours th:last-child {
    border-radius: 0 4px 4px 0;
}
.w-footer__box .corsa-footer-hours td {
    padding: 5px 10px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85em;
}
.w-footer__box .corsa-footer-hours tr:last-child td {
    border-bottom: none;
}
.w-footer__box .corsa-footer-company p {
    color: rgba(255,255,255,0.8);
    margin: 4px 0;
    font-size: 0.85em;
}
.w-footer__box .corsa-footer-company a {
    color: rgba(255,255,255,0.9);
}
.w-footer__box .corsa-footer-company strong {
    color: #fff;
    font-size: 1.05em;
}

/* --- CTA バナー テキスト可読性修正 --- */
.corsa-cta-banner h3,
.corsa-cta-banner .wp-block-heading {
    color: #fff !important;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
}
.corsa-cta-banner p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.95em;
    line-height: 1.8;
}
/* ====================================
   Pricing table: 4列カットオフ修正
   ==================================== */
/* Desktop: show all columns without horizontal scroll */
@media (min-width: 600px) {
  .eb-pricing-table.is-eb-scroll {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .eb-pricing-table .block-pricing-table-col {
    min-width: 160px;
  }
}
/* Mobile: keep horizontal scroll for usability */
@media (max-width: 599px) {
  .eb-pricing-table.is-eb-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .eb-pricing-table .block-pricing-table-col {
    min-width: 240px;
  }
}

/* --- Tab Navigation (Brand / Repair switcher) --- */
.corsa-tab-section {
  background: #f5f6f4;
}
.corsa-tab-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
}
.corsa-tab-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.corsa-tab-btn:hover {
  color: #333;
}
.corsa-tab-btn.is-active {
  color: #d46612;
  border-bottom-color: #d46612;
}
.corsa-tab-panel {
  transition: opacity 0.3s;
}
.corsa-tab-panel[style*="display:none"],
.corsa-tab-panel[style*="display: none"] {
  opacity: 0;
}

/* --- 修理について セクション --- */
.corsa-repair-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 24px auto 0;
}
.corsa-info-link {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.corsa-info-link:hover {
  border-color: #d46612;
  color: #d46612;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 599px) {
  .corsa-repair-info-grid {
    grid-template-columns: 1fr;
  }
}
/* ====================================
   デザインレビュー改善 (2026-03-05)
   ==================================== */

/* --- FIX #1: SP フローティングバー2段問題の解消 --- */
/* SWELLデフォルトの固定フッターバーを非表示にし、カスタムフローティングCTAに統合 */
@media (max-width: 959px) {
  .p-fixBtnWrap {
    display: none !important;
  }
  /* カスタムフローティングCTAを最下部に配置 */
  .corsa-floating-cta {
    bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  /* body下部の余白もフローティングCTA分のみに */
  body {
    padding-bottom: 56px !important;
  }
}

/* --- FIX #2: サービス案内カード3枚の高さ統一 --- */
/* トップページのサービスカード（修理の流れ/概算料金/リカラー・染色） */
.home .post_content .wp-block-group.has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top"] {
  display: flex !important;
  align-items: stretch !important;
}
.home .post_content .wp-block-group.has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top"] > .wp-block-column {
  display: flex;
  flex-direction: column;
}
.home .post_content .wp-block-group.has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top"] > .wp-block-column > .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home .post_content .wp-block-group.has-background[style*="background-color:#f5f6f4"] .wp-block-columns[style*="margin-top"] > .wp-block-column > .wp-block-group > .wp-block-buttons {
  margin-top: auto;
}

/* --- FIX #3: タブとコンテンツの視覚的接続改善 --- */
.corsa-tab-section {
  background: #f5f6f4;
  padding-top: 32px;
  padding-bottom: 0;
  margin-bottom: 0;
}
.corsa-tab-nav {
  background: transparent;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0;
}
.corsa-tab-btn {
  padding: 14px 32px 12px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}
.corsa-tab-btn.is-active {
  color: #d46612;
  border-bottom-color: #d46612;
  background: transparent;
}
/* タブコンテンツ(brand section)の上部をタブバーとシームレスに繋ぐ */
.corsa-tab-panel > .wp-block-group.alignfull.has-background[style*="background-color:#f5f6f4"] {
  margin-top: 0 !important;
  padding-top: 32px !important;
}

/* --- FIX #4: KPIバー下CTAボタンのスタイル統一 --- */
/* 電話番号ボタンをオレンジ/グリーンと同じ高さ・角丸に統一 */
.has-background[style*="background-color:#1a1a1a"] .is-style-outline .wp-block-button__link {
  border-radius: 4px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}
.has-background[style*="background-color:#1a1a1a"] .is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.16) !important;
  opacity: 1 !important;
}

/* --- FIX #5: セクション間余白の最適化 --- */
/* CORSAが選ばれる理由: 上の余白を詰める */
.home .post_content > .wp-block-group:not(.has-background) > h2.wp-block-heading:first-child {
  margin-top: 0;
}
/* セクション間の一貫した余白 */
.home .post_content > .wp-block-group.alignfull {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- FIX #6: 「革の買取」カードの差別化 --- */
.corsa-repair-card:last-child {
  border-color: #c9a96e;
  background: #fdfbf7;
}
.corsa-repair-card:last-child .repair-icon {
  color: #c9a96e;
}
.corsa-repair-card:last-child:hover {
  border-color: #b8922e;
  box-shadow: 0 4px 16px rgba(201,169,110,0.2);
}

/* --- FIX #7: フッターCTAセクションのボタン統一 --- */
.home .post_content .wp-block-group.alignfull[style*="background-color:#1a1a1a"]:last-of-type .wp-block-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.home .post_content .wp-block-group.alignfull[style*="background-color:#1a1a1a"]:last-of-type .wp-block-button__link {
  min-width: 200px;
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}