/* =========================
   基本設定
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
    line-height: 1.8;

    /* 薄いベージュの画用紙風 */
    background-color: #f7f3ea;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.15) 2px,
            transparent 2px,
            transparent 8px
        );
}

/* =========================
   メイン画像
========================= */

.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero img {
    max-width: 50%;
    height: auto;
    display: inline-block;
}

/* =========================
   コンテンツ領域
========================= */

.container {
    width: min(1000px, 100%);
    margin: 0 auto 60px;
}

.panel {
    background: #fff;

    padding: 30px;
    margin-bottom: 40px;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.12);
}

/* =========================
   テキスト
========================= */

.intro-text {
    margin-bottom: 30px;
}

h2 {
    margin-top: 0;
    color: #444;
    border-left: 8px solid #c8a76a;
    padding-left: 15px;
}

h3 {
    margin-top: 50px;
    color: #555;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

h4 {
    margin-bottom: 12px;
}

/* =========================
   表
========================= */

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.info-table th {
    width: 30%;
    background: #f5f5f5;
    text-align: left;
}

/* =========================
   紹介画像
========================= */

.content-image {
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
}

/* =========================
   受賞作品
========================= */

.award-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* =========================
   入選・佳作
========================= */

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =========================
   作品カード
========================= */

.work-card {
    text-align: center;
}

.work-card img {
    width: 100%;
    height: auto;

    background: #fff;
    padding: 8px;

    box-sizing: border-box;

    border: 1px solid #ddd;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.15);
}

.work-card p {
    margin-top: 12px;
    font-size: 0.95rem;
}


/* =========================
   スマホ対応
========================= */

@media (max-width: 768px) {

    .panel {
        padding: 20px;
    }

    .award-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

