/* ──────────────────────────────────────────────────
   公開マーケページ全体の見出し・本文フォントを Zen Maru Gothic
   (丸ゴシック) で柔らかい印象に。ダッシュボード/管理画面側 (homepage/app.css
   を読み込まないページ) には影響しない。
   ────────────────────────────────────────────────── */
body {
    font-family: "Zen Maru Gothic",
        -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
        "Yu Gothic", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
}

/* 日本語テキストの孤立改行 (「いる」「す。」のような語尾) を抑える。
   ただし大見出し系 (.section-title 等) に keep-all を当てると、
   「は？」が 1 単語扱いで丸ごと改行送りされたり、「・」が単独行になるため、
   大見出しは default の改行に任せる。短いカード見出し・本文だけに適用する。 */
.lead-catch,
.compare-card h3,
.compare-card li,
.pain-card h3,
.pain-card p,
.solution-card h3,
.solution-card p,
.feature-box h3,
.feature-box p,
.faq-question {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.header-menu-container {
    overflow: hidden;
    background-color: #bcad9b;
    text-align: center;
    position: fixed;
    top: 55px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.header-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.header-menu-container li {
    flex: 1 1 0;
    min-width: 0;
}

.header-menu-container .item {
    display: block;
    padding: 10px 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.header-menu-container .item i {
    margin-left: 8px;
}

.header-menu-container .item:hover {
    opacity: 0.86;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: #2d2722;
    min-height: 720px;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

.bg_overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(27, 23, 20, 0.84) 0%,
            rgba(27, 23, 20, 0.70) 42%,
            rgba(27, 23, 20, 0.48) 100%
        );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 72px 20px 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 40px;
    align-items: center;
    min-height: 620px;
}

.hero-copy {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ee;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.hero-container h1 {
    text-align: left;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.18;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-lead {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
}

.hero-points li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: #f7e8d3;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.hero-visual {
    width: 100%;
}

.slick-slider {
    margin-top: 0;
}

.slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}

.hero-img {
    text-align: center;
}

.hero-img img {
    width: 100%;
    max-width: 520px;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.95);
}

.hero-caption {
    margin-top: 12px;
    color: #fff7ee;
    font-size: 14px;
    font-weight: 700;
}

.trust-strip {
    background: #fff;
    border-bottom: 1px solid #eee7df;
    padding: 16px 0;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.trust-item {
    padding: 10px 16px;
    border: 1px solid #e9e1d8;
    border-radius: 999px;
    background: #fbfaf8;
    color: #5d5247;
    font-weight: 700;
    font-size: 14px;
}

.section-head {
    max-width: 860px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    margin-bottom: 14px;
    color: #2f2925;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 16px;
    color: #6f6a64;
    line-height: 1.8;
    margin: 0;
}

.pain-section,
.solution-section,
.result-section,
.case_study-section,
.voice-section,
.video-section,
.features-section,
.pricing-section,
.faq-section,
.intro-steps,
.wc-section {
    padding: 84px 20px;
}

.pain-section {
    background: #fbfaf8;
}

.pain-grid,
.solution-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pain-card,
.solution-card,
.feature-box,
.compare-card {
    background: #fff;
    border: 1px solid #ebe4dc;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 10px 24px rgba(33, 26, 21, 0.05);
}

.pain-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f4ede6;
    color: #5d5247;
    font-size: 22px;
    margin-bottom: 16px;
}

.pain-card h3,
.solution-card h3,
.feature-box h3,
.compare-card h3 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #2f2925;
}

.pain-card p,
.solution-card p,
.feature-box p {
    color: #6f6a64;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

.solution-section {
    background: #fff;
}

.solution-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #c3b5a5;
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
}

.result-section {
    background: linear-gradient(180deg, #f8f4ef 0%, #fff 100%);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.ba-card {
    background: #fff;
    border: 1px solid #ebe4dc;
    border-radius: 20px;
    padding: 28px 28px;
    box-shadow: 0 12px 28px rgba(33, 26, 21, 0.06);
}

.ba-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2f2925;
}

.ba-card ul {
    margin: 0;
    padding-left: 18px;
}

.ba-card li {
    margin-bottom: 10px;
    color: #5f5851;
    line-height: 1.8;
}

.ba-before {
    background: #fffaf6;
}

.ba-after {
    background: #f7f3ee;
}

.ba-arrow {
    font-size: 28px;
    color: #a29383;
}

.case_study-section {
    background: #fff;
}

.case-card {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebe4dc;
    box-shadow: 0 14px 34px rgba(31, 25, 20, 0.06);
    padding: 32px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

.case-image {
    flex: 1 1 300px;
    text-align: center;
}

.case-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.case-content {
    flex: 1 1 460px;
}

.case-meta {
    margin-bottom: 8px;
}

.case-title {
    font-size: 30px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-title a {
    color: #5d5247;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #c3b5a5;
}

.case-title a:hover {
    opacity: 0.78;
    text-decoration-color: #5d5247;
}

.case-title .bi {
    font-size: 0.8em;
    margin-left: 4px;
    color: #a29383;
    vertical-align: 1px;
}

/* 画像クリックで店舗ページに飛べることを視覚的に示す */
.case-image > a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.case-image > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

/* 化名 (実名でない) の小型カード。実名カードと並ぶサイズだと目立ちすぎる
   ので、サブ扱いの 2 列グリッド + 一段小さい文字サイズで控えめに見せる */
.case-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.case-mini {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #ece7e2;
    border-radius: 12px;
}

.case-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #faf6ef;
    color: #b89876;
}

.case-mini__icon .bi {
    font-size: 22px;
    line-height: 1;
}

.case-mini__body {
    flex: 1 1 auto;
    min-width: 0;
}

.case-mini__title {
    font-size: 14px;
    font-weight: 700;
    color: #5d5247;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.case-mini__lead {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(48, 52, 58, 0.78);
    margin: 0 0 8px;
}

.case-mini__list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(48, 52, 58, 0.66);
}

.case-mini__list li + li {
    margin-top: 2px;
}

/* セクション末尾の免責注記 */
.case-disclaimer {
    margin: 20px auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(48, 52, 58, 0.55);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .case-mini-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }
    .case-mini {
        padding: 14px 14px 12px;
    }
}

/* カード下部の明示 CTA リンクボタン */
.case-cta {
    margin-top: 18px;
}
.case-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: #fff;
    color: #5d5247;
    border: 1.5px solid #5d5247;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease;
    word-break: keep-all;
    overflow-wrap: break-word;
}
/* mobile はボタンを画面幅いっぱいにして 2 行になっても綺麗に中央寄せ */
@media (max-width: 768px) {
    .case-link-btn {
        display: flex;
        width: 100%;
        text-align: center;
        line-height: 1.5;
    }
}
.case-link-btn:hover {
    background: #5d5247;
    color: #fff;
}
.case-link-btn .bi {
    transition: transform .2s ease;
}
.case-link-btn:hover .bi {
    transform: translate(2px, -2px);
}

.plan-name {
    display: inline-block;
    background-color: #f3ece5;
    color: #5d5247;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-name a {
    text-decoration: none;
    color: inherit;
}

.case-lead {
    font-size: 20px;
    font-weight: 700;
    color: #2f2925;
    margin-bottom: 14px;
    line-height: 1.6;
}

.case-text {
    color: #5f5851;
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 14px;
}

.case-list {
    margin: 0;
    padding-left: 18px;
}

.case-list li {
    margin-bottom: 8px;
    color: #5d5247;
    line-height: 1.8;
    font-weight: 600;
}

.voice-section {
    background: #fbfaf8;
    text-align: center;
}

.voice-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.voice-card {
    background-color: #fff;
    border-radius: 18px;
    border: 1px solid #ebe4dc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    padding: 28px 22px;
    width: 320px;
    max-width: 100%;
    text-align: left;
    position: relative;
}

.fit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f2925;
}

.fit-card p {
    margin: 0;
    color: #6f6a64;
    line-height: 1.8;
}

.video-section {
    background-color: #fff;
    text-align: center;
}

.video-container {
    max-width: 880px;
    margin: auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
    border: 0;
}

.features-section {
    background-color: #f7f4f1;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-box {
    text-align: left;
    max-width: none;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #f1e8dd;
    color: #5d5247;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-list-section {
    background: #fff !important;
}

.feature-list-title {
    font-size: 20px;
    color: #2f2925;
}

.feature-list li {
    padding: 10px 0;
    border-top: 1px solid #f0ebe5;
    color: #5f5851;
    line-height: 1.75;
}

.feature-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.pricing-section {
    background-color: #fbfaf8;
    text-align: center;
}

.plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.plan-cards-single {
    max-width: 760px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #e8e1d9;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    padding: 34px 26px;
    width: 100%;
}

.plan-card-main {
    max-width: 540px;
    border: 2px solid #c3b5a5;
}

.plan-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #5d5247;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.plan-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2f2925;
}

.pricing-section .price {
    font-size: 20px;
    margin-bottom: 22px;
    color: #5f5851;
}

.pricing-section .price span {
    font-weight: 800;
    color: #2f2925;
    font-size: 32px;
}

.free-badge {
    display: inline-block;
    background-color: #c3b5a5;
    color: white;
    font-weight: 800;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    margin: 8px 0 18px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.features li {
    padding: 12px 0;
    font-size: 16px;
    border-top: 1px solid #f1ece7;
    color: #5f5851;
}

.features li:first-child {
    border-top: none;
}

.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pricing-note {
    margin-top: 18px;
    color: #6f6a64;
    font-size: 14px;
}

.pricing-note a {
    color: #5d5247;
    font-weight: 700;
    text-decoration: underline;
}

.cta-section {
    background: linear-gradient(135deg, #c3b5a5 0%, #a29383 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 60px 20px;
    box-shadow: 0 18px 38px rgba(50, 39, 30, 0.12);
}

.cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 18px;
}

.cta-title span {
    color: #fff8ef;
}

.cta-text {
    font-size: 16px;
    margin-bottom: 28px;
    opacity: 0.95;
    line-height: 1.9;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background-color: #ffffff;
    color: #5e5245;
    padding: 14px 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.cta-button-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.intro-steps {
    background: #fff;
    text-align: center;
}

.intro-steps .step-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-top: 40px;
}

.intro-steps .step {
    background: white;
    border-radius: 16px;
    border: 1px solid #ebe4dc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    padding: 30px 24px;
    width: 300px;
    max-width: 100%;
}

.intro-steps .step-number {
    font-size: 32px;
    font-weight: 800;
    color: #a29383;
    margin-bottom: 10px;
}

.intro-steps .step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2f2925;
}

.intro-steps .step-description {
    font-size: 14px;
    color: #6f6a64;
    line-height: 1.8;
}

.faq-section {
    background-color: #f9f6f2;
}

.faq-item {
    max-width: 880px;
    margin: 0 auto 18px;
    padding: 22px 24px;
    border-left: 4px solid #c3b5a5;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.faq-question {
    font-weight: 700;
    margin-bottom: 10px;
    color: #2f2925;
    font-size: 18px;
}

.faq-answer {
    color: #5f5851;
    line-height: 1.8;
    margin: 0;
}

.compare-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

/* grid item の default min-width:auto はコンテンツ最小幅まで広がるため、
   日本語の長い名詞句があると親 grid を突き抜けて横スクロールを発生させる。
   主要な grid container の子に min-width:0 を明示する。
   (case_study など個別 grid 以外のレイアウトもここに足す) */
.compare-simple > *,
.pain-grid > *,
.solution-grid > *,
.feature-grid > *,
.case-grid > *,
.case-content,
.case-card,
.usecase-cards > *,
.howto > *,
.benefits > *,
.plan-cards > *,
.intro-steps > * {
    min-width: 0;
}

.compare-card ul {
    margin: 0;
    padding-left: 18px;
}

.compare-card li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #5f5851;
}

.lead-catch {
    background: #fff;
    border: 1px solid #ebe4dc;
    border-left: 4px solid #c3b5a5;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b433c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
}

.btn-cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-cta-main {
    color: #fff;
    background: #5d5247;
    box-shadow: 0 10px 22px rgba(93, 82, 71, 0.22);
}

.btn-cta-sub {
    color: #5d5247;
    background: #fff;
    border-color: #d8cec2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.support-card {
    border-color: #ebe4dc !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.support-list li {
    color: #5f5851;
}

.cs-sim {
    position: relative;
    isolation: isolate;
    padding: 84px 0;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(195, 181, 165, .14), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(162, 147, 131, .16), transparent 60%),
        linear-gradient(180deg, #f7f4f1 0%, #f1ece6 100%);
}

.cs-wrap {
    background: rgba(255, 255, 255, .78);
    border: 1px solid #e9e4de;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(2, 6, 23, .08);
    backdrop-filter: blur(8px);
}

.cs-title {
    font-weight: 700;
    line-height: 1.15;
    margin: 10px 0 6px;
    font-size: clamp(22px, 3.6vw, 32px);
    color: #5d5247;
}

.cs-sub {
    color: #0f172a;
    font-weight: 700;
}

#cost-sim .cs-math {
    background: #2f2925;
    color: #f3f2ef;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, .12);
    font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
}

#cost-sim .cs-math strong {
    color: #fff5eb;
}

#cost-sim input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #c3b5a5;
    border-radius: 3px;
    outline: none;
}

#cost-sim input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #a29383;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

#cost-sim input[type=range]::-moz-range-track {
    height: 6px;
    background: #c3b5a5;
    border-radius: 3px;
}

#cost-sim input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #a29383;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

#cost-sim .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

#cost-sim .input-card {
    background: #fff;
    border: 1px solid #ebe4dc;
    border-radius: 14px;
    padding: 14px;
}

#cost-sim .form-label {
    font-weight: 700;
    margin-bottom: 6px;
    color: #2f2925;
}

#cost-sim .form-min,
#cost-sim .hint {
    font-size: 12px;
    color: #7a746d;
}

#cost-sim .cs-result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

#cost-sim .pill {
    background: #fff;
    border: 1px solid #d9cec0;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}

#cost-sim .pill .lbl {
    font-size: 12px;
    color: #6f6a64;
}

#cost-sim .pill .val {
    font-weight: 900;
    font-size: 18px;
    color: #b85c38;
}

#cost-sim .gain {
    color: #22c55e;
}

#cost-sim .loss {
    color: #ef4444;
}

.sim-message-wrap {
    border-top: 1px dashed rgba(255, 255, 255, .18);
    padding-top: 12px;
}

.mockup,
.ipad-mockup {
    max-width: 300px;
    border-radius: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.timeline-step,
.store-dashboard-section,
.flow,
.card-body ol,
.card-body ul,
.terms-container,
.terms-heading,
.terms-section,
.terms-title,
.terms-text,
.terms-back {
    /* 既存ページ用クラスは極力触らない */
}

/* ── 運営者情報ページ ── */
.about-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 5% 80px;
    box-sizing: border-box;
}
.about-section {
    margin-bottom: 48px;
}
.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b2622;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c3b5a5;
}
.about-vision {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5d5247;
    margin-bottom: 12px;
}
.about-description {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #4a4540;
}
.about-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.info-item {
    display: flex;
    border-bottom: 1px solid #e9e4de;
    padding: 16px 0;
}
.info-item:first-child {
    border-top: 1px solid #e9e4de;
}
.info-label {
    flex: 0 0 140px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #5d5247;
}
.info-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #2b2622;
}
.info-content a {
    color: #5d5247;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .info-item {
        flex-direction: column;
        gap: 4px;
    }
    .info-label {
        flex: none;
    }
}

.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    #cost-sim .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    #cost-sim .cs-result {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding: 56px 18px 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-container h1,
    .hero-lead {
        text-align: left;
    }

    .hero-visual {
        max-width: 560px;
        margin: 0 auto;
    }

    .pain-grid,
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .compare-simple {
        grid-template-columns: 1fr;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .ba-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

@media (max-width: 768px) {
    :root {
        --sp-side-gap: 16px;
        --sp-card-pad-x: 18px;
    }

    .header-menu-container {
        top: 55px;
    }

    .header-menu-container .item {
        padding: 10px 4px;
        font-size: 12px;
    }

    .header-menu-container .item i {
        margin-left: 4px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-bg-img {
        object-position: center center;
    }

    .bg_overlay {
        background: rgba(20, 17, 14, 0.74);
    }

    .hero-container {
        padding: 28px var(--sp-side-gap) 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 12px;
        padding: 7px 12px;
        margin-bottom: 14px;
    }

    .hero-container h1 {
        font-size: 24px;
        line-height: 1.3;
        margin: 0 0 14px;
    }

    .hero-lead {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-points {
        gap: 8px;
        margin: 0 0 18px;
    }

    .hero-points li {
        padding-left: 24px;
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .hero-note {
        font-size: 12px;
        line-height: 1.6;
    }

    .hero-visual {
        display: none;
    }

    .btn-cta,
    .cta-button {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .btn-cta-sub {
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(255, 255, 255, 0.94);
    }

    /* セクション横余白を16px基準に統一 */
    .pain-section,
    .solution-section,
    .result-section,
    .case_study-section,
    .voice-section,
    .video-section,
    .features-section,
    .pricing-section,
    .faq-section,
    .intro-steps,
    .feature-list-section,
    .wc-section,
    .usecase-section,
    #cost-sim {
        padding-left: var(--sp-side-gap);
        padding-right: var(--sp-side-gap);
    }

    /* 上下余白も既存の見た目を維持しながら統一 */
    .pain-section,
    .solution-section,
    .result-section,
    .case_study-section,
    .voice-section,
    .video-section,
    .features-section,
    .pricing-section,
    .faq-section,
    .intro-steps,
    .feature-list-section,
    .usecase-section,
    .wc-section,
    #cost-sim {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    /* container入りセクションはスマホだけ container の横paddingを消す
       → 二重余白にならず、他セクションと横位置が揃う */
    .feature-list-section .container,
    #cost-sim .container,
    .py-5.bg-light .container {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    /* Bootstrap row の負マージンによるズレを解消 */
    .feature-list-section .row,
    #cost-sim .row,
    .py-5.bg-light .row {
        margin-left: 0;
        margin-right: 0;
    }

    .feature-list-section [class*="col-"],
    #cost-sim [class*="col-"],
    .py-5.bg-light [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .pain-grid,
    .solution-grid,
    .feature-grid,
    .compare-simple,
    .usecase-cards {
        grid-template-columns: 1fr;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .ba-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    /* カード類の横幅と内側余白を揃える */
    .case-card,
    .plan-card,
    .voice-card,
    .usecase-card,
    .faq-item,
    .compare-card,
    .lead-catch,
    .intro-steps .step,
    .support-card,
    .feature-list-section .p-4.border.rounded-3.bg-white.h-100,
    .cs-wrap {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    /* compare-card の本文に使える幅を稼ぐため、mobile では padding を詰める。
       「絞っている」「できる」のような語尾だけが孤立改行されるのを軽減する。 */
    .compare-card {
        padding: 22px 16px;
    }
    .compare-card ul {
        padding-left: 1.2em;
    }

    .case-card {
        flex-direction: column;
        gap: 22px;
        padding: 22px var(--sp-card-pad-x);
    }

    /* flex item の default min-width:auto + flex-basis 460px が
       mobile viewport を突き抜けて横スクロールを発生させていた。 */
    .case-card > *,
    .case-image,
    .case-content {
        min-width: 0;
        flex-basis: auto;
        width: 100%;
    }

    .case-title {
        font-size: 24px;
    }

    .voice-card {
        width: 100%;
        padding: 24px var(--sp-card-pad-x);
    }

    .plan-card {
        padding: 30px var(--sp-card-pad-x);
    }

    .faq-item {
        padding: 18px var(--sp-card-pad-x);
    }

    .compare-card,
    .lead-catch,
    .intro-steps .step,
    .support-card,
    .feature-list-section .p-4.border.rounded-3.bg-white.h-100 {
        padding-left: var(--sp-card-pad-x) !important;
        padding-right: var(--sp-card-pad-x) !important;
    }

    /* cost-sim は狭くなりすぎないよう他より少しだけ内側余白を控えめに */
    .cs-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .pricing-section .price span {
        font-size: 28px;
    }

    .cta-section {
        margin: 40px var(--sp-side-gap);
        padding: 56px 18px;
    }

    .cta-title {
        font-size: 28px;
    }

    .trust-items {
        /* バッジが 6 個になり flex wrap だと最終行が中央寄りで不揃いになるため、
           モバイルでは grid 3x2 で揃える。*/
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-left: var(--sp-side-gap);
        padding-right: var(--sp-side-gap);
    }

    .trust-item {
        padding: 8px 6px;
        font-size: 11px;
        text-align: center;
        line-height: 1.35;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-sub {
        font-size: 15px;
    }

    .video-container,
    .plan-cards,
    .voice-cards,
    .step-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 24px 14px 24px;
    }

    .hero-container h1 {
        font-size: 22px;
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero-points li {
        font-size: 13px;
    }

    .section-title {
        /* mobile では viewport 390px ≒ 1 行 17 字に収まるサイズ。
           長い見出しは template 側で <br class="d-md-none"> で
           意図的に改行を入れる。 */
        font-size: 22px;
        letter-spacing: -0.01em;
    }

    .cta-title {
        font-size: 22px;
    }

    .plan-card h3 {
        font-size: 24px;
    }

    .pricing-section .price span {
        font-size: 24px;
    }
}

/* ===== 説明セクション（テイクアウト受付システムとは？ 他） ===== */

.explain-section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.explain-section-alt {
    background: var(--wc-bg);
    max-width: 100%;
    padding: 80px 40px;
}

.explain-section-alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.explain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.explain-card {
    background: var(--wc-card);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 28px 24px;
    text-align: center;
}

.explain-icon {
    font-size: 28px;
    color: var(--wc-primary-dark);
    margin-bottom: 16px;
}

.explain-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--wc-text);
}

.explain-card p {
    font-size: 14px;
    color: var(--wc-muted);
    line-height: 1.7;
    margin: 0;
}

/* 比較テーブル */

.diff-table-wrap {
    overflow-x: auto;
    margin-top: 36px;
}

.diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--wc-card);
    border-radius: var(--wc-radius);
    overflow: hidden;
}

.diff-table th,
.diff-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--wc-border);
    text-align: center;
}

.diff-table th:first-child,
.diff-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--wc-text);
    background: var(--wc-bg-soft);
}

.diff-table thead th {
    background: var(--wc-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.diff-table thead th:first-child {
    background: var(--wc-accent);
    color: #fff;
}

.diff-wc {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

.diff-ok {
    color: var(--wc-success);
    font-size: 16px;
}

.explain-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--wc-muted);
    text-align: center;
}

/* 選ぶポイント */

.choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.choose-card {
    background: var(--wc-card);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 28px 24px;
    position: relative;
}

.choose-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--wc-border);
    line-height: 1;
    margin-bottom: 8px;
}

.choose-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--wc-text);
}

.choose-card p {
    font-size: 14px;
    color: var(--wc-muted);
    line-height: 1.7;
    margin: 0;
}

.choose-note {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--wc-muted);
}

.choose-link {
    color: var(--wc-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ───────────────────────────────────────────
   店舗タイプ別の活用イメージ
─────────────────────────────────────────── */
.usecase-section {
    background: #f8f4ef;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.usecase-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd4c8;
    border-radius: 8px;
    font-size: 13px;
    color: #6f6a64;
    line-height: 1.6;
}

.usecase-notice i {
    color: #a29383;
    flex-shrink: 0;
}

.usecase-cards {
    display: grid;
    /* ★ mobile-first: default は 1 カラム。L1407 の mobile media query
       より後ろに 2 カラム指定があると同 specificity で常勝してしまい
       mobile で 2 カラムが残る事故が起きていた。
       desktop 2 カラムは @media (min-width:769px) で別途指定。 */
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 769px) {
    .usecase-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.usecase-card {
    background: #fff;
    border: 1px solid #ebe4dc;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 10px 24px rgba(33, 26, 21, 0.05);
}

.usecase-label {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f0ed;
    color: #3f7d5a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    border: 1px solid #c6ddd5;
}

.usecase-title {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 20px;
    color: #2f2925;
    font-weight: 700;
    border-bottom: 1px solid #ebe4dc;
    padding-bottom: 16px;
}

.usecase-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usecase-block {
    background: #faf7f4;
    border-radius: 12px;
    padding: 16px 18px;
}

.usecase-block-title {
    font-size: 14px;
    font-weight: 700;
    color: #5d5247;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.usecase-block-title i {
    font-size: 13px;
    color: #a29383;
}

.usecase-block ul {
    margin: 0;
    padding-left: 18px;
}

.usecase-block li {
    margin-bottom: 6px;
    color: #5f5851;
    line-height: 1.75;
    font-size: 14px;
}

.usecase-block li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .explain-section,
    .explain-section-alt {
        padding: 56px 20px;
    }

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

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

    .diff-table th,
    .diff-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
