/* * search-portal.html 専用のスタイルシート
 * 共通スタイル (style.css) を補完します。
 */

/* セクション共通 */
.portal-section {
    margin: 60px 60px;
}

.portal-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color-dark);
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

/* ボタンコンテナ */
.button-container {
    display: grid;
    grid-template-columns: 1fr; /* モバイルでは1列 */
    gap: 20px;
}

/* 検索ボタン */
.portal-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color-dark);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 160px; /* 高さを確保 */
}

.portal-button:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.button-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.button-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.button-subtext {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Power BI ダッシュボード */
.dashboard-container {
    position: relative;
    margin: auto;
    width: 90%;
    /* 16:9 のアスペクト比を維持 */
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden; /* iframeがはみ出ないように */
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.dashboard-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ダミープレースホルダー (iframeが無い場合) */
.dashboard-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    font-size: 18px;
}

.dashboard-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}


/* --- レスポンシブ対応 (タブレット・PC) --- */
@media screen and (min-width: 768px) {
    /* ボタンを2列にする */
    .button-container {
        grid-template-columns: 1fr 1fr;
    }

    .portal-section-title {
        font-size: 24px;
    }

    .button-text {
        font-size: 22px;
    }
}
