/* グローバル設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro', sans-serif;
    background-color: #f8f5f0;
    color: #2c3e50;
    line-height: 1.8;
    overflow-x: hidden;
}

/* 固定CTA（画面下部） */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px;
    gap: 10px;
}

.cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-line { background: linear-gradient(135deg, #06c755 0%, #05a844 100%); color: #fff; }
.cta-phone { background: linear-gradient(135deg, #e57373 0%, #d84545 100%); color: #fff; }
.cta-button .icon { margin-right: 8px; font-size: 20px; }

/* セクション1: ファーストビュー（スライドショー） */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* スライド1: Before → After */
.before-after-split {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
}

.before-side, .after-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    height: 100%;
}

.before-side {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}

.after-side {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.before-image, .after-image {
    width: 60%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.before-text, .after-text {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.5;
    text-align: center;
}

.huge-number {
    font-size: 70px;
    font-weight: 900;
    color: #e57373;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.arrow-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.big-arrow {
    font-size: 40px;
    font-weight: bold;
    color: #e57373;
}

/* スライド2: なぜ改善するのか */
.why-section {
    text-align: center;
    padding: 40px 20px;
}

.badge {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 40px;
}

.main-headline {
    font-size: 40px;
    font-weight: 900;
    color: #2c3e50;
    line-height: 1.4;
}

/* スライド3: 院長＋実績 */
.director-section {
    text-align: center;
    padding: 40px 20px;
}

.director-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    border: 5px solid #e57373;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.credentials {
    margin-top: 20px;
}

.credential-item {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
}

.highlight-number {
    font-size: 36px;
    color: #e57373;
    font-weight: 900;
}

/* セクション共通 */
.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* セクション2: 問題提起 */
.problems-section {
    padding: 60px 20px;
    background: #fff;
}

.checklist {
    max-width: 600px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f5f0;
    border-radius: 10px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.check-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.checkmark {
    font-size: 28px;
    color: #06c755;
    margin-right: 15px;
    flex-shrink: 0;
}

.check-item p {
    font-size: 16px;
    color: #2c3e50;
}

/* セクション3: なぜ治らないのか */
.reason-section {
    padding: 60px 20px;
    background: #fff;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s, transform 0.8s;
}

.reason-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.reason-content {
    max-width: 800px;
    margin: 0 auto;
}

.reason-image {
    margin-bottom: 30px;
}

.reason-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reason-text h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.reason-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* セクション4: 3ステップ */
.steps-section {
    padding: 60px 20px;
    background: #f8f5f0;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.steps-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.steps-container {
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.step-number {
    background: #e57373;
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-item p {
    font-size: 15px;
    line-height: 1.8;
}

.step-arrow {
    text-align: center;
    font-size: 40px;
    color: #e57373;
    margin: 10px 0;
}

/* セクション5: 国家資格・実績 */
.credentials-section {
    padding: 60px 20px;
    background: #fff;
}

.credentials-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.credential-card {
    background: #f8f5f0;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s, transform 0.8s;
}

.credential-card.visible {
    opacity: 1;
    transform: scale(1);
}

.certificate-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.credential-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.credential-card p {
    font-size: 15px;
    line-height: 1.8;
}

.number-count-up {
    font-size: 60px;
    font-weight: 900;
    color: #e57373;
    margin-bottom: 20px;
}

.count-unit {
    font-size: 24px;
    margin-left: 10px;
}

/* セクション6: 患者様の声 */
.testimonials-section {
    padding: 60px 20px;
    background: #f8f5f0;
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    gap: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s, transform 0.6s;
}

.testimonial-card.visible {
    opacity: 1;
    transform: scale(1);
}

.patient-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.testimonial-content {
    flex: 1;
}

.patient-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e50;
}

/* セクション7: 初回限定オファー */
.offer-section {
    padding: 60px 20px;
    background: #fff;
}

.offer-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #e57373;
    animation: blinkBorder 1.5s infinite;
}

@keyframes blinkBorder {
    0%, 100% { border-color: #e57373; }
    50% { border-color: #ff9090; }
}

.offer-badge {
    background: #e57373;
    color: #fff;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.offer-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.offer-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.arrow-down {
    font-size: 30px;
    color: #e57373;
    margin: 10px 0;
}

.discount-price {
    font-size: 48px;
    font-weight: 900;
    color: #e57373;
}

.discount-rate {
    font-size: 18px;
    color: #e57373;
    font-weight: bold;
    margin-top: 10px;
}

.offer-limit {
    font-size: 18px;
    font-weight: bold;
    color: #d84545;
    margin-bottom: 30px;
}

.remaining-count {
    font-size: 32px;
    color: #d84545;
    font-weight: 900;
}

.offer-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-line-large, .cta-phone-large {
    padding: 20px 30px;
    font-size: 18px;
}

/* セクション8: アクセス */
.access-section {
    padding: 60px 20px 100px;
    background: #f8f5f0;
}

.access-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
}

.access-info {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.access-info h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.access-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.final-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-line-final, .cta-phone-final {
    padding: 20px 30px;
    font-size: 18px;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .credentials-container {
        flex-direction: row;
    }
    
    .before-side, .after-side {
        padding: 60px 40px;
    }
}