@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #fefefe;
    color: #4a5568;
    line-height: 1.8;
    min-height: 100vh;
}

/* コンテナ */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}

/* ページラッパー */
.page {
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(167, 243, 208, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(165, 243, 252, 0.15) 0%, transparent 50%);
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #e6fffa 0%, #e0f2fe 100%);
    color: #4a5568;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "💊";
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    opacity: 0.2;
}

.header h1 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header .subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #718096;
    position: relative;
    z-index: 1;
}

/* コンテンツエリア */
.content {
    padding: 40px 20px;
}

/* イントロテキスト */
.intro-text {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #718096;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
    border-radius: 20px;
    border: 1px solid #a5f3fc;
    text-align: center;
    line-height: 1.8;
}

.intro-text strong {
    color: #0891b2;
    font-weight: 500;
}

/* 薬剤比較カード */
.medication-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.medication-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.medication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.medication-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.15;
}

.medication-card.primary::before {
    background: #fef3c7;
}

.medication-card.secondary::before {
    background: #a5f3fc;
}

.medication-card.primary {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffef7 0%, #fffbeb 100%);
}

.medication-card.secondary {
    border-color: #67e8f9;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
}

.medication-name {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
}

.medication-info {
    font-size: clamp(13px, 2.5vw, 15px);
    color: #718096;
    text-align: center;
    line-height: 1.8;
}

.time-highlight {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 600;
    color: #0891b2;
    display: block;
    margin: 12px 0;
}

/* セクション */
.section {
    margin: 35px 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: clamp(17px, 3vw, 20px);
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.section-title::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.section-title.warning::before {
    content: "⚠️";
}

.section-title.method::before {
    content: "💊";
}

.section-title.side-effects::before {
    content: "ℹ️";
}

/* 警告ボックス */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
}

.warning-box p {
    font-size: clamp(13px, 2.5vw, 15px);
    color: #92400e;
    margin: 0;
    line-height: 1.8;
}

/* 情報リスト */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    font-size: clamp(14px, 2.5vw, 16px);
    margin: 15px 0;
    padding-left: 35px;
    position: relative;
    line-height: 1.8;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 20px;
    font-weight: bold;
}

.info-list li strong {
    color: #0891b2;
    font-weight: 600;
}

/* 副作用グリッド */
.side-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.side-effect-item {
    background: #f0fdfa;
    padding: 15px;
    border-radius: 12px;
    font-size: clamp(12px, 2.5vw, 14px);
    text-align: center;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    transition: all 0.3s ease;
}

.side-effect-item:hover {
    background: #ccfbf1;
    transform: translateY(-2px);
}

/* 安心メッセージ */
.reassurance-message {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    font-size: clamp(14px, 2.5vw, 16px);
    color: #0e7490;
    border: 1px solid #7dd3fc;
    line-height: 1.8;
}

/* ノートボックス */
.note-box {
    margin-top: 20px;
    padding: 20px;
    background: #f0fdfa;
    border-radius: 15px;
    border: 1px solid #a5f3fc;
}

.note-box p {
    font-size: clamp(13px, 2.5vw, 15px);
    color: #0e7490;
    margin: 0;
    line-height: 1.8;
}

/* Q&Aセクション */
.qa-section {
    margin-top: 60px;
}

.qa-title::before {
    content: "❓";
}

.qa-item {
    margin-bottom: 30px;
    background: #fafbfc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e0f2fe;
    transition: all 0.3s ease;
}

.qa-item:hover {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.question {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.q-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.q-text {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: #0c4a6e;
    line-height: 1.6;
}

.answer {
    padding-left: 44px;
}

.answer p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

.answer strong {
    color: #0891b2;
    font-weight: 600;
}

/* お問い合わせセクション */
.contact-section {
    margin-top: 60px;
}

.line-contact-box {
    background: linear-gradient(135deg, #e6fffa 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #a5f3fc;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.line-contact-box::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.line-contact-box p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #0c4a6e;
    line-height: 1.8;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin: 20px 0;
}

.contact-info strong {
    color: #0891b2;
    font-size: clamp(18px, 3vw, 20px);
}

.contact-note {
    font-size: clamp(12px, 2vw, 14px) !important;
    color: #64748b !important;
}

/* QRコードコンテナ */
.qr-container {
    display: inline-block;
    position: relative;
    margin: 30px auto 50px;
}

.qr-placeholder {
    display: block;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 16px;
    border: 3px solid #e0f2fe;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* LINEアイコンバッジ */
.qr-placeholder::before {
    content: "LINE";
    position: absolute;
    top: -12px;
    right: -12px;
    background: #00C300;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 195, 0, 0.3);
    z-index: 2;
}

.qr-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
    border-color: #67e8f9;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-placeholder-link {
    display: inline-block;
    text-decoration: none;
}

/* QRコードの説明テキスト */
.qr-placeholder::after {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    opacity: 0.8;
}

/* LINEリンク */
.line-link {
    margin-top: 24px;
}

.line-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00C300;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.line-link a::before {
    content: "LINE";
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.line-link a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.line-link a:hover {
    background: #00B900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 195, 0, 0.35);
}

.line-link a:hover::after {
    left: 100%;
}

/* クリニックメッセージ */
.clinic-message {
    background: #f0fdfa;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.message-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.doctor-icon {
    font-size: 60px;
    flex-shrink: 0;
}

.message-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.message-box::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.message-box p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.message-footer span {
    font-size: clamp(12px, 2vw, 14px);
    color: #64748b;
}

.qr-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #e0f2fe;
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qr-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-small:hover {
    transform: scale(1.1);
    border-color: #67e8f9;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.qr-small[title]::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qr-small:hover[title]::after {
    opacity: 1;
}

/* フッター */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdfa;
    border-radius: 0 0 20px 20px;
}

.page-info {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .header::before {
        font-size: 40px;
        opacity: 0.1;
    }
    
    .content {
        padding: 25px 15px;
    }
    
    .medication-comparison {
        gap: 20px;
    }
    
    .medication-card {
        padding: 25px;
        min-height: 220px;
    }
    
    .section {
        padding: 25px 20px;
        margin: 25px 0;
    }
    
    .side-effects {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    /* Q&A モバイル対応 */
    .qa-item {
        padding: 20px;
    }
    
    .question {
        flex-direction: column;
        gap: 8px;
    }
    
    .answer {
        padding-left: 0;
        margin-top: 12px;
    }
    
    /* お問い合わせ モバイル対応 */
    .line-contact-box {
        padding: 30px 20px;
    }
    
    .qr-container {
        margin: 20px auto 35px;
    }
    
    .qr-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .qr-placeholder::after {
        bottom: -30px;
        font-size: 11px;
    }
    
    .line-link a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .line-link a::before {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .message-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .doctor-icon {
        font-size: 40px;
        align-self: center;
    }
    
    .message-box::before {
        display: none;
    }
    
    .message-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .clinic-message {
        padding: 30px 20px;
    }
}

/*案内ページ用*/
.medication-link-card:hover .medication-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.medication-link-card .medication-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.medication-grid {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .medication-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ロゴ画像用のスタイル調整（794×150の縦横比を保持） */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.clinic-logo {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .clinic-logo {
        width: 150px;
    }
}

/* 大画面対応 */
@media (min-width: 1200px) {
    .container {
        padding: 40px;
    }
    
    .header {
        padding: 50px 40px;
    }
    
    .content {
        padding: 50px 40px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .medication-comparison {
        gap: 30px;
    }

    .clinic-logo {
        width: 250px;
    }
}