:root {
    --tone-background: #ffffff;
    --tone-foreground: #0f172a;
}

/* --- FONT設定の改善：日本語フォントを追加し、可読性を向上 --- */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--tone-background);
    color: var(--tone-foreground);
    /* [提案②] ベースフォントサイズをremに統一し、アクセシビリティを向上 */
    font-size: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}
@media (min-width: 640px) { /* bodyのスタイルはsm以上で変更なし */ }

.text-accent-blue {
    color: var(--tone-foreground);
}
.form-check-green {
    color: #16a34a; /* vivid emerald */
    font-weight: 600;
}
.form-check-green svg {
    color: inherit;
    stroke: currentColor;
}
.form-alert-red {
    color: #dc2626;
    font-weight: 600;
}
.form-alert-red .alert-icon {
    color: #dc2626;
}

.lp-card {
    position: relative;
    border-radius: 1.75rem;
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 2px solid transparent;
    box-shadow: 0 22px 48px -28px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 640px) {
    .lp-card { padding: 2rem 1.75rem; }
}
.lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 64px -32px rgba(37, 99, 235, 0.35);
}
.lp-card--bad {
    border-color: rgba(248, 113, 113, 0.6);
    background: linear-gradient(155deg, #fff5f5 0%, #ffe4e6 55%, #ffffff 100%);
}
.lp-card--bad::before {
    content: "";
    position: absolute;
    inset: -30% 50% auto -20%;
    height: 65%;
    background: radial-gradient(circle at top, rgba(248, 113, 113, 0.35), transparent 60%);
    pointer-events: none;
}
.lp-card--good {
    border-color: rgba(96, 165, 250, 0.55);
    background: linear-gradient(155deg, #ecfeff 0%, #eef2ff 55%, #ffffff 100%);
}
.lp-card--good::before {
    content: "";
    position: absolute;
    inset: -25% 60% auto -15%;
    height: 70%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.28), transparent 65%);
    pointer-events: none;
}
.lp-card__label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
@media (min-width: 640px) {
    .lp-chip { font-size: 0.75rem; }
}
.lp-chip--bad {
    color: #b91c1c;
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.4);
}
.lp-chip--good {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.lp-chip--muted {
    color: #334155;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.32);
}
.lp-card__headline {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}
@media (min-width: 640px) {
    .lp-card__headline { font-size: 1.35rem; }
}
.lp-card--bad .lp-card__headline { color: #b91c1c; }
.lp-card--good .lp-card__headline { color: #0f172a; }
.lp-card__subtext {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 600;
}
@media (min-width: 640px) {
    .lp-card__subtext { font-size: 0.78rem; }
}
.lp-card__panel {
    position: relative;
    z-index: 1;
    border-radius: 1.25rem;
    padding: 1.1rem 1rem;
    background: #f8fafc;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lp-card--bad .lp-card__panel {
    background: rgba(254, 226, 226, 0.75);
    border-color: rgba(248, 113, 113, 0.45);
}
.lp-card--good .lp-card__panel {
    background: rgba(219, 234, 254, 0.6);
    border-color: rgba(96, 165, 250, 0.45);
}
.lp-card__subhead {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
@media (min-width: 640px) {
    .lp-card__subhead { font-size: 1.1rem; }
}
.lp-card--bad .lp-card__subhead { color: #b91c1c; }
.lp-card--good .lp-card__subhead { color: #1d4ed8; }
.lp-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}
.lp-card__cta--ghost {
    background: #f8fafc;
    color: #64748b;
    border: 1.5px dashed rgba(100, 116, 139, 0.45);
    cursor: not-allowed;
}
.lp-card__cta--primary {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 55%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px -18px rgba(37, 99, 235, 0.7);
}
.lp-card__cta--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -20px rgba(20, 184, 166, 0.65);
}
.lp-card__cta--primary:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}
.lp-card__cta--ghost:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.35);
    outline-offset: 3px;
}
.lp-card__nudge {
    font-size: 0.8rem;
    color: #1f2937;
    font-weight: 600;
}
.lp-checklist {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.6;
}
@media (min-width: 640px) {
    .lp-checklist { font-size: 0.88rem; }
}
.lp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}
.lp-bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 800;
}
.lp-checklist--bad {
    color: #991b1b;
}
.lp-checklist--bad .lp-bullet-icon {
    background: rgba(248, 113, 113, 0.18);
    color: #dc2626;
    border: 1px solid rgba(248, 113, 113, 0.35);
}
.lp-checklist--good {
    color: #0f172a;
}
.lp-checklist--good .lp-bullet-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.2));
    color: #047857;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.lp-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.lp-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(187, 247, 208, 0.6);
    color: #047857;
    border: 1px solid rgba(74, 222, 128, 0.45);
}
.lp-tag__icon {
    font-size: 1rem;
    line-height: 1;
}
.lp-card__note {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 600;
}

/* --- Swiper.jsのスタイル調整 --- */
.philosophy-swiper {
    overflow: hidden; /* PCでの矢印のはみ出しを許容 */
    padding: 0 10px;
}
@media (min-width: 768px) {
    .philosophy-swiper {
        overflow: visible;
        padding: 0;
    }
}
.swiper-pagination-bullet {
    background-color: #cbd5e1;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background-color: #2563eb;
}
.swiper-button-next,
.swiper-button-prev {
    color: #2563eb;
    transform: scale(0.8);
}

.pain-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 40px -32px rgba(15, 23, 42, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -30px rgba(14, 116, 144, 0.4);
}
.pain-card__icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(37, 99, 235, 0.12));
    color: #0f766e;
    border: 1px solid rgba(45, 212, 191, 0.45);
}
.pain-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.pain-card__desc {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.55;
    color: #475569;
}
.text-alert-red { color: #b45309; }

/* [追加] Pain Pointアコーディオンのスタイル */
/* [改良] ユーザーのペインポイント・アコーディオン */
.pain-accordion-item {
    background-color: white;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.pain-accordion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.pain-accordion-item[open] {
    /* open時のスタイルはホバーと競合しないように調整 */
}
.pain-accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.875rem; /* text-sm */
    color: #1f2937;
    cursor: pointer;
    list-style: none; /* Safariの矢印を消す */
}
.pain-accordion-summary::-webkit-details-marker {
    list-style: none;
}
@media (min-width: 640px) {
    .pain-accordion-summary {
        font-size: 1.125rem; /* sm:text-lg */
    }
}
.pain-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    margin-right: 0.75rem;
    background-color: #eff6ff;
    border-radius: 9999px;
}
@media (min-width: 640px) {
    .pain-accordion-icon {
        width: 2.5rem; /* sm:w-10 */
        height: 2.5rem; /* sm:h-10 */
    }
}
.pain-accordion-arrow {
    transition: transform 0.3s ease;
}
.group[open] .pain-accordion-arrow {
    transform: rotate(180deg);
}
.pain-accordion-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563; /* text-gray-600 */
    font-size: 0.875rem;
    line-height: 1.6;
}
.text-bordeaux { color: #7d1935; }
.gold-gradient {
    background: linear-gradient(120deg, #b45309 0%, #d97706 45%, #facc15 75%, #fef08a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bg-accent-blue { background-color: var(--tone-background); }
.border-accent-blue { border-color: var(--tone-foreground); }
/* モバイルでのセクションパディングを調整 */
.section-padding { padding: 2.5rem 1rem; } /* モバイル */
.section-padding-sm { padding: 2rem 1rem; } /* モバイル（少し狭め） */
@media (min-width: 768px) {
     .section-padding { padding: 5rem 1.5rem; } /* md以上 */
     .section-padding-sm { padding: 4rem 1.5rem; } /* md以上 */
}

/* --- ヒーローセクションの背景デザイン --- */
.hero-section {
    position: relative;
    background-color: var(--tone-background);
}
.hero-section::before {
    content: none;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

 .chart-container {
     position: relative;
     width: 100%;
     max-width: 600px; /* 最大幅を追加 */
     margin-left: auto;
     margin-right: auto;
     height: 300px; /* 基本の高さを設定 */
     max-height: 400px; /* 最大の高さを設定 */
}
 @media (min-width: 768px) {
     .chart-container { height: 350px; } /* md以上で高さを調整 */
}

/* レインボーテキストに戻す */
@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.rainbow-text {
    background: linear-gradient(270deg, #f97316, #ef4444, #6366f1, #14b8a6, #f97316);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 12s ease infinite;
}
.card-shadow { box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08); }

.cta-button, .cta-button-sub {
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}
.cta-button:hover,
.cta-button-sub:hover {
    transform: translateY(-3px);
}
.cta-button {
    position: relative;
    background: linear-gradient(120deg, #f97316 0%, #ef4444 25%, #6366f1 50%, #22d3ee 75%, #f97316 100%);
    background-size: 280% 280%;
    animation: rainbow-shift 7s ease infinite;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 15px 34px rgba(99, 102, 241, 0.32);
    padding: 0.9rem 1.7rem;
    overflow: hidden;
}
.cta-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0, rgba(255,255,255,0.45), transparent 62%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.cta-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.38);
}
.cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.35), 0 20px 40px rgba(99, 102, 241, 0.42);
}
.cta-button-sub {
    position: relative;
    background-color: transparent;
    color: #6366f1;
    border: none;
    padding: 0.85rem 1.7rem;
    overflow: hidden;
}
.cta-button-sub::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(120deg, #f97316 0%, #ef4444 25%, #6366f1 50%, #22d3ee 75%, #f97316 100%);
    background-size: 260% 260%;
    animation: rainbow-shift 8.5s ease infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.cta-button-sub::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.02);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cta-button-sub:hover {
    color: #ffffff;
}
.cta-button-sub:hover::after {
    opacity: 1;
    background: linear-gradient(120deg, rgba(249,115,22,0.18), rgba(99,102,241,0.18));
}
.cta-button-sub:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}
.cta-button span,
.cta-button-sub span {
    color: inherit !important;
}

/* [追加] 統一ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 9999px;
    font-weight: 700; /* font-bold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    font-size: 0.875rem; /* text-sm */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-out;
}
.cta-button:hover,
.cta-button-sub:hover {
    transform: translateY(-2px);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@media (min-width: 640px) {
    .btn {
        padding: 0.875rem 1.75rem; /* py-3.5 px-7 */
        font-size: 1rem; /* text-base */
    }
}

.btn-primary {
    background: linear-gradient(120deg, #f97316 0%, #ef4444 25%, #6366f1 50%, #22d3ee 75%, #f97316 100%);
    background-size: 280% 280%;
    animation: rainbow-shift 7s ease infinite;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -4px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, filter 0.3s ease;
}
.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.25), 0 8px 10px -6px rgba(99, 102, 241, 0.25);
}

.btn-secondary-orange {
    background-color: #f97316; /* bg-orange-500 */
    color: #ffffff;
}
.btn-secondary-orange:hover { background-color: #ea580c; }

.btn-secondary-green {
    background-color: #22c55e; /* bg-green-500 */
    color: #ffffff;
}
.btn-secondary-green:hover { background-color: #16a34a; }

.btn-outline-green {
    background-color: transparent;
    color: #22c55e; /* bg-green-500 */
    border: 2px solid #22c55e;
}
.btn-outline-orange {
    background-color: transparent;
    color: #f97316; /* bg-orange-500 */
    border: 2px solid #f97316;
}
.btn-ghost {
    position: relative;
    background-color: #ffffff;
    color: #4f46e5; /* text-indigo-600 */
    padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
}
.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px; /* border thickness */
    background: linear-gradient(120deg, #f97316 0%, #ef4444 25%, #6366f1 50%, #22d3ee 75%, #f97316 100%);
    background-size: 260% 260%;
    animation: rainbow-shift 8.5s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .cta-button,
    .cta-button-sub::before {
        animation: none !important;
    }
}
.hero-logo {
    width: min(45vw, 160px);
    max-width: 100%;
    height: auto;
}
.cta-underline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.cta-main-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}
@media (min-width: 640px) {
    .cta-main-label {
        flex-direction: row;
        font-size: 1.08rem;
        text-align: center;
    }
    .cta-main-text { white-space: nowrap; }
}

.counter-check-icon {
    width: 1.75rem;
    height: 1.75rem;
}
@media (min-width: 640px) {
    .counter-check-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* [追加] ヘッダーのスクロールアニメーション */
header {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .arrow-down { transform: rotate(180deg); }

/* 各見出しのclampを調整し、モバイルでの最小サイズを設定 */
/* [改善] 見出しの改行を制御 */
.hero-h2 { font-size: clamp(1.75rem, 7vw, 3.75rem); line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; } /* min 28px */
.section-h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); word-break: keep-all; overflow-wrap: anywhere; } /* min 24px */
.empathy-h2 { font-size: clamp(1.625rem, 7vw, 2.5rem); word-break: keep-all; overflow-wrap: anywhere; } /* min 26px */

/* [追加] サブセクションの見出しスタイル */
.section-h3-sub {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

.line-placeholder {
    height: 8px;
    background-color: var(--tone-foreground);
    margin-bottom: 6px;
    border-radius: 5px;
    opacity: 0.2;
}
.line-placeholder:nth-child(even) { width: 85%; }
.line-placeholder:nth-child(odd) { width: 95%; }

/* [提案③] トグルスイッチのタップ領域を拡大 */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 52px; /* 拡大 */
    height: 30px; /* 拡大 */
}
.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* iPhone風トグルスイッチのデザイン */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tone-background);
    border: 2px solid var(--tone-foreground);
    background-color: #E9E9EA !important; /* オフ時の背景色 */
    border: none !important;
    transition: .4s;
    border-radius: 34px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px; /* 拡大 */
    width: 26px; /* 拡大 */
    left: 2px;
    bottom: 2px;
    background-color: white !important;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .toggle-slider {
    background-color: rgb(34, 197, 94) !important; /* オン時の背景色 */
}
input:checked + .toggle-slider:before {
    transform: translateX(22px); /* 移動距離を調整 */
    background-color: white !important;
}

/* テーブルのレスポンシブ対応 */
@media (max-width: 768px) { /* md breakpointに変更 */
    #project-results .responsive-table-container thead {
        display: none; /* Hide table headers on mobile */
    }
    #project-results .responsive-table-container tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(15, 23, 42, 0.2); /* border */
        border-radius: 0.75rem; /* rounded-xl */
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12), 0 2px 4px -2px rgba(15, 23, 42, 0.08); /* shadow */
    }
    #project-results .responsive-table-container td {
        display: block;
        padding: 0.875rem 1rem; /* パディング調整 */
        padding-left: 50%; /* ラベル用のスペース確保 */
        text-align: right; /* Align content to the right */
        border-bottom: 1px solid rgba(15, 23, 42, 0.08); /* borderを少し薄く */
        position: relative;
        min-height: 2.5rem; /* 最低限の高さを確保 */
        line-height: 1.5; /* 行の高さを調整 */
    }
    #project-results .responsive-table-container td:last-child {
        border-bottom: 0;
    }
    #project-results .responsive-table-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%; /* ラベルの幅を調整 */
        padding-right: 0.5rem; /* 右側に少し余白 */
        font-weight: 600; /* font-semibold */
        color: rgba(15, 23, 42, 0.6); /* toneを少し薄く */
        text-align: left;
        white-space: nowrap; /* ラベルの折り返しを防ぐ */
    }
}

/* Two-tone palette overrides */
.two-tone {
    background-color: var(--tone-background);
    color: var(--tone-foreground);
}
.two-tone a {
    color: var(--tone-foreground);
    text-decoration-color: var(--tone-foreground);
}
.two-tone a:hover {
    text-decoration: underline;
}
/* [修正] two-toneの背景色上書きを緩和。意図的に設定した色は保持されるようにする */
.two-tone header,
.two-tone footer,
.two-tone main {
    background-color: var(--tone-background) !important;
}
.two-tone [class*="bg-"]:hover {
    background-color: var(--tone-background) !important;
}
.two-tone header {
    border-bottom: 1px solid var(--tone-foreground);
}
.two-tone [class*="border-"],
.two-tone hr {
    border-color: rgba(15, 23, 42, 0.2) !important;
}
/* [修正] two-toneモードで色が消えないように、新しいセクションのクラスを除外 */
.two-tone [class*="text-"]:not(.new-card-link):not([class*="text-red"]):not([class*="text-blue"]):not([class*="text-yellow"]),
.two-tone p:not(.new-project-item-body),
.two-tone span:not(.new-card-link span),
.two-tone li,
.two-tone dt:not(.new-project-item-head),
.two-tone dd:not(.new-project-item-body),
.two-tone th,
.two-tone td {
    color: var(--tone-foreground) !important;
}
.two-tone [class*="text-"]:hover {
    color: var(--tone-foreground) !important;
}
.two-tone .cta-button-sub {
    color: #6366f1 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.two-tone .cta-button-sub:hover {
    color: #ffffff !important;
}
.two-tone .bg-orange-500 {
    background-color: #f97316 !important;
    color: #ffffff !important;
}
.two-tone .bg-orange-500:hover {
    background-color: #ea580c !important;
}
.two-tone .bg-blue-600 {
    background-color: #2563eb !important;
    color: #ffffff !important;
}
.two-tone .bg-blue-600:hover {
    background-color: #1d4ed8 !important;
}
.two-tone .bg-green-500 {
    background-color: #22c55e !important;
    color: #ffffff !important;
}
.two-tone .bg-green-500:hover {
    background-color: #16a34a !important;
}
.two-tone .rainbow-border-animated {
    position: relative !important;
    background-clip: padding-box !important;
    border: solid 2px transparent !important;
    border-radius: 0.75rem !important;
}
.two-tone .rainbow-border-animated::before {
    content: '' !important;
    position: absolute !important;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1 !important;
    margin: -2px !important;
    border-radius: inherit !important;
    background: linear-gradient(120deg, #f97316 0%, #ef4444 25%, #6366f1 50%, #22d3ee 75%, #f97316 100%) !important;
    background-size: 280% 280% !important;
    animation: rainbow-shift 7s ease infinite !important;
}
.two-tone .bg-orange-500 span,
.two-tone .bg-green-500 span {
    color: #ffffff !important;
}


.two-tone .bg-accent-blue {
    background-color: var(--tone-background) !important;
    color: var(--tone-foreground) !important;
    border: 2px solid var(--tone-foreground);
}
.two-tone .lp-card--bad {
    border-style: dashed !important;
    border-width: 2px !important;
}
.two-tone .card-shadow,
.two-tone .shadow,
.two-tone .shadow-sm,
.two-tone .shadow-md,
.two-tone .shadow-lg,
.two-tone .shadow-xl,
.two-tone .shadow-2xl,
.two-tone .shadow-inner {
    box-shadow: none !important;
}
.two-tone .bg-gray-900,
.two-tone .bg-gray-800,
.two-tone .bg-slate-900,
.two-tone .bg-slate-800,
.two-tone .bg-blue-100\/80,
.two-tone .bg-red-100\/80,
.two-tone .bg-purple-100\/80 {
    background-color: var(--tone-background) !important;
}
.two-tone .counter-check-icon {
    color: rgb(34, 197, 94) !important;
    stroke: rgb(34, 197, 94) !important;
}
.two-tone ::placeholder {
    color: rgba(15, 23, 42, 0.4);
}
.limited-offer {
    color: var(--tone-foreground);
}
.progress-track {
    background-color: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.2);
}
.progress-fill {
    background-color: rgb(34, 197, 94) !important;
    color: var(--tone-background);
}

/* [追加] スクロール表示アニメーション */
@keyframes scroll-reveal-animation {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.scroll-reveal.is-visible {
    animation: scroll-reveal-animation 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
    box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.proof-card::after {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #312e81, #1d4ed8);
    opacity: 0.55;
}
.proof-grid > div:nth-child(1) .proof-card::after { background: linear-gradient(90deg, #fb7185, #f97316); }
.proof-grid > div:nth-child(2) .proof-card::after { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.proof-grid > div:nth-child(3) .proof-card::after { background: linear-gradient(90deg, #a855f7, #ec4899); }
.proof-grid > div:nth-child(4) .proof-card::after { background: linear-gradient(90deg, #34d399, #0ea5e9); }
.proof-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 38px -22px rgba(15, 23, 42, 0.35);
}
.proof-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
}
.proof-badge {
    position: absolute;
    top: 1.15rem;
    right: 1.25rem;
    background-color: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.proof-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}
.icon-bubble {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-bubble svg { width: 1.55rem; height: 1.55rem; }
.icon-bubble--red { background-color: rgba(244, 63, 94, 0.12); }
.icon-bubble--blue { background-color: rgba(59, 130, 246, 0.12); }
.icon-bubble--violet { background-color: rgba(139, 92, 246, 0.12); }
.icon-bubble--teal { background-color: rgba(20, 184, 166, 0.12); }
.proof-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}
.proof-title {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}
.proof-title span {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
}
.proof-result {
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1.65;
}
.proof-metrics {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    background-color: rgba(15, 23, 42, 0.04);
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    text-align: center;
}
.proof-metrics::before {
    content: "";
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 50%;
    width: 1px;
    background: rgba(148, 163, 184, 0.35);
    transform: translateX(-50%);
}
@media (max-width: 639px) {
    .proof-metrics {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .proof-metrics::before { display: none; }
}
.proof-metric-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.proof-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0.35rem;
}
.proof-metric-value.accent { color: #2563eb; }
.proof-note {
    margin-top: auto;
    font-size: 0.92rem;
    color: #475569;
    background: rgba(226, 232, 240, 0.4);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    line-height: 1.75;
}

/* [追加] 実績セクションのタブスタイル */
.tab-link {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 640px) {
    .tab-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
.tab-link.active {
    color: #2563eb;
    border-color: #2563eb;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* [新デザイン案2] 結果を出したプロジェクトカード */
:root {
    --red-light: #fee2e2; --red-dark: #dc2626;
    --pink-light: #fce7f3; --pink-dark: #db2777;
    --orange-light: #ffedd5; --orange-dark: #f97316;
    --teal-light: #d1fae5; --teal-dark: #10b981;
}
.result-card-v2 {
    --card-color-light: var(--red-light);
    --card-color-dark: var(--red-dark);
    background: linear-gradient(160deg, #ffffff 30%, var(--card-color-light) 120%);
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.result-card-v2:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);
}
.result-card-v2[data-color="pink"] { --card-color-light: var(--pink-light); --card-color-dark: var(--pink-dark); }
.result-card-v2[data-color="orange"] { --card-color-light: var(--orange-light); --card-color-dark: var(--orange-dark); }
.result-card-v2[data-color="teal"] { --card-color-light: var(--teal-light); --card-color-dark: var(--teal-dark); }

.result-card-v2-summary {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
}
.result-card-v2-summary::-webkit-details-marker { display: none; }

.result-card-v2-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    background-color: var(--card-color-light);
    color: var(--card-color-dark);
    margin-bottom: 1rem;
    padding: 0.8rem; /* アイコンのサイズ感を調整 */
}
.result-card-v2-icon svg {
    width: 100%; height: 100%;
}
.result-card-v2-title { font-size: 1.125rem; font-weight: 800; color: #1f2937; }
.result-card-v2-before-after { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.result-card-v2-before-after .before { font-size: 0.875rem; color: #6b7280; font-weight: 500; }
.result-card-v2-before-after .arrow { font-size: 1.25rem; color: #9ca3af; }
.result-card-v2-before-after .after { font-size: 1rem; font-weight: 700; color: var(--card-color-dark); }

.result-card-v2-highlight {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #d1d5db;
}
.result-card-v2-highlight .highlight-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.result-card-v2-highlight .highlight-value {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 900;
    color: var(--card-color-dark);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.result-card-v2-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease;
}
.group:hover .result-card-v2-toggle { background-color: #fff; border-color: var(--card-color-dark); color: var(--card-color-dark); }
.group[open] .result-card-v2-toggle { display: none; }
.result-card-v2-toggle .arrow-down { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.group[open] .result-card-v2-toggle .arrow-down { transform: rotate(180deg); }

.result-card-v2-content { padding: 0 1.5rem 1.5rem; }
.result-dl { background-color: #f9fafb; border: 1px solid #f3f4f6; border-radius: 0.75rem; overflow: hidden; }
.result-dl-item { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: 0.5rem 1rem; border-bottom: 1px solid #f3f4f6; }
.result-dl-item:last-child { border-bottom: none; }
.result-dl-item dt { font-size: 0.875rem; font-weight: 500; color: #6b7280; }
.result-dl-item dd { font-size: 0.875rem; font-weight: 600; color: #374151; }

/* [改善] シミュレーター入力欄のスタイル */
.sim-input-group {
    background-color: #f9fafb; /* bg-gray-50 */
    padding: 0.75rem 1rem; /* p-3 sm:p-4 */
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
    .sim-input-group {
        padding: 1rem;
    }
}

.sim-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 0.5rem; /* mb-2 */
}

.sim-input {
    width: 100%;
    background-color: #ffffff;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sim-input:focus {
    outline: none;
    border-color: #3b82f6; /* focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); /* focus:ring-2 focus:ring-blue-300 */
}

.sim-unit {
    position: absolute;
    right: 1rem; /* right-4 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #6b7280; /* text-gray-500 */
    pointer-events: none;
}

.sim-select-arrow {
    position: absolute;
    right: 0.75rem; /* right-3 */
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: #6b7280; /* text-gray-500 */
    pointer-events: none;
}

/* 数値入力の矢印を非表示に */
.sim-input[type=number]::-webkit-inner-spin-button, 
.sim-input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.sim-input[type=number] {
  -moz-appearance: textfield;
}

/* [改善] シミュレーター結果のアニメーション */
@keyframes result-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes result-item-pop-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.simulation-result-animate {
    animation: result-fade-in-up 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.simulation-result-animate > * {
    animation: result-item-pop-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* [追加] 顧客導線カードのスタイル */
.journey-card {
    position: relative;
    overflow: hidden;
}
.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e5e7eb;
}
.journey-card:nth-child(1)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.journey-card:nth-child(2):before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.journey-card:nth-child(3):before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.journey-card-icon { background-color: #f3f4f6; }
.empathy-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.18), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.16), transparent 45%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}
.empathy-section::before {
    content: "";
    position: absolute;
    inset: 10% 10% auto;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(148, 163, 184, 0));
    filter: blur(80px);
    opacity: 0.9;
    pointer-events: none;
}
.empathy-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 65%, #eef2ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 28px 60px -32px rgba(15, 23, 42, 0.55), 0 12px 25px -20px rgba(59, 130, 246, 0.3);
    isolation: isolate;
}
.empathy-card::before {
    content: "";
    position: absolute;
    inset: 15% 12%;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.2), rgba(255, 255, 255, 0));
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}
.empathy-card > * {
    position: relative;
    z-index: 1;
}
.empathy-card__lead {
    color: #1d4ed8;
}
.empathy-card__quote {
    color: #0f172a;
    text-shadow: 0 15px 35px rgba(59, 130, 246, 0.18);
}
.empathy-card__note {
    color: #1e293b;
}

@keyframes flicker {
    0%, 100% {
        text-shadow: 0 0 12px rgba(59, 130, 246, 0.35), 0 0 32px rgba(59, 130, 246, 0.25);
        transform: translateY(0);
    }
    50% {
        text-shadow: 0 0 18px rgba(37, 99, 235, 0.45), 0 0 36px rgba(14, 165, 233, 0.35);
        transform: translateY(-1px);
    }
}

.flicker-text {
    animation: flicker 3.5s ease-in-out infinite;
    color: #0f172a;
}

/* [刷新] ご相談〜施策開始ステップ */
.flow-steps-wrapper {
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 640px) {
    .flow-steps-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .flow-steps-wrapper {
        gap: 1.5rem;
    }
}
.flow-step-card {
    position: relative;
    padding: 1.4rem 1.3rem 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.flow-step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(59, 130, 246, 0.08);
    pointer-events: none;
}
.flow-step-card:nth-child(1) .flow-step-number { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.flow-step-card:nth-child(2) .flow-step-number { background: linear-gradient(135deg, #f472b6, #ec4899); }
.flow-step-card:nth-child(3) .flow-step-number { background: linear-gradient(135deg, #34d399, #10b981); }
.flow-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.flow-step-number {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}
.flow-step-label {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}
.flow-step-sub {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.conversion-copy {
    text-align: center;
    font-weight: 800;
    color: #0f172a;
    margin: 1.75rem auto 1.5rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
    font-size: 1rem;
}
.conversion-copy span {
    display: inline-block;
}
.conversion-copy-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #475569;
}
@media (min-width: 640px) {
    .conversion-copy {
        font-size: 1.2rem;
    }
    .conversion-copy-note {
        font-size: 1rem;
    }
}

/* --- EFOフォームスタイル --- */
.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 0.5rem; /* 上下のパディングを縮小 */
    font-size: 0.95rem; /* 少しフォントサイズを調整 */
    font-weight: 500;
    border: 2px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.75rem; /* rounded-xl */
    background-color: #f9fafb; /* bg-gray-50 */
    color: #111827; /* text-gray-900 */
    transition: border-color 0.2s ease;
}

/* [追加] プレースホルダーのスタイル */
.form-input::placeholder {
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.2s ease;
}
.form-input:focus::placeholder {
    color: transparent; /* フォーカス時にプレースホルダーを透明にする */
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6; /* focus:border-blue-500 */
}

.form-label {
    position: absolute;
    top: 0.75rem; /* ラベルの初期位置を調整 */
    left: 1rem;
    font-size: 1rem;
    color: #6b7280; /* text-gray-500 */
    pointer-events: none;
    transition: all 0.2s ease;
}

/* 入力時またはフォーカス時にラベルを上に移動 */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0.35rem; /* 上に移動した時の位置を調整 */
    left: 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b82f6; /* focus:text-blue-500 */
    padding: 0 0.25rem;
    background-color: #f9fafb;
}

.form-required-badge {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444; /* text-red-500 */
    background-color: #fee2e2; /* bg-red-100 */
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.form-error-message {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444; /* text-red-500 */
}

/* エラー時のスタイル */
.form-group.has-error .form-input {
    border-color: #ef4444;
}
.form-group.has-error .form-error-message {
    display: block;
}

/* --- [追加] サンクスページのチェックマークアニメーション --- */
.checkmark-wrapper {
    width: 80px; /* sm:w-20 */
    height: 80px; /* sm:h-20 */
}

@media (max-width: 639px) {
    .checkmark-wrapper {
        width: 64px; /* w-16 */
        height: 64px; /* h-16 */
    }
}

.checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 3; /* 線の太さ */
    stroke: #22c55e; /* チェックマークの色 */
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: scale .3s ease-in-out .9s both; /* 背景を塗りつぶすfillアニメーションを削除 */
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #fff; /* 円の色を白に */
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #22c55e;
    }
}

/* [修正] two-toneモードでもチェックマークアニメーションが正しく表示されるようにする */
.two-tone .checkmark,
.two-tone .checkmark__circle,
.two-tone .checkmark__check {
    stroke: #22c55e !important; /* text-green-500 */
}
}
@media (min-width: 768px) {
    .conversion-copy {
        font-size: 1.35rem;
        max-width: 28rem;
    }
}

/* ▼▼▼ 新規作成セクションのスタイル ▼▼▼ */
.new-chip {
    background-color: #f3f4f6; /* bg-gray-100 */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    padding: 1rem 0.5rem;
    border-radius: 0.75rem; /* rounded-xl */
    font-weight: 600; /* font-semibold */
    color: #4b5563; /* text-gray-600 */
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}
@media (min-width: 640px) {
    .new-chip {
        font-size: 1rem;
    }
}
.new-chip:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.new-voice-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem; /* rounded-2xl */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.07);
}
@media (min-width: 640px) {
    .new-voice-card {
        padding: 2rem;
    }
}

.new-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: #eff6ff; /* bg-blue-50 */
    transition: all 0.2s ease-in-out;
}
.new-card-link:hover {
    background-color: #dbeafe; /* bg-blue-100 */
    color: #1d4ed8; /* text-blue-700 */
}

.new-project-grid {
    display: grid;
    grid-template-columns: auto 1fr;
}
.new-project-item-head {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #6b7280; /* text-gray-500 */
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}
.new-project-item-body {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1f2937; /* text-gray-800 */
    border-bottom: 1px solid #f3f4f6;
}
/* ▲▲▲ 新規作成セクションのスタイル ▲▲▲ */

/* [追加] 実績紹介タブのスタイル */
.project-tab-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563; /* gray-600 */
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    border-radius: 6px 6px 0 0;
}
.project-tab-btn:hover {
    background-color: #f3f4f6; /* gray-100 */
    color: #1f2937; /* gray-800 */
}
.project-tab-btn.active {
    color: #3b82f6; /* blue-500 */
    border-color: #3b82f6; /* blue-500 */
}
@media (max-width: 640px) {
    .project-tab-btn { padding: 6px 10px; font-size: 12px; }
}
