@charset "utf-8";
/* ============================================================
   基本スタイル(共通)
============================================================ */
.container {
    padding: 15rem 0 0;
}

.works-list {
    display: grid;
}
.btn-more .btn {
    margin: 2rem 0 5rem; /* 上下の余白（お好みで） */
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #1860ad;
    color: #1860ad;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}
.btn-more .btn:hover {
    background: #1860ad;
    color: #fff;
}
/* ============================================================
 デザインします
============================================================ */
.about .section-title img {
    max-width: 300px;
    height: auto;
    display: block;
    position: relative; /* ← 必要 */
    z-index: 10;
}
.about .works-list {
    grid-template-columns: repeat(3, 1fr); /* 常に3列 */
    gap: 20px;
    margin-bottom: 5px;
    margin-top: -15px;
}
.about p {
    margin-bottom: 50px;
}
.about .btn-more {
    text-align: right;
}
/* ============================================================
 制作実績
============================================================ */
.works .section-title {
    position: relative;
    text-align: center;
    margin: 0 auto 6rem;
}
.works .section-title::before {
    content: "";
    position: absolute;
    top: 20%; /* タイトルの高さの中央に配置 */
    left: 50%;
    width: 100vw; /* ビューポート全幅 */
    height: 1px;
    background: #beddd6;
    transform: translateX(-50%); /* 中央基準に補正 */
}
.works .section-title h2 {
    display: inline-block;
    position: relative;
    background: #fff; /* 背景白で線を隠す */
    padding: 0 1em;
}
.works .section-title img {
    max-width: 160px;
    height: auto;
    display: block;
}
/* グリッド配置 */
.works-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 30px;
    margin-bottom: 50px;
}
/* 各アイテム */
.work-item img {
    width: 100%;
    margin-bottom: 10px;
}
.work-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.work-meta .new {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #e63946;
    font-weight: bold;
}
.work-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}
.work-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
/* ボタン */
.works .btn-more {
    text-align: center; /* 子要素を中央寄せ */
}
/* ============================================================
   レスポンシブ（スマホ対応）
============================================================ */
@media (max-width: 768px) {
    .works-list {
        padding: 0 5px;
        margin-bottom: 50px;
    }
    .about .works-list {
        grid-template-columns: 1fr;
    }
    .about {
        display: flex;
        flex-direction: column;
    }
    .about > * {
        order: 0;
    }
    .about .section-title {
        order: 1;
    }
    .about .about-text {
        order: 2;
    }
    .about .works-list {
        order: 4;
    }
    /* about-text の中だけで並び替えを追加 */
    .about .about-text {
        display: flex;
        flex-direction: column;
    }
    .about .about-text p {
        order: 1;
		margin-top: 30px;
		line-height: 1.8;
    }
    .about .about-text .btn-more {
        order: 2;
    }
    .works .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    .works .work-title {
        letter-spacing: 0.15em;
		font-size: 15px;
    }
}