/* ホームページ専用スタイル（日本のプレミアムB2B/医療系デザイン） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 日本語環境で読みやすく、品のあるフォントスタック */
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333333;
    background: #f8f9fa;
    /* ソフトで清潔感のある背景色 */
    line-height: 1.7;
    letter-spacing: 0.03em;
    /* 日本語向けに若干の字送り */
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヒーローセクション (清潔感と信頼) */
.hero-section {
    position: relative;
    background: #ffffff;
    /* 非常にさりげない、下部へのグラデーション */
    background-image: linear-gradient(180deg, #ffffff 0%, #f1f4f8 100%);
    color: #333333;
    padding: 100px 0 80px;
    border-bottom: 1px solid #e2e8f0;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* タイトルが長い場合にラップを許可 */
    gap: 12px;
    line-height: 1.3;
    color: #1e293b;
    /* 検索画面の見出し色 */
}

.hero-icon {
    font-size: 48px;
    color: #2563eb;
    /* 検索画面のメインカラー */
    flex-shrink: 0;
}

.hero-title-text {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    color: #555555;
    line-height: 1.8;
}

/* 検索バー (ソリッドで実用的) */
.hero-search-container {
    max-width: 800px;
    margin: 0 auto 30px;
    width: 100%;
}

.hero-search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    /* はっきりとした境界線 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    /* ごく控えめな影 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-form:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 16px;
}

.search-input-wrapper .material-icons {
    color: #94a3b8;
    font-size: 24px;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-size: 16px;
    color: #333333;
    outline: none;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    background: #2563eb;
    /* 検索画面の青 */
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 8px;
    /* 検索画面に合わせた角丸 */
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.1em;
}

.hero-search-btn:hover {
    background: #1d4ed8;
}

.hero-search-btn:active {
    background: #1e40af;
}

/* 検索クイックリンク */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.quick-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.quick-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.quick-link .material-icons {
    font-size: 18px;
}

/* 統計ダッシュボード (端正なカード) */
.hero-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.stat-card-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
    font-family: inherit;
    /* 数字もシステマチックに */
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.brand-icon {
    color: #2563eb;
}

.generic-icon {
    color: #10b981;
    /* 検索画面の緑 */
}

.stat-icon .material-icons {
    font-size: 24px;
}

/* ============================================================
   すぐに試せるサンプル（try-section）
   ============================================================ */
.try-section {
    padding: 40px 0 40px; /* 余白を削減 */
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.try-section-header {
    text-align: center;
    margin-bottom: 32px; /* 少し詰める */
}

.try-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.try-section-lead {
    font-size: 16px;
    color: #64748b;
}

.try-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start !important; /* 強制的に上寄せ */
}

@media (max-width: 992px) {
    .try-categories {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.try-category {
    display: flex;
    flex-direction: column;
    align-self: start !important; /* 個別にも上寄せを強制 */
}

.try-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.try-cat-blue { color: #2563eb; border-bottom-color: #2563eb; }
.try-cat-purple { color: #8b5cf6; border-bottom-color: #8b5cf6; }
.try-cat-teal { color: #0d9488; border-bottom-color: #0d9488; }

.try-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start !important;
}

.try-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 72px; /* 高さを最小保持に変更 */
}

.try-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.try-card-body {
    flex: 1;
}

.try-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.try-card-desc {
    font-size: 12px;
    color: #64748b;
}

.try-card-arrow {
    font-size: 20px;
    color: #cbd5e1;
    margin-left: 12px;
}

/* 機能紹介 (端正なグリッド) */
.features-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

/* 日本のサイトでよくある見出しの下線装飾 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #2563eb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    padding: 30px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper .material-icons {
    font-size: 24px;
    color: #2563eb;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

/* 使い方セクション */
.howto-section {
    padding: 80px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.step-item {
    flex: 1;
    max-width: 300px;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
}

/* よくあるステップフローの装飾 */
.step-item:not(:last-child)::after {
    content: '▶';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 20px;
}

.step-number {
    display: inline-block;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.step-description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    /* 説明文は左揃えで読みやすく */
}

/* 最近の検索 */
.recent-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.recent-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.recent-item {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.recent-item:hover {
    opacity: 0.7;
}

/* ============================================================
   機能詳細セクション（feature-detail）
   ============================================================ */

.feature-detail-section {
    background: #f8fafc;
    padding: 80px 0;
}

.feature-detail-row {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 56px 0;
    border-bottom: 1px solid #e2e8f0;
}

.feature-detail-row:last-child {
    border-bottom: none;
}

.feature-detail-row.feature-detail-row-reverse {
    flex-direction: row-reverse;
}

.feature-detail-icon-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-detail-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-detail-text-col {
    flex: 1;
}

.feature-detail-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.feature-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    line-height: 1.3;
}

.feature-detail-lead {
    font-size: 15px;
    line-height: 1.85;
    color: #475569;
    margin: 0 0 24px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.feature-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.feature-detail-list li .material-icons {
    font-size: 18px;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-search-form {
        flex-direction: column;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .search-input-wrapper {
        background: white;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 4px 16px;
        margin-bottom: 12px;
    }

    .hero-search-btn {
        padding: 16px;
        width: 100%;
        border-radius: 8px;
    }

    .hero-stats-cards {
        flex-direction: column;
    }

    .quick-links {
        flex-direction: column;
        gap: 16px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        width: 100%;
    }

    .step-item:not(:last-child)::after {
        content: '▼';
        right: auto;
        bottom: -24px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* 機能詳細セクション - モバイル */
    .feature-detail-row,
    .feature-detail-row.feature-detail-row-reverse {
        flex-direction: column !important;
        gap: 24px;
        padding: 32px 0;
    }

    .feature-detail-icon-col {
        display: flex;
        justify-content: center;
    }

    .feature-detail-icon-wrap {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .feature-detail-icon-wrap span {
        font-size: 36px !important;
    }

    .sample-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   サンプルリンクカード（feature-detail 内）
   ============================================================ */

.sample-links-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.sample-links-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sample-links-label .material-icons {
    font-size: 18px;
    color: #94a3b8;
}

.sample-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 共通カードスタイル */
.sample-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sample-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.sample-link-icon {
    font-size: 22px !important;
    flex-shrink: 0;
}

.sample-link-body {
    flex: 1;
    min-width: 0;
}

.sample-link-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sample-link-sub {
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sample-link-arrow {
    font-size: 18px !important;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Blue: 添付文書検索 */
.sample-link-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.sample-link-blue .sample-link-icon {
    color: #3b82f6;
}

.sample-link-blue:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

/* Purple: 処方量・販売量 */
.sample-link-purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #4c1d95;
}

.sample-link-purple .sample-link-icon {
    color: #7c3aed;
}

.sample-link-purple:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #3b0764;
}

/* Teal: 同種・同効薬 */
.sample-link-teal {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #164e63;
}

.sample-link-teal .sample-link-icon {
    color: #0891b2;
}

.sample-link-teal:hover {
    background: #cffafe;
    border-color: #67e8f9;
    color: #0e4c5f;
}

@media (max-width: 900px) {
    .sample-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .sample-links-grid {
        grid-template-columns: 1fr;
    }

    .sample-link-card {
        padding: 10px 12px;
    }
}
