/* --- Base Styles & Variables (from LP) --- */
:root {
    --primary-color: #3B82F6; /* A modern blue */
    --secondary-color: #10B981; /* A friendly green */
    --text-color: #333;
    --light-text-color: #555;
    --bg-color: #FFFFFF;
    --light-bg-color: #F9FAFB;
    --border-color: #E5E7EB;
    --font-family: 'Noto Sans JP', sans-serif;
    --container-width: 1100px;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
/* LP body has padding-top. Biz body does not. So it's separated. */
.lp-body {
    padding-top: var(--header-height); /* Header height */
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1D4ED8;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
}

.section-title-small {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
    color: var(--light-text-color);
}
.section-text-strong {
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 40px;
}
.sp-only { display: none; }


/* --- Common Classes for Both Sites --- */

/* Gradient Text (used in both) */
.gradient-text {
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* For biz page */
.bg-gray-50 .gradient-text, .bg-white .gradient-text {
    background: linear-gradient(to right, #1d4ed8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-light {
    background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animation (unified) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Font for Biz Page */
body.antialiased {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
.font-heading {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* --- LP Specific Styles --- */

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.header-logo img {
    height: 30px;
}
.header-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.header-cta:hover {
    background-color: #1D4ED8;
    color: white;
}


/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #60A5FA, #3B82F6);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
    color: white;
}
.cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.cta-button-secondary {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 2px; /* For gradient border */
    border-radius: 50px;
    transition: all 0.3s ease;
}
.cta-button-secondary span {
    display: block;
    background-color: var(--bg-color);
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover span {
    background-color: transparent;
}


/* --- First View (FV) --- */
.fv {
    position: relative;
    min-height: calc(100vh - var(--header-height)); /* heightをmin-heightに変更 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* overflow: hidden; を削除 */
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.fv-content {
    max-width: 900px;
    padding: 20px;
}

.fv-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 30px 0;
}

.fv-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.fv-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    padding: 10px;
}

.fv-notes {
    font-size: 0.8rem;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* --- Sympathy Section --- */
.sympathy {
    background-color: var(--light-bg-color);
}
.sympathy-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.sympathy-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sympathy-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sympathy-item h3 img {
    width: 60px;
    height: 60px;
}

/* --- Problem & Solution Section --- */
.problem-comparison {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.problem-card {
    flex: 1;
    text-align: center;
}
.problem-card h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.problem-card img {
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.problem-card p {
    text-align: left;
}

.solution-declaration {
    margin-top: 80px;
    text-align: center;
}
.solution-title {
    font-size: 2rem;
    margin-bottom: 24px;
    display: inline-block;
}
.solution-image-wrapper {
    width: 100%;
    margin: 24px 0;
    overflow: hidden;
}
.solution-image {
    width: 100%;
    height: auto;
}
.solution-text {
    font-size: 1.1rem;
    font-weight: 700;
    max-width: 800px;
    margin: 24px auto 0;
}

/* --- Value Proposition Section --- */
.value-proposition {
    position: relative;
    color: white;
    text-align: center;
    background-color: #333;
}
.value-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}
.value-proposition .container {
    position: relative;
    z-index: 1;
}
.section-title.white, .section-text.white {
    color: white;
}
.value-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.value-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.value-icon {
    height: 50px;
    margin: 0 auto 20px;
}
.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* --- AI Reliability Section --- */
.ai-reliability {
    background-color: var(--light-bg-color);
}
.section-image {
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.ai-mechanism {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
}
.ai-mechanism h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.ai-models {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.ai-model-item {
    flex: 1;
    max-width: 300px;
}
.ai-model-item img {
    height: auto;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 16px;
}
.ai-model-item p {
    font-size: 0.9rem;
}

.ai-mechanism > p {
    max-width: 800px;
    margin: 24px auto 0;
    text-align: left;
}
.ai-points {
    margin-top: 80px;
}
.ai-point {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.ai-point.reverse {
    flex-direction: row-reverse;
}
.ai-point-image {
    flex: 1 1 45%;
}
.ai-point-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.ai-point-text {
    flex: 1 1 55%;
}
.ai-point-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 16px;
}

/* --- Diagnosis Experience Section --- */
.diagnosis-experience {
    padding-top: 0;
}
.diagnosis-title-wrapper {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: white;
    overflow: hidden;
}
.diagnosis-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
}
.diagnosis-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: -1;
}
.diagnosis-title-wrapper .section-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.steps {
    margin-top: 80px;
}
.step {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
    border-left: 3px solid var(--primary-color);
    padding-left: 40px;
}
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 10px;
}
.step-content img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}
.step-content h3, .step-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.step-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* --- AI間取り作成サービス (Room Cast) --- */
.room-cast {
    background-color: var(--light-bg-color);
}
.room-cast-intro {
    display: flex;
    gap: 40px;
    align-items: center;
}
.room-cast-text {
    flex: 1 1 55%;
}
.room-cast-text .section-title {
    text-align: left;
}
.room-cast-image {
    flex: 1 1 45%;
}
.room-cast-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.room-cast-features {
    /*margin-top: 80px;*/
    text-align: center;
}
.room-cast-features h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: inline-block;
}
.room-cast-features > p {
    max-width: 800px;
    margin: 0 auto 32px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}
.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
}
.feature-card img {
    border-radius: 8px;
    margin-bottom: 20px;
}
.feature-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}


/* --- Free Appeal Section --- */
.free-appeal {
    position: relative;
    color: white;
    overflow: hidden;
}
.free-appeal-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}
.free-appeal-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-color: rgba(0,0,0,0.6);
    z-index: -1;
}
.free-appeal .container {
    position: relative;
    z-index: 1;
}
.free-appeal .section-title, .free-appeal p {
    color: white;
}
.free-appeal strong {
    font-size: 1.2em;
}


/* --- Comparison Section --- */
.comparison {
    background-color: var(--light-bg-color);
}
.comparison-image {
    max-width: 250px;
    margin: 0 auto 30px;
}
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
    vertical-align: middle;
}
.comparison-table th {
    background-color: #F3F4F6;
    font-weight: 700;
    white-space: nowrap; 
}
.comparison-table .homefit-col {
    background-color: #DBEAFE;
}
.comparison-table .highlight {
    background-color: #EFF6FF;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--light-bg-color);
}
.testimonial-cards {
    margin-top: 50px;
    display: grid;
    gap: 40px;
}
.testimonial-card {
    display: flex;
    gap: 30px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
}
.testimonial-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.testimonial-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.testimonial-meta {
    font-weight: 700;
    color: var(--light-text-color);
    margin-bottom: 16px;
}
.voice-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.voice-box.before { background-color: #f3f4f6; }
.voice-box.after { background-color: #111827; color: #f9fafb; }
.voice-box.result {
    background: linear-gradient(90deg, #dbeafe, #e9d5ff, #fbcfe8, #fed7aa);
    color: #1f2937;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--light-bg-color);
}
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}
.faq-question {
    padding: 20px 20px 20px 0px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    width: 100%;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 0 20px;
    color: var(--light-text-color);
}

/* --- Offer Section --- */
.offer {
    background-image: linear-gradient(135deg, #fffdf5, #fffbeb);
}
.offer-items {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}
.offer-item {
    flex: 1;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #FBBF24;
}
.offer-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.offer-highlight {
    font-weight: 700;
    margin-bottom: 20px;
}
.offer-highlight strong {
    font-size: 1.2em;
    color: #D97706;
}
.offer-item img {
    margin: 20px auto;
    max-width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- CEO Message Section --- */
.ceo-message {
    background-color: var(--light-bg-color);
}
.ceo-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 40px auto 0;
}
.ceo-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}
.ceo-text ul {
    list-style-position: inside;
    margin: 20px 0;
}
.ceo-signature {
    text-align: right;
    margin-top: 24px;
}

/* --- Mission Statement Section (LP Only) --- */
/* --- Mission Statement Section (LP Only) --- */
.mission-statement {
    background-color: #0d1a33;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* ヘッダーバーの高さ分 */
    padding-bottom: 60px;
}

/* 背景のコード風テクスチャ */
.mission-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ctext x='10' y='20' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3E01010101 01101110 01100101 01110100 01110111 01101111%3C/text%3E%3Ctext x='250' y='40' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3E[status: ok]%3C/text%3E%3Ctext x='150' y='90' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3Econst mission = () =%3E {...};%3C/text%3E%3Ctext x='50' y='180' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3E// AI matching algorithm v3.2%3C/text%3E%3Ctext x='200' y='250' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3Eresolve(promise).then(...)%3C/text%3E%3Ctext x='80' y='350' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.07)'%3E#ffffff #0d1a33 #60a5fa%3C/text%3E%3C/svg%3E");
    z-index: 0;
}

.mission-statement .container {
    position: relative;
    z-index: 2;
}

/* 上部のヘッダーバー */
.mission-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 26, 51, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}
.mission-header-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
.mission-header-bar .mission-logo img {
    height: 24px;
}
.mission-header-bar .mission-cta {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}
.mission-header-bar .mission-cta:hover {
    background-color: #1d4ed8;
    color: white;
}

.mission-statement .section-title {
    color: white;
    text-align: left;
    margin-bottom: 40px;
    font-size: 2.2rem;
    line-height: 1.5;
}

.mission-statement .section-title br {
    display: block;
}

.mission-statement .highlight-blue {
    color: #60a5fa;
    font-size: 1.1em;
}

/* 元の .gradient-text スタイルを無効化 */
.mission-statement .section-title .gradient-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
}

.mission-upper {
    display: flex;
    gap: 40px;
    align-items: top;
    margin-bottom: 24px; /* 段落間のスペースを調整 */
}

.mission-text {
    flex: 1 1 58%;
    line-height: 1.9;
    color: #d1d5db;
}

.mission-images {
    flex: 1 1 42%;
}
.mission-images img {
    width: 100%;
    height: auto; /* 高さを自動に設定 */
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    /* aspect-ratio, object-fitを削除してトリミングを解除 */
}

.mission-lower {
    line-height: 1.9;
    color: #d1d5db;
}

.mission-team-wrapper {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}
.mission-team-wrapper img {
    max-width: 200px;
    width: 100%;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-caption {
    padding-bottom: 10px;
}

.team-caption .signature-text {
    color: white;
    font-size: 1.1rem;
}

/* --- Responsive Styles (Mission Statement) --- */
@media (max-width: 992px) {
    .mission-upper {
        flex-direction: column;
        gap: 30px;
    }
    .mission-images {
        width: 100%;
        order: -1;
    }
}
@media (max-width: 768px) {
    .mission-statement {
        padding-top: 80px;
    }
    .mission-header-bar .container {
        height: 50px;
    }
    .mission-statement .section-title {
        text-align: center;
        font-size: 1.8rem;
    }
    .mission-team-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .team-caption {
        text-align: center;
        padding-bottom: 0;
    }
}

/* --- Responsive Styles (Mission Statement) --- */
@media (max-width: 992px) {
    .mission-upper {
        flex-direction: column;
        gap: 30px;
    }
    .mission-images {
        width: 100%;
        order: -1;
    }
}
@media (max-width: 768px) {
    .mission-statement {
        padding-top: 80px;
    }
    .mission-header-bar .container {
        height: 50px;
    }
    .mission-statement .section-title {
        text-align: center;
        font-size: 1.8rem;
    }
    .mission-team-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .team-caption {
        text-align: center;
        padding-bottom: 0;
    }
}

/* --- Final CTA Section --- */
.final-cta {
    background-color: var(--light-bg-color);
}
.final-cta .container {
    text-align: center;
}
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左寄せ */
    max-width: 300px;
    margin: 30px auto 0;
    gap: 12px;
    font-size: 1rem;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-list img {
    width: 20px;
    height: 20px;
}


/* --- Guide Section --- */
.guide {
    background-color: #F3F4F6;
    padding: 60px 0;
}
.guide-intro {
    text-align: center;
    margin-bottom: 30px;
}
.guide-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #4B5563;
}
.guide-content h3 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

/* --- Footer --- */
.footer {
    background-color: #1F2937;
    color: #D1D5DB;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: #D1D5DB;
}
.footer-nav a:hover {
    color: white;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background-color: #1D4ED8;
    color: white;
}

/* --- Responsive Styles (mostly for LP) --- */
@media (max-width: 1024px) {
    .ai-point, .ai-point.reverse {
        gap: 30px;
    }
    .room-cast-intro {
        flex-direction: column;
        text-align: center;
    }
    .room-cast-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .sp-only { display: block; }
    .text-left-sp { text-align: left; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .fv-title { font-size: 2.5rem; }
    .fv-subtitle { font-size: 1rem; }
    .badge { width: 120px; height: 120px; font-size: 0.8rem;}

    .sympathy-items { grid-template-columns: 1fr; }
    .problem-comparison { flex-direction: column; }
    .value-items { grid-template-columns: repeat(2, 1fr); }
    
    .ai-models { flex-direction: column; align-items: center; }
    .ai-point, .ai-point.reverse {
        flex-direction: column;
        /* text-align: center; */
    }
    .ai-point-text { order: 2; }
    .ai-point-image { order: 1; margin-bottom: 20px; }
    .ai-point-text h4, .ai-point-text p { text-align: left; }

    .diagnosis-title-wrapper { padding: 60px 0; }
    .steps { margin-top: 60px; }
    .step {
        grid-template-columns: 1fr;
        padding-left: 20px;
        gap: 20px;
    }
    .step-number {
        position: relative;
        width: 100%;
        padding-top: 0;
        margin-bottom: 10px;
    }

    .room-cast-features h3 { font-size: 1.5rem; }
    .feature-cards { grid-template-columns: 1fr; }
    
    .testimonial-card { flex-direction: column; align-items: center; text-align: center; }
    .testimonial-card img { margin-bottom: 20px; }
    .testimonial-content h3 { font-size: 1.2rem; }

    .offer-items { flex-direction: column; }
    
    .ceo-content { flex-direction: column; text-align: center; }
    .ceo-text p { text-align: left; }
    .ceo-signature { text-align: right !important; }
    
    .check-list { align-items: center; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .section-title { font-size: 1.6rem; }
    .fv-title { font-size: 2rem; }
    .fv-badges { gap: 10px; }
    .badge { width: 110px; height: 110px; }
    .value-items { grid-template-columns: 1fr; }
    .ai-point-text h4, .ai-point-text p { text-align: left; }
    .check-list { align-items: flex-start; max-width: 280px; }
}

/* --- Scroll Indicator for Table --- */
.comparison-table-wrapper {
    position: relative; /* アイコンを配置する基準点 */
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(31, 41, 55, 0.75); /* 半透明の背景 */
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* アイコン自体はクリックやタッチの対象外にする */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out;
}

.scroll-indicator.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-indicator img {
    width: 50px;  /* 画像が見やすいように少しサイズを調整 */
    height: 50px; /* 画像が見やすいように少しサイズを調整 */
    object-fit: contain; /* 画像の比率を維持 */
}

/* --- Video Introduction Section --- */
#video-introduction {
    background-color: var(--bg-color); /* 背景を白に */
}

.video-wrapper {
    position: relative;
    max-width: 800px; /* 動画の最大幅 */
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden; /* 角丸をビデオ要素に適用するため */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    width: 100%;
    display: block; /* 下の余分な隙間を削除 */
    height: auto;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* 再生ボタンのSVGアイコン */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='80px' height='80px'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none; /* 下のビデオをクリックできるようにする */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* ビデオが再生中のスタイル */
.video-wrapper.is-playing .play-button-overlay {
    opacity: 0;
    visibility: hidden;
}

/* --- FV画像スライドショー --- */
.fv-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #333;
    overflow: hidden;
}

.fv-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 初期状態はすべて透明 */

    /* 2つのアニメーション（拡大とフェード）を同時に、無限に実行 */
    animation-name: kenburns-effect, fv-fade-effect;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    /* アニメーションの総時間 (画像3枚 × 6秒/枚 = 18秒) */
    animation-duration: 18s, 18s; 
}

/* 各画像のアニメーション開始タイミングをずらす */
.fv-slider img:nth-child(1) {
    /* 1枚目: 0秒地点からフェード開始 */
    animation-delay: 0s, 0s;
}
.fv-slider img:nth-child(2) {
    /* 2枚目: 6秒地点からフェード開始 */
    animation-delay: 0s, -12s; 
}
.fv-slider img:nth-child(3) {
    /* 3枚目: 12秒地点からフェード開始 */
    animation-delay: 0s, -6s;
}

/* 常に拡大し続けるアニメーション */
@keyframes kenburns-effect {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.1);
    }
}

/* フェードイン・アウトを制御するアニメーション */
@keyframes fv-fade-effect {
    0% { opacity: 0; }
    /* 1.5秒かけてフェードイン (1.5s / 18s = 8.3%) */
    8.3% { opacity: 1; }   
    /* 3秒間表示を維持 ( (1.5s+3s) / 18s = 25% ) */
    25% { opacity: 1; }  
    /* 1.5秒かけてフェードアウト ( (1.5s+3s+1.5s) / 18s = 33.3% ) */
    /* ★重要：ここで完全に消えるようにする */
    33.3% { opacity: 0; }  
    /* 残りの時間は透明を維持 */
    100% { opacity: 0; }
}

/* --- ソリューション体験セクション --- */
.solution-experience {
    background-color: var(--light-bg-color);
}
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}
.experience-item {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* 画像エリアを少し広めに */
    gap: 40px;
    align-items: center;
}
/* 2つ目のアイテムは左右を入れ替え */
.experience-item:nth-child(even) {
    grid-template-columns: 1.1fr 1fr;
}
.experience-item:nth-child(even) .experience-text {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.experience-item:nth-child(even) .experience-images {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.experience-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}
.experience-text h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 700;
}
.experience-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.experience-images img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.experience-images.score-images img {
    aspect-ratio: initial; /* スコア画像は元の比率を維持 */
}
/* 1枚目の画像を大きく表示 */
.experience-images img:first-child {
    grid-column: 1 / -1; /* 2列をまたぐ */
    aspect-ratio: 16 / 9;
}
/* ---スコア画像が2枚の場合のレイアウト調整 --- */
.experience-images.score-images img:first-child {
    grid-column: auto; /* 先に設定した列またぎをリセット */
    aspect-ratio: initial; /* 先に設定したアスペクト比をリセット */
}

/* --- アコーディオン --- */
.accordion {
    margin: 16px 0 0;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.accordion summary {
    font-weight: 700;
    color: var(--primary-color);
    padding: 12px 16px;
    cursor: pointer;
    list-style: none; /* 標準のマーカーを削除 */
    position: relative;
}
.accordion summary::-webkit-details-marker {
    display: none;
}
.accordion summary::before {
    content: '▼';
    position: absolute;
    left: 16px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}
.accordion[open] > summary::before {
    transform: rotate(0deg);
}
.accordion summary {
    padding-left: 40px; /* アイコン分のスペース */
}
.accordion-content {
    padding: 0px 16px 16px;
    color: var(--light-text-color);
    line-height: 1.8;
}
.accordion-content p {
    margin: 0;
    text-align: left;
}
.feature-card .accordion {
    background-color: var(--bg-color);
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .experience-item,
    .experience-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
     .experience-item:nth-child(even) .experience-text {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .experience-item:nth-child(even) .experience-images {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .experience-text {
        text-align: center;
    }
    .experience-text h3 {
        font-size: 1.5rem;
    }
}