/* 制作サンプル集（ポートフォリオ）
   色：紙・台・墨・藍の4つを軸に。作品の色を主役にするため、まわりは静かに。 */
:root {
  --paper: #F2F3EF;
  --stage: #E3E7E2;
  --surface: #FFFFFF;
  --ink: #1C2529;
  --sub: #4B575D;
  --line: #CBD2CC;
  --accent: #244F87;
  --accent-deep: #1A3B66;
  --accent-tint: #E4EBF3;
  --focus: #D9961A;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --gut: 20px;
  --max: 1200px;
  color-scheme: light;
}
@media (max-width: 400px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  /* 日本語の改行：文節の区切り（wbr）以外では折り返さない */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  font-feature-settings: "palt" 0;
}
@media (min-width: 960px) { body { font-size: 17px; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 243, 239, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(203, 210, 204, .7);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.top__name { margin: 0; font-family: var(--mincho); font-weight: 800; font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.top__name a { color: var(--ink); text-decoration: none; }
.top__nav { display: flex; gap: 18px; }
.top__nav a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 10px 0; white-space: nowrap; }
.top__nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 400px) {
  .top__name { font-size: 15px; letter-spacing: .02em; }
  .top__nav { gap: 12px; }
  .top__nav a { font-size: 13px; }
}

/* ---------- ヒーロー ---------- */
.hero { padding: 44px 0 0; }
@media (min-width: 960px) { .hero { padding-top: 88px; } }
.hero__text { max-width: 760px; }
@media (min-width: 1000px) {
  .hero__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .hero__in .hero__notice { margin: 0; }
}
.hero__kicker { margin: 0 0 14px; font-size: 14px; color: var(--sub); letter-spacing: .04em; }
.hero__title {
  margin: 0;
  font-family: var(--mincho); font-weight: 800;
  font-size: clamp(31px, 8.6vw, 64px);
  line-height: 1.38; letter-spacing: .02em;
}
.hero__lead { margin: 22px 0 0; max-width: 40em; }
.hero__notice {
  margin: 26px 0 0; max-width: 44em;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  font-size: 15px; line-height: 1.8; color: var(--sub);
}
.hero__notice strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* 作品の棚：それぞれ実際の形（縦型の画面・ブラウザ・投稿・表）のまま、同じ棚に並べる */
.shelf {
  --sh: 176px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gut);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shelf__row {
  list-style: none; margin: 0; padding: 26px var(--gut) 0;
  display: flex; align-items: flex-end; gap: 18px;
  width: max-content; min-width: 100%;
  position: relative;
}
@media (min-width: 1000px) {
  .shelf { --sh: clamp(130px, calc((min(100vw, 1280px) - 2 * var(--gut) - 160px) / 6.2), 196px); margin-top: 56px; }
  .shelf__row { justify-content: center; gap: 20px; margin: 0 auto; padding-top: 30px; }
}
.shelf__item { scroll-snap-align: start; flex: none; }
.shelf__item a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); }
.shelf__cap {
  display: block; margin-top: 14px; padding-bottom: 22px;
  font-size: 13px; line-height: 1.5; white-space: nowrap;
}
.shelf__kind { display: block; color: var(--sub); font-size: 12px; }
.shelf__item a:hover .shelf__cap { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.shelf__item .obj { transition: transform .25s ease; }
.shelf__item a:hover .obj { transform: translateY(-6px); }
/* 棚板 */
.shelf { position: relative; background: linear-gradient(to bottom, transparent calc(100% - 78px), var(--stage) calc(100% - 78px)); }
@media (min-width: 1000px) { .shelf { background: linear-gradient(to bottom, transparent calc(100% - 78px), var(--stage) calc(100% - 78px)); } }

/* 形ごとの枠 */
.obj { display: block; position: relative; background: var(--surface); box-shadow: 0 18px 22px -16px rgba(28, 37, 41, .55), 0 0 0 1px rgba(28, 37, 41, .06); }
.obj img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shelf .obj { height: var(--sh); }
.obj--phone { aspect-ratio: 9 / 16; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--ink); }
.obj--tall { aspect-ratio: 390 / 844; }
.obj--post { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; }
.obj--sheet { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.obj--browser { border-radius: 8px; overflow: hidden; padding-top: 16px; background: #DADFDA; }
.obj--browser::before {
  content: ""; position: absolute; top: 5px; left: 8px; width: 34px; height: 6px;
  background: radial-gradient(circle at 3px 3px, #9AA49E 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x;
}
.shelf .obj--browser { aspect-ratio: auto; width: calc((var(--sh) - 16px) * 1.6); }
.obj--browser img { aspect-ratio: 16 / 10; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .shelf__item { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .shelf__item:nth-child(2) { animation-delay: .06s; }
  .shelf__item:nth-child(3) { animation-delay: .12s; }
  .shelf__item:nth-child(4) { animation-delay: .18s; }
  .shelf__item:nth-child(5) { animation-delay: .24s; }
  .shelf__item:nth-child(6) { animation-delay: .30s; }
  .shelf__item:nth-child(7) { animation-delay: .36s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 見出し ---------- */
.sec-head { margin-bottom: 8px; }
.sec-head__title {
  margin: 0; font-family: var(--mincho); font-weight: 800;
  font-size: clamp(27px, 6vw, 40px); line-height: 1.4; letter-spacing: .04em;
}
.sec-head__lead { margin: 12px 0 0; color: var(--sub); max-width: 40em; }

/* ---------- 作品 ---------- */
.works { padding: 72px 0 24px; }
@media (min-width: 960px) { .works { padding-top: 112px; } }
.work { padding: 40px 0 44px; border-top: 1px solid var(--line); margin-top: 20px; }
.sec-head + .work { margin-top: 40px; }
@media (min-width: 960px) {
  .work {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 64px; align-items: start; padding: 64px 0 72px; margin-top: 0;
  }
  .work__stage { position: sticky; top: 84px; }
}

.work__stage { background: var(--stage); border-radius: 14px; padding: 28px 18px; }
@media (min-width: 600px) { .work__stage { padding: 36px 32px; } }

/* 動画：縦型の画面＋見どころの場面 */
.work__stage--video { display: grid; gap: 22px; justify-items: center; }
.phone { margin: 0; width: min(290px, 74vw); border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 26px 30px -22px rgba(28, 37, 41, .6); }
.phone video { width: 100%; aspect-ratio: 9 / 16; background: var(--ink); object-fit: cover; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }
.scenes button {
  display: grid; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.scenes img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(28, 37, 41, .12); }
.scenes__t { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.3; }
.scenes__t::before { content: "▶ "; font-size: 10px; vertical-align: 1px; }
.scenes__l { font-size: 13px; line-height: 1.55; color: var(--ink); }
.scenes button:hover img { box-shadow: 0 0 0 3px var(--accent); }
@media (min-width: 960px) {
  .work__stage--video { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 28px; }
  .phone { width: min(300px, 26vw); }
  .scenes { grid-template-columns: 1fr; gap: 14px; }
  .scenes button { grid-template-columns: 70px 1fr; column-gap: 14px; align-items: center; }
  .scenes img { grid-row: span 2; }
  .scenes__t { align-self: end; margin-top: 0; }
  .scenes__l { align-self: start; }
}

/* HP・LP：ブラウザ＋スマホ */
.site { margin: 0; position: relative; padding-bottom: 12%; }
.site__pc { width: 88%; }
.site__sp { position: absolute; right: 0; bottom: 0; width: 26%; border-width: 4px; border-radius: 16px; }
@media (min-width: 600px) { .site__sp { border-width: 5px; border-radius: 20px; } }

/* 画像の並び（バナー・リスト） */
.gallery { display: grid; gap: 12px; }
.gallery ul { list-style: none; margin: 0; padding: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; box-shadow: 0 12px 18px -14px rgba(28, 37, 41, .55), 0 0 0 1px rgba(28, 37, 41, .08); border-radius: 4px; }
.gallery button:hover img { box-shadow: 0 0 0 3px var(--accent); }
.gallery__row--fit { display: flex; gap: 12px; align-items: flex-start; }
.gallery__row--fit li { flex: var(--r) 1 0; min-width: 0; }
.gallery__row--strip { display: flex; gap: 10px; }
.gallery__row--strip li { flex: 1 1 0; min-width: 0; }
@media (max-width: 599px) {
  .gallery__row--strip { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: thin; }
  .gallery__row--strip li { flex: 0 0 31%; scroll-snap-align: start; }
}

/* 説明 */
.work__body { padding-top: 28px; }
@media (min-width: 960px) { .work__body { padding-top: 4px; } }
.work__kind { margin: 0; font-size: 14px; color: var(--sub); }
.work__no { font-weight: 700; color: var(--accent); margin-right: .8em; letter-spacing: .04em; }
.work__title {
  margin: 6px 0 0; font-family: var(--mincho); font-weight: 800;
  font-size: clamp(23px, 5.4vw, 31px); line-height: 1.45; letter-spacing: .02em;
}
.spec { margin: 24px 0 0; border-top: 1px solid var(--line); }
.spec > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; font-weight: 700; color: var(--sub); line-height: 1.6; }
.spec dd { margin: 2px 0 0; line-height: 1.8; }
@media (min-width: 600px) {
  .spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; }
  .spec dt { padding-top: 3px; }
  .spec dd { margin: 0; }
}
.points { margin: 22px 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 1.4em; margin-top: 8px; line-height: 1.75; }
.points li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent);
}
.btn--main { background: var(--accent); color: #fff; }
.btn--main:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--sub { background: transparent; color: var(--accent); }
.btn--sub:hover { background: var(--accent-tint); }
@media (max-width: 599px) { .actions .btn { flex: 1 1 100%; } }
.work__note { margin: 18px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }

/* ---------- できること ---------- */
.services { padding: 72px 0; background: var(--surface); }
@media (min-width: 960px) { .services { padding: 104px 0; } }
.svc { margin: 28px 0 0; border-top: 1px solid var(--line); }
.svc__row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc dt { font-family: var(--mincho); font-weight: 800; font-size: 20px; line-height: 1.5; }
.svc dd { margin: 6px 0 0; max-width: 42em; }
.svc__price { margin: 10px 0 0; font-size: 15px; color: var(--sub, #4b575d); }
.svc__price b { color: var(--ink, #1c2529); font-weight: 700; white-space: nowrap; }
.svc__terms { list-style: none; margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; font-size: 15px; }
.svc__terms b { font-weight: 700; margin-right: .2em; }
@media (min-width: 760px) {
  .svc__row { display: grid; grid-template-columns: 15em 1fr; gap: 24px; padding: 26px 0; }
  .svc dd { margin: 0; }
}

/* ---------- 進め方 ---------- */
.flow { padding: 72px 0; }
@media (min-width: 960px) { .flow { padding: 104px 0; } }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 28px 64px; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--mincho); font-weight: 800; font-size: 20px;
}
.steps h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.5; }
.steps p { margin: 6px 0 0; color: var(--sub); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps li:last-child::after { display: none; }
}

/* ---------- ご連絡 ---------- */
.contact { padding: 0 0 80px; }
.contact__in { }
.contact__in > * { max-width: none; }
.contact .sec-head__title { padding-top: 56px; border-top: 1px solid var(--line); }
.contact__list { margin: 24px 0 0; display: grid; gap: 12px; }
.contact__list > div { background: var(--surface); border-radius: 12px; padding: 18px 20px; }
.contact__list dt { font-size: 13px; font-weight: 700; color: var(--sub); }
.contact__list dd { margin: 4px 0 0; font-size: 17px; line-height: 1.75; }
@media (min-width: 960px) { .contact__list { grid-template-columns: repeat(3, 1fr); gap: 16px; } .contact__list > div { padding: 22px 24px; } }

/* ---------- フッター ---------- */
.foot { background: var(--ink); color: #DCE2DE; padding: 40px 0 48px; font-size: 13px; line-height: 1.8; }
.foot p { margin: 6px 0 0; max-width: 60em; }
.foot .foot__fict { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }

/* ---------- 画像を大きく見る ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #101518; color: #fff;
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: rgba(16, 21, 24, .8); }
.viewer__bar, .viewer__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); }
.viewer__count { margin: 0; font-size: 14px; color: #C8D0CC; }
.viewer button, .viewer__orig {
  min-height: 46px; padding: 8px 18px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.viewer button:hover, .viewer__orig:hover { background: rgba(255, 255, 255, .12); }
.viewer__orig { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.viewer__fig { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: 0 var(--gut); }
.viewer__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; align-self: center; background: #fff; }
.viewer__cap { padding: 10px 0 0; font-size: 14px; text-align: center; color: #E4E9E6; }

.hero__pdf { margin: 18px 0 0; font-size: 15px; }
.hero__pdf a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
