/* ============================================================
Variables
============================================================ */ 
:root {
  --ink: #1a1a1a;
  --gray-dark: #4d4d4d;
  --gray-mid: #767676;
  --gray-light: #999999;
  --border: #e5e5e5;
  --bg: #ffffff;
  --header-bg: #4a4a4a;
  --footer-bg: #3d3d3d;
}
/* ============================================================
Layout
============================================================ */
.wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 60px;
}
/* ============================================================
パンくず
============================================================ */
.breadcrumb {}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: 12px;
  color: var(--gray-mid);
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin: 0 8px;
  color: var(--gray-light);
}
.breadcrumb a {
  color: var(--gray-mid);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--ink);
}
.breadcrumb li[aria-current="page"] {
  color: var(--ink);
}
/* ============================================================
一覧ページ
============================================================ */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 70px 60px 60px;
  flex-wrap: wrap;
}
.hero-title {
  min-width: 260px;
}
.hero-title .eyebrow {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-title h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}
.hero-desc {
  border-left: 2px solid var(--ink);
  padding-left: 30px;
  padding-top: 6px;
  max-width: 800px;
}
.hero-desc p.lead {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.6;
}
.hero-desc p.sub {
  font-size: 14.5px;
  color: var(--gray-dark);
  line-height: 1.9;
}
/*** タブ ***/
.filters {
  display: flex;
  gap: 18px;
  padding: 0 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 30px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s ease;
}
.filter-btn.active {
  background: var(--ink);
  color: #fff;
}
.filter-btn:not(.active):hover {
  background: #f2f2f2;
}
/*** box ***/
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 30px;
  padding: 0 60px;
}
a.work-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.work-thumb {
  aspect-ratio: 4/2.8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.work-card:hover .work-thumb img {
  transform: scale(1.03);
}
.work-thumb .thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.work-tag {
  display: inline-block;
  background: #eee;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
  width: fit-content;
}
.work-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.work-card p {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.8;
}
.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 70px 0 90px;
}
.btn-view-all {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 22px 90px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.btn-view-all:hover {
  background: #000;
}
/* ============================================================
Hero(詳細ページ / WORKS)
============================================================ */
.works-hero {
  padding: 70px 0 0;
}
.works-hero .grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 10px 70px;
  align-items: start;
}
.works-hero .grid .hero-info {
  grid-column: 1;
  grid-row: 1;
}
.works-hero .grid .detail-img {
  grid-column: 2;
  grid-row: 1;
}
.works-hero .grid .device-stage {
  grid-column: 2;
  grid-row: 2;
  padding: 40px;
  background: #f4f4f4;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gray-mid);
  margin-bottom: 6px;
}
h1.title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.rule {
  width: 60px;
  height: 3px;
  background: var(--ink);
  margin-bottom: 34px;
}
.project-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 22px;
}
.project-desc p {
  font-size: 13.5px;
  line-height: 2;
  color: var(--gray-dark);
  margin-bottom: 20px;
}
.side-block {
  margin-top: 36px;
}
.side-label {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.ext-link {
  font-size: 13px;
  color: #2255cc;
  text-decoration: underline;
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 7px 18px;
  border: 1px solid #c9c9c9;
  border-radius: 20px;
  color: var(--gray-dark);
}
.device-stage {
  position: relative;
}
.detail-img + .device-stage {
  padding-top: 28px;
}
.detail-img + .device-stage::before {
  content: "制作動画";
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.detail-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
/* ============================================================
関連性のある制作事例
============================================================ */
.related {
  padding: 120px 0 90px;
}
.related h2 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 34px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
a.rel-card {
  display: block;
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.rel-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}
.rel-thumb {
  aspect-ratio: 4/2.6;
  position: relative;
  overflow: hidden;
}
.rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rel-body {
  padding: 20px 22px 26px;
}
.rel-tag {
  display: inline-block;
  font-size: 10.5px;
  color: var(--gray-mid);
  border: 1px solid #c9c9c9;
  border-radius: 16px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.rel-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.rel-body p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray-mid);
}
/* ============================================================
詳細ページ
============================================================ */
.cta {
  position: relative;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, .72), rgba(20, 20, 20, .55)), linear-gradient(120deg, #5b5b5b, #2c2c2c 60%, #4a4a4a);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.cta h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.9;
  margin-bottom: 34px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fff;
  padding: 16px 40px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.cta-btn:hover {
  background: #fff;
  color: #222;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.work-tags .work-tag {
  display: inline-block;
  margin: 0; 
}
.side-block .tag {
  display: inline-block;
  margin: 0 6px 6px 0;
}
.detail-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px; 
  background: #000;
}
.detail-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.detail-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.detail-streetview-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.detail-streetview-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* hero_imageの隣に表示する場合のラベルを「制作動画」から差し替え */
.detail-img + .device-stage.device-stage--streetview::before {
  content: "ストリートビュー";
}
.filter-btn {
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.filter-btn:active {
  transform: scale(0.96);
}
/* hero_imageが無い場合に動画をメインビジュアルとして表示（.detail-imgと同じ枠に配置） */
.works-hero .grid .device-stage.device-stage--main {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  padding: 0;
  background: none;
}
/* ============================================================
Responsive
============================================================ */
@media (max-width:1100px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-hero .grid {
    grid-template-columns: 1fr;
  }
  .works-hero .grid .hero-info, .works-hero .grid .detail-img, .works-hero .grid .device-stage {
    grid-column: 1;
    grid-row: auto;
  }
  .works-hero .grid .detail-img {
    order: 1;
  }
  .works-hero .grid .hero-info {
    order: 2;
  }
  .works-hero .grid .device-stage {
    order: 3;
  }
  .works-hero .grid .device-stage.device-stage--main {
    grid-column: 1;
    grid-row: auto;
    order: 1;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav ul {
    gap: 20px;
  }
  .wrap {
    padding: 0 24px;
  }
  .header-inner {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width:820px) {
  .hero {
    padding: 40px 24px 30px;
    gap: 24px;
  }
  .hero-title h1 {
    font-size: 44px;
  }
  .hero-desc {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--ink);
    padding-top: 16px;
  }
  .filters {
    padding: 0 24px;
    gap: 10px;
  }
  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  .works-grid {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .works-hero {
    padding: 40px 0 0;
  }
  .works-hero .grid {
    gap: 40px;
  }
}
@media (max-width: 767px) {
  #main {
    padding-top: 56px;
  }
}
@media (max-width:640px) {
  h1.title {
    font-size: 42px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
  }
  .iphone {
    width: 150px;
    right: -4%;
  }
  .works-hero .grid .device-stage {
    padding: 30px;
  }
  .works-hero .grid .device-stage.device-stage--main {
    padding: 0;
  }
}