/* assets/css/craft.css — 「WP Shed の鍛冶場」ページ専用
   方針: 整いすぎない。比喩は控えめに。装飾より、実際にあった仕事の話を中心にする。 */

.wps-craft { background: #f5f2ec; color: #272725; }

/* ---------- ヒーロー（画像は背景の飾りとして、控えめに） ---------- */
.wps-craft-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #16202e;
    color: #f5efe2;
}
.wps-craft-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 50%;
    opacity: .85;
    pointer-events: none;
}
.wps-craft-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #16202e 0%, rgba(22, 32, 46, .82) 42%, rgba(22, 32, 46, 0) 100%);
    pointer-events: none;
}
.wps-craft-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding-top: 28px;
    padding-bottom: 72px;
}
.wps-craft-hero .breadcrumb { background: transparent; border: 0; padding: 0; margin: 0; }
.wps-craft-hero .breadcrumb .container { max-width: none; padding: 0; }
.wps-craft-hero .breadcrumb-list { font-size: 13px; }
.wps-craft-hero .breadcrumb-item,
.wps-craft-hero .breadcrumb-item a { color: #8c97a8; }
.wps-craft-hero .breadcrumb-item a:hover { color: #f5efe2; }
.wps-craft-hero .breadcrumb-item + .breadcrumb-item::before { color: #4a5568; }
.wps-craft-hero .breadcrumb-item.is-current { color: #a7b1c2; font-weight: 400; }
body.wps-v2 .wps-craft-hero .breadcrumb { border: 0; background: transparent; }
.wps-craft-hero-text { margin-top: auto; max-width: 600px; }
.wps-craft-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #d9a24a; }
.wps-craft-title { margin: 0 0 18px; font-size: 48px; font-weight: 700; line-height: 1.45; color: #f5efe2; }
.wps-craft-lead { margin: 0; font-size: 16px; line-height: 2; color: #c9d1de; }

/* ---------- 本文（記事のように、左寄せの 1 カラム） ---------- */
.wps-craft-body-wrap { padding: 72px 0 80px; }
.wps-craft-col { max-width: 720px; }
.wps-craft-h2 { margin: 0 0 16px; font-size: 26px; font-weight: 700; line-height: 1.6; color: #272725; text-align: left; }
.wps-craft-body { margin: 0 0 1.2em; font-size: 16px; line-height: 2.05; color: #3a3a37; }
.wps-craft-body--strong { margin-top: -.2em; font-weight: 700; color: #272725; }

.wps-craft-h2 + .wps-craft-body { margin-top: 0; }
.wps-craft-body + .wps-craft-h2,
.wps-craft-list + .wps-craft-body { margin-top: 2.2em; }
.wps-craft-list { margin: 0 0 1.4em; padding: 0 0 0 1.3em; }
.wps-craft-list li { margin: 0 0 .5em; font-size: 16px; line-height: 2; color: #3a3a37; }
.wps-craft-list li::marker { color: #d9a24a; }
.wps-craft-example { margin: 56px 0 0; padding: 24px 28px 8px; border-left: 3px solid #d9a24a; background: #efebe3; }
.wps-craft-example p { margin: 0 0 1em; font-size: 15px; line-height: 2; color: #3a3a37; }
.wps-craft-example-label { font-size: 13px !important; font-weight: 700; letter-spacing: .06em; color: #8a5e14 !important; margin-bottom: .4em !important; }
.wps-craft-example-more a { color: #8a5e14; text-underline-offset: 3px; }

.wps-craft-closing { margin: 64px 0 12px; padding-top: 28px; border-top: 1px solid #d9d3c6; font-size: 15px; line-height: 1.9; color: #6b6a64; }
.wps-craft-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: 15px; }
.wps-craft-links { align-items: center; gap: 12px 16px; }
.wps-craft-links a { display: inline-block; padding: 12px 22px; border: 1px solid #272725; border-radius: 4px; color: #272725; font-weight: 700; text-decoration: none; }
.wps-craft-links a:hover { border-color: #8a5e14; color: #8a5e14; }
.wps-craft-links a:first-child { background: #16202e; border-color: #16202e; color: #f5efe2; }
.wps-craft-links a:first-child:hover { background: #8a5e14; border-color: #8a5e14; color: #fff; }

/* ---------- スマートフォン・タブレット ---------- */
@media (max-width: 768px) {
    .wps-craft-hero { min-height: 0; }
    .wps-craft-hero-img { opacity: .7; object-position: 72% 55%; }
    .wps-craft-hero::after { background: linear-gradient(180deg, rgba(22, 32, 46, .35) 0%, #16202e 100%); }
    .wps-craft-hero-inner { min-height: 0; padding-top: 24px; padding-bottom: 40px; }
    .wps-craft-hero .breadcrumb { margin-bottom: 120px; }
    .wps-craft-hero-text { max-width: none; }
    .wps-craft-title { font-size: 32px; }
    .wps-craft-lead { font-size: 15px; }
    .wps-craft-body-wrap { padding: 44px 0 72px; }
    .wps-craft-h2 { font-size: 22px; }
    .wps-craft-example { padding: 20px 20px 6px; }
    .wps-craft-closing { margin-top: 56px; }
}

/* ---------- 本文と、手描き風のイラストを、横に並べる ---------- */
.wps-craft-row { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 72px; }
.wps-craft-row .wps-craft-h2 { margin-top: 0; }
.wps-craft-row .wps-craft-text > .wps-craft-example { margin-top: 0; }
.wps-craft-fig { margin: 8px 0 0; }
.wps-craft-fig img { display: block; width: 100%; height: auto; }
.wps-craft-col { max-width: 600px; }

@media (max-width: 900px) {
    .wps-craft-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
    .wps-craft-fig { order: -1; margin: 0; max-width: 520px; }
}
