/* 制作実績の詳細ページ用CSS：全ての works/work-XX.html で共通 */
:root {
  color-scheme: dark;
  --bg: #0b0911;
  --ink: #f8f7fb;
  --sub: #bcb8ca;
  --accent: #ff5533;
  --line: #282234;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Arial","Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
  margin: 0;
  line-height: 1.75;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #ff9a85;
  outline-offset: 4px;
}

.wrap {
  max-width: 1380px;
  margin: auto;
  padding: 0 clamp(24px,5vw,82px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.nav .brand {
  font-size: 13px;
  letter-spacing: .22em;
  font-weight: 800;
  text-decoration: none;
}

.nav a:last-child {
  font-size: 13px;
  text-decoration: none;
  color: var(--sub);
}

.eyebrow {
  color: #ff9a85;
  letter-spacing: .2em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  padding-block: clamp(70px,13vw,170px) clamp(50px,8vw,110px);
}

h1 {
  font-size: clamp(54px,11vw,150px);
  line-height: .91;
  letter-spacing: -.075em;
  margin: 18px 0 34px;
  max-width: 1000px;
  font-weight: 900;
}

.hero .desc {
  max-width: 650px;
  font-size: clamp(16px,2vw,23px);
  color: var(--sub);
}

.demo-label {
  display: inline-flex;
  margin: 24px 0 0;
  background: var(--accent);
  color: var(--bg);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .09em;
  font-weight: 800;
}

.cover {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(230px,1fr);
  gap: clamp(30px,8vw,110px);
  padding-block: clamp(55px,8vw,110px);
}

.section-label {
  font-size: 13px;
  color: #ff9a85;
  font-weight: 800;
  letter-spacing: .15em;
}

.grid h2 {
  font-size: clamp(30px,4vw,58px);
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 18px 0 24px;
}

.grid p {
  color: var(--sub);
}

.info {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0 0 24px;
}

.info dt {
  font-size: 12px;
  color: #a9908b;
  margin-bottom: 6px;
}

.info dd {
  margin: 0;
  font-weight: 700;
}

.notice {
  margin-block: 40px;
  background: #271511;
  border: 1px solid #783e32;
  color: #efd2cc;
  border-radius: 14px;
  padding: 20px 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
}

.back {
  display: inline-block;
  border: 1px solid #ad6455;
  text-decoration: none;
  border-radius: 100px;
  padding: 12px 18px;
  margin-top: 30px;
}

@media (max-width:700px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 64px;
  }
  h1 {
    font-size: clamp(46px,15vw,85px);
  }
  .nav .brand {
    letter-spacing: .1em;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ★【編集D6-5】ホタテン等の追加画像。元のWORKSカードのCSSは変更しない */
.detail-gallery {
  margin-block: clamp(40px, 6vw, 100px);
}
.detail-gallery h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 24px;
}
.detail-gallery img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}


/* =====================================================================
 * 【編集D7】実績詳細：スマホで画像を大きくし過ぎず、全体を表示
 * - poster / brochure / HOTATENの画像をトリミングしない
 * - フルサイズは各画像の下のリンクから別タブで確認可能
 * ===================================================================== */
.cover {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  max-height: min(68svh, 640px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  background: #16121d;
}
.detail-gallery img {
  width: 100%;
  max-width: 900px;
  max-height: 72svh;
  height: auto;
  object-fit: contain;
  background: #16121d;
}
.view-original {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  border-bottom: 1px solid currentColor;
  color: #ff9a85;
  font-size: 13px;
  text-decoration: none;
}
.view-original:hover { color: #ffffff; }
@media (max-width: 700px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 46px 34px; }
  h1 { font-size: clamp(36px, 10vw, 60px); line-height: 1; overflow-wrap: anywhere; }
  .cover { max-height: 55svh; border-radius: 10px; }
  .detail-gallery { margin-block: 34px; }
  .detail-gallery img { max-height: 60svh; }
}
