@charset "UTF-8";

/* ========================================
   施工事例 詳細
======================================== */
#works-detail { background: #f7f4ed; padding: 50px 0 90px; }
#works-detail .sec-inner { max-width: 860px; }

/* ヘッダー */
#works-detail .wd-header { margin-top: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(90,62,40,0.10); }
#works-detail .wd-header__category { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: #877266; padding: 4px 14px; border-radius: 3px; letter-spacing: 1px; margin-bottom: 16px; }
#works-detail .wd-header__title { font-family: 'Zen Old Mincho', serif; font-size: clamp(24px, 3vw, 32px); font-weight: 500; color: #3a2e24; letter-spacing: 2px; line-height: 1.6; margin-bottom: 20px; }
#works-detail .wd-header__meta { display: flex; gap: 24px; flex-wrap: wrap; }
#works-detail .wd-header__meta-item { display: flex; align-items: baseline; gap: 8px; }
#works-detail .wd-header__meta-item dt { font-size: 13px; font-weight: 700; color: #877266; letter-spacing: 0.5px; }
#works-detail .wd-header__meta-item dt::after { content: "："; }
#works-detail .wd-header__meta-item dd { font-size: 14px; color: #555; letter-spacing: 0.5px; }

/* 写真一覧 */
#works-detail .wd-photos { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
#works-detail .wd-photos__item { margin: 0; }
#works-detail .wd-photos__img { overflow: hidden; border-radius: 6px; background: #f0ece6; }
#works-detail .wd-photos__img img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
#works-detail .wd-photos__item:hover .wd-photos__img img { transform: scale(1.03); }
#works-detail .wd-photos__caption { font-size: 13px; color: #877266; letter-spacing: 0.8px; margin-top: 10px; padding-left: 2px; }

/* WP投稿の画像（エディタから追加された画像） */
#works-detail .wd-photos > * { margin: 0; }
#works-detail .wd-photos img { width: 100% !important; height: auto !important; max-width: 100% !important; display: block; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #f0ece6; overflow: hidden; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
#works-detail .wd-photos img:hover { transform: scale(1.03); }
#works-detail .wd-photos figure { margin: 0; }
#works-detail .wd-photos figcaption { font-size: 13px; color: #877266; letter-spacing: 0.8px; margin-top: 10px; padding-left: 2px; text-align: left; }
#works-detail .wd-photos p { margin: 0; }
#works-detail .wd-photos .wp-caption { width: 100% !important; max-width: 100% !important; margin: 0; padding: 0; }
#works-detail .wd-photos .wp-caption-text { font-size: 13px; color: #877266; letter-spacing: 0.8px; margin-top: 10px; padding-left: 2px; }

/* PDF資料 */
#works-detail .wd-pdf { margin-top: 48px; text-align: center; }
#works-detail .wd-pdf__link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 32px; border: 1px solid #877266; border-radius: 6px; font-size: 14px; font-weight: 500; color: #877266; background: #fff; letter-spacing: 1px; transition: background 0.3s ease, color 0.3s ease; }
#works-detail .wd-pdf__link:hover { background: #877266; color: #fff; }
#works-detail .wd-pdf__link svg { flex-shrink: 0; }
#works-detail .wd-pdf__link:hover svg { stroke: #fff; }

/* 戻るボタン */
#works-detail .wd-back { margin-top: 64px; text-align: center; }
#works-detail .wd-back a { display: inline-flex; align-items: center; gap: 15px; padding: 9px 45px; border: 1px solid #999; border-radius: 50px; font-size: 14px; font-weight: 500; color: #333; background-color: #fff; position: relative; letter-spacing: 1px; overflow: hidden; z-index: 1; transition: color 0.4s ease, transform 0.4s cubic-bezier(0.33,1,0.68,1), box-shadow 0.4s ease; }
#works-detail .wd-back a::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #333; border-radius: 50px; z-index: -1; transition: left 0.4s ease; }
#works-detail .wd-back a:hover::after { left: 0; }
#works-detail .wd-back a:hover { color: #fff; border-color: #333; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(60,40,20,0.16); }
#works-detail .wd-back a .arrow { position: absolute; right: 15px; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
#works-detail .wd-back a .arrow::before { content: ""; width: 7px; height: 7px; border-top: 1.5px solid #777; border-right: 1.5px solid #777; transform: rotate(45deg); transition: border-color 0.4s ease; }
#works-detail .wd-back a:hover .arrow { transform: translateX(5px); }
#works-detail .wd-back a:hover .arrow::before { border-color: #fff; }

/* ========================================
   ≤1024px
======================================== */
@media screen and (max-width: 1024px) {
#works-detail { padding: 50px 0 60px; }
#works-detail .wd-photos { gap: 24px; }
}

/* ========================================
   SP ≤767px
======================================== */
@media screen and (max-width: 767px) {
#works-detail { padding: 50px 0 50px; }
#works-detail .wd-header { margin-top: 36px; padding-bottom: 28px; }
#works-detail .wd-header__title { font-size: clamp(20px, 5.5vw, 26px); }
#works-detail .wd-photos { margin-top: 32px; grid-template-columns: 1fr; gap: 24px; }
#works-detail .wd-photos__caption { font-size: 12px; margin-top: 8px; }
#works-detail .wd-back { margin-top: 48px; }
#works-detail .wd-back a { padding: 9px 30px; font-size: 13px; }
}
