@charset "utf-8";

/* math.html 専用スタイル */
.math-wrapper {
    padding: 60px 20px;
    background-color: #fff; /* 文章を読みやすくするため白背景 */
    line-height: 1.8;
}

/* エッセイセクション */
.intro-essay {
    max-width: 800px;
    margin: 0 auto 60px;
    color: #2d3748;
}

.intro-essay h1 {
    font-size: 2rem;
    color: #1a365d; /* ポートフォリオのテーマカラー */
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 20px;
}

/* 本文のデザイン（読みやすさ重視） */
.essay-content {
    font-family: "Noto Serif JP", "MS Mincho", "Hiragino Mincho ProN", serif; /* 明朝体で情緒を出す */
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.essay-content p {
    margin-bottom: 1.5rem;
}

/* 引用部分（ドラマのセリフなど） */
.essay-content blockquote {
    position: relative;
    margin: 40px 0;
    padding: 30px;
    background: #f7fafc;
    border-left: 4px solid #3182ce;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

.essay-content blockquote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: #e2e8f0;
    font-family: serif;
    line-height: 1;
}

/* 区切り線 */
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
    margin: 60px 0;
}

/* ツール選択セクション */
.simulator-selection {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.simulator-selection h2 {
    font-family: sans-serif;
    color: #1a365d;
    margin-bottom: 30px;
}

/* works-grid と work-card は works.css と共通、もしくは以下を追記 */
.simulator-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.sim-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.sim-card:hover {
    transform: translateY(-5px);
    border-color: #3182ce;
}

.sim-card h3 {
    margin: 15px 0;
    font-size: 1.25rem;
}

.sim-card p {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

/* math.css に追記 */

.eyecatch-image {
    max-width: 600px;  /* 読みやすさを考慮し、文章の横幅より少し狭く */
    margin: 0 auto 30px; /* 中央寄せにし、下に余白を作る */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.eyecatch-image img {
    width: 100%;       /* 親要素（eyecatch-image）の幅いっぱいまで広げる */
    height: auto;      /* 縦横比を維持 */
    display: block;    /* 画像の下の隙間を消す */
}

/* 画像のキャプション */
.image-caption {
    font-size: 0.85rem;
    color: #718096;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* リンクボタンを少し明るめの青に */
.btn-sm {
    display: inline-block;
    padding: 8px 16px;
    background: #3182ce;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-sm:hover {
    background-color: #3182ce;
}

/* 引用符の色を少しポップに */
.essay-content blockquote::before {
    color: #bee3f8; /* 明るい水色 */
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .intro-essay h1 {
        font-size: 1.5rem;
    }
    .essay-content {
        font-size: 1rem;
    }
}