@charset "utf-8";
/* ======================================================================
 ホームページ制作の実績（個別ページ）
 見出しは works.css の .dw-hero（制作実績一覧と同じ形）、
 タイルは works.css の .dw-tile を使い、ここでは本文まわりだけを整えます。
====================================================================== */

.dash-work .dwk-main { padding: 72px 0 96px; }

/* ---------- 本文と情報カード ---------- */
.dwk-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px 64px; align-items: start; }
.dwk-body { display: flex; flex-direction: column; gap: 48px; min-width: 0; }

.dash-front .dwk-visual img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid #ECECEC; background: #FFFFFF; }

.dwk-lead .df-eyebrow { margin-bottom: 14px; }
.dash-front .dwk-prose p { margin: 0 0 20px; color: var(--df-sub); font-size: 16px; line-height: 2; }
.dash-front .dwk-prose p:last-child { margin-bottom: 0; }
.dash-front .dwk-prose a { color: var(--df-red-text); text-decoration: underline; }
.dwk-prose--raw { max-width: 820px; margin: 0 auto; }
.dwk-prose--raw img { height: auto; border-radius: 12px; }

.dwk-info {
  position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px;
  border: 1px solid #ECECEC; border-top: 4px solid var(--df-red); border-radius: 14px; background: #FFFFFF;
  padding: 32px 32px 36px; box-shadow: 0 20px 48px rgba(20,20,20,.06);
}
.dwk-dl { display: flex; flex-direction: column; margin: 0; }
.dwk-dl > div { padding: 16px 0; border-bottom: 1px solid #F0F0F0; }
.dwk-dl > div:first-child { padding-top: 4px; }
.dash-front .dwk-dl dt { margin: 0; font-family: Inter, 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; color: #8A8A8A; }
.dash-front .dwk-dl dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; line-height: 1.7; color: var(--df-ink); }
.dash-front .dwk-visit { width: 100%; justify-content: center; margin-top: 4px; }
.dash-front .dwk-host { margin: -6px 0 0; text-align: center; font-size: 12px; color: #8A8A8A; word-break: break-all; }

/* ---------- 制作したページ（スクリーンショット） ---------- */
.dwk-shots-wrap { margin-top: 96px; }
.dwk-shots { column-count: 2; column-gap: 24px; }
.dwk-shot {
  display: block; break-inside: avoid; margin: 0 0 24px; overflow: hidden;
  border: 1px solid #ECECEC; border-radius: 12px; background: #FFFFFF;
  transition: transform .6s var(--df-ease), box-shadow .6s var(--df-ease);
}
.dwk-shot:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(20,20,20,.10); }
.dash-front .dwk-shot img { width: 100%; height: auto; display: block; }

/* ---------- 前後の実績 ---------- */
.dwk-nav { margin-top: 96px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.dwk-nav__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid #ECECEC; border-radius: 12px; background: #FFFFFF; transition: border-color .3s, box-shadow .6s var(--df-ease), transform .6s var(--df-ease); }
.dwk-nav__item:hover { border-color: var(--df-ink); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,20,20,.08); }
.dwk-nav__item--next { text-align: right; }
.dwk-nav__label { font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .15em; color: var(--df-red-text); }
.dwk-nav__title { font-weight: 700; font-size: 16px; line-height: 1.6; }

/* ---------- ほかの制作実績 ---------- */
.dwk-related__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 960px) {
  .dwk-grid { grid-template-columns: minmax(0, 1fr); }
  .dwk-info { position: static; order: -1; }
  .dwk-shots { column-count: 1; }
}
@media (max-width: 767px) {
  .dash-work .dwk-main { padding: 48px 0 72px; }
  .dwk-info { padding: 24px 20px 28px; }
  .dwk-shots-wrap, .dwk-nav { margin-top: 64px; }
  .dwk-nav { grid-template-columns: minmax(0, 1fr); }
  .dwk-nav__item--next { text-align: left; }
  .dwk-nav .df-btn { order: 3; }
}

/* ---------- 実際のトップページ（PC＋スマホ）を、画面の中でスクロールして見せる ---------- */
.dwk-views { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; justify-content: center; }
.dwk-view { margin: 0; }
.dwk-view--pc { flex: 1 1 640px; min-width: 0; max-width: 940px; }
.dwk-view--sp { flex: 0 0 300px; max-width: 100%; }
.dash-front .dwk-view figcaption { margin-top: 14px; text-align: center; font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .2em; color: #8A8A8A; }

.dwk-browser { border: 1px solid #D6D6D6; border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: 0 24px 56px rgba(20,20,20,.10); }
.dwk-browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #F1F1F1; border-bottom: 1px solid #E2E2E2; }
.dwk-browser__dots { display: flex; gap: 7px; }
.dwk-browser__dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.dwk-browser__dots i:nth-child(2) { background: #FEBC2E; }
.dwk-browser__dots i:nth-child(3) { background: #28C840; }
.dwk-browser__url { flex: 1; min-width: 0; padding: 5px 14px; border-radius: 999px; background: #FFFFFF; font-family: Inter, sans-serif; font-size: 12px; color: #5A5A5A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dwk-phone { padding: 12px; border-radius: 42px; background: #141414; box-shadow: 0 24px 56px rgba(20,20,20,.18); }

.dwk-scroll { overflow-y: auto; overscroll-behavior: contain; background: #FFFFFF; }
.dwk-scroll:focus-visible { outline: 3px solid rgba(211,47,47,.5); outline-offset: -3px; }
.dwk-scroll--pc { height: 640px; }
.dwk-scroll--sp { height: 600px; border-radius: 30px; scrollbar-width: none; }
.dwk-scroll--sp::-webkit-scrollbar { display: none; }
.dash-front .dwk-scroll img { width: 100%; height: auto; display: block; max-width: none; }

@media (max-width: 767px) {
  .dwk-scroll--pc { height: 440px; }
  .dwk-scroll--sp { height: 520px; }
  .dwk-view--sp { flex-basis: 280px; }
}

/* ---------- システム開発の実績（本文をそのまま、読みやすく整える） ---------- */
.dash-front .dwk-title--long { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.4; }

.dwk-prose--article { min-width: 0; }
.dash-front .dwk-prose--article h2 { margin: 56px 0 16px; padding-left: 16px; border-left: 4px solid var(--df-red); font-size: 28px; font-weight: 900; line-height: 1.5; color: var(--df-ink); }
.dash-front .dwk-prose--article h3 { margin: 44px 0 14px; font-size: 22px; font-weight: 900; line-height: 1.5; color: var(--df-ink); }
.dash-front .dwk-prose--article h4 { margin: 36px 0 12px; font-size: 18px; font-weight: 900; line-height: 1.6; color: var(--df-ink); }
.dash-front .dwk-prose--article > :first-child { margin-top: 0; }
.dash-front .dwk-prose--article ul, .dash-front .dwk-prose--article ol { margin: 0 0 20px; padding-left: 1.5em; color: var(--df-sub); line-height: 2; }
.dash-front .dwk-prose--article ul { list-style: disc; }
.dash-front .dwk-prose--article ol { list-style: decimal; }
.dash-front .dwk-prose--article li { margin-bottom: 4px; }
.dash-front .dwk-prose--article img { max-width: 100%; height: auto; display: block; margin: 24px auto; border: 1px solid #ECECEC; border-radius: 10px; background: #FFFFFF; }
.dash-front .dwk-prose--article figure { margin: 24px 0; }
.dash-front .dwk-prose--article figure img { margin: 0 auto; }
.dash-front .dwk-prose--article figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: #8A8A8A; }
.dash-front .dwk-prose--article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid #D6D6D6; color: #5A5A5A; }
.dash-front .dwk-prose--article blockquote p { color: #5A5A5A; }
.dash-front .dwk-prose--article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.dash-front .dwk-prose--article th, .dash-front .dwk-prose--article td { padding: 12px 14px; border-bottom: 1px solid #ECECEC; text-align: left; vertical-align: top; }
.dash-front .dwk-prose--article .wp-block-columns { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
.dash-front .dwk-prose--article .wp-block-column { flex: 1 1 240px; min-width: 0; }
.dash-front .dwk-prose--article iframe { max-width: 100%; border: 0; border-radius: 10px; }

.dash-front .dwk-sub-link { display: block; text-align: center; margin-top: -4px; font-weight: 700; font-size: 14px; color: var(--df-red-text); }
.dash-front .dwk-sub-link:hover { text-decoration: underline; }
