/* 全体のスタイル */
:root {
    --primary-color: #0066cc;
    --secondary-color: #e6f0ff;
    --accent-color: #ff3366;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-radius: 12px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* ヘッダー */
header {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* メインコンテンツ */
main {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* ランキングセクション */
.ranking {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.clinic-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.clinic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rank {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.clinic-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
}

.clinic-card h2 {
    color: var(--text-color);
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.details {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0.5rem 0;
}

.highlight {
    background: var(--secondary-color);
    padding: 0.4rem;
    border-radius: 6px;
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.reserve-btn {
    display: block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    margin-top: 0.8rem;
    font-size: 1rem;
}

.reserve-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* 比較セクション */
.clinic-comparison {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin: 2rem 0;
}

.clinic-comparison h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.clinic-comparison h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

th, td {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}

th {
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    color: white;
    font-weight: 700;
    position: sticky;
    left: 0;
    z-index: 1;
    border: none;
}

td:first-child {
    position: sticky;
    left: 0;
    background: var(--card-bg);
    z-index: 1;
    font-weight: 700;
    border-right: 2px solid #e0e0e0;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f0f4ff;
    transition: background-color 0.3s ease;
}

/* 比較テーブル内の画像サイズ調整 */
.comparison-table img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* テーブルのセル内のテキストを中央揃えに */
.comparison-table td {
    text-align: center;
    vertical-align: middle;
}

.comparison-table th {
    text-align: center;
    vertical-align: middle;
}

/* スマートフォン向けの調整 */
@media (max-width: 480px) {
    .comparison-table {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    th, td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .clinic-comparison {
        padding: 1rem;
    }
}

/* タブレット向けの調整 */
@media (min-width: 481px) and (max-width: 768px) {
    .comparison-table img {
        max-width: 110px;
    }
    
    th, td {
        padding: 0.7rem;
    }
}

/* トップバナー */
.top-banner {
    width: 100%;
    margin: 0 auto 1.5rem;
    text-align: center;
    padding: 0;
}

.top-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* フッター */
footer {
    background: var(--card-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* タブレット向けスタイル */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .ranking {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .clinic-comparison {
        padding: 2rem;
    }

    .comparison-table {
        margin: 0;
        padding: 0;
    }
}

/* デスクトップ向けスタイル */
@media (min-width: 1024px) {
    main {
        max-width: 1200px;
    }

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

    .clinic-card {
        padding: 1.5rem;
    }

    .clinic-image {
        height: 200px;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .ranking {
        grid-template-columns: 1fr;
    }
    
    .clinic-card {
        margin: 0 1rem;
    }
    
    .comparison-table {
        margin: 0 -1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .clinic-card {
        padding: 1rem;
    }
    
    .clinic-image {
        max-height: 180px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .reserve-btn {
        padding: 0.6rem 1rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clinic-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.clinic-card:nth-child(2) {
    animation-delay: 0.2s;
}

.clinic-card:nth-child(3) {
    animation-delay: 0.4s;
}

.clinic-details {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.clinic-details h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.clinic-details h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e60073;
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: #f9f9f9;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-card h3 {
    color: #e60073;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e60073;
    font-size: 1.4rem;
    position: relative;
}

.detail-card h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e60073;
}

.detail-card ul {
    list-style-type: none;
}

.detail-card li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.detail-card li:before {
    content: "•";
    color: #e60073;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.detail-card li strong {
    color: #333;
    font-weight: 600;
}

.benefits {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: #e60073;
    margin-bottom: 1rem;
}

.benefit-card ul {
    list-style-type: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.benefit-card li {
    position: relative;
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.benefit-card li:before {
    content: "•";
    color: #e60073;
    position: absolute;
    left: -1.5rem;
    font-size: 1.2rem;
}

.faq {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e60073;
}

.faq-item h3 {
    color: #e60073;
    margin-bottom: 1rem;
}

.faq-item ul {
    list-style-type: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.faq-item li {
    position: relative;
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.faq-item li:before {
    content: "•";
    color: #e60073;
    position: absolute;
    left: -1.5rem;
    font-size: 1.2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #333;
    color: white;
}

.footer-section h3 {
    color: #e60073;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: white;
}

@media (max-width: 768px) {
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-card li,
    .benefit-card li,
    .faq-item li {
        font-size: 0.9rem;
    }
    
    .highlight {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }
}

.ad-container {
    display: inline-block;
    margin: 0.5rem;
    text-align: center;
}

.advertisement {
    margin: 2rem auto;
    text-align: center;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.advertisement a {
    display: inline-block;
    margin: 0.5rem;
}

.advertisement img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.comparison-table td a {
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: pre-line;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.comparison-table td a:hover {
    background: linear-gradient(135deg, #0052a3, #003366);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.comparison-table td a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* スマートフォン向けの調整 */
@media (max-width: 480px) {
    .comparison-table td a {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }
} 