/* =========================================
   1. 共通設定 (header-footer.css で管理)
   ========================================= */

:root {
    --color-gray-bg: #f4f4f4;    /* 薄いグレー背景 */
}

/* =========================================
   リンクページ専用スタイル
   ========================================= */

/* ページタイトルエリア */
.page-title-area {
    background-color: var(--color-gray-bg);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 32px;
    color: var(--color-main);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

/* コンテンツ幅制限 */
.container {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* リンクのセクション */
.link-section {
    margin-bottom: 60px;
}

.section-heading {
    font-size: 22px;
    color: var(--color-text);
    border-left: 6px solid var(--color-main);
    padding-left: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-heading i {
    margin-right: 10px;
    color: var(--color-accent);
}

/* グリッドレイアウト */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* リンクカードのデザイン */
.link-card {
    display: block;
    background: var(--color-white);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.link-card:hover .link-icon-bg {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.15;
}

.card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 24px;
    color: var(--color-accent);
    margin-right: 15px;
    background: #f0f4ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-main);
    line-height: 1.4;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-url {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-url i {
    font-size: 10px;
}

/* 背景装飾用アイコン（絶対配置） */
.link-icon-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 80px;
    color: var(--color-main);
    opacity: 0.05;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* =========================================
   メディアクエリ (header-footer.css で管理)
   ========================================= */
@media screen and (max-width: 1024px) {
    .page-title { font-size: 24px; }
    .link-grid { grid-template-columns: 1fr; } /* スマホは1カラム */
}
