@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Outfit:wght@500;700&display=swap');

/* =========================================
   ポータル用デザインシステム (index.css)
========================================= */

:root {
    --primary: #1a365d;
    --primary-light: #2b6cb0;
    --secondary: #3182ce;
    --accent: #ed8936;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-sub: #718096;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: var(--primary);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- ヒーローセクション --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 5%;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- メインコンテンツ：グリッド --- */
main {
    max-width: 1200px;
    margin: -60px auto 100px;
    padding: 0 5%;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- ツールカード --- */
.tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.tool-card .material-symbols-outlined {
    font-size: 64px;
    color: var(--secondary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.tool-card:hover .material-symbols-outlined {
    transform: scale(1.1);
    color: var(--accent);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.tool-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.tool-card .arrow {
    margin-top: 24px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.tool-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-sub);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    .tool-grid { grid-template-columns: 1fr; }
}
