@charset "UTF-8";
/* =============================================
   Portfolio Detail Pages — Shared Base CSS
   ============================================= */
:root {
  --c-bg: #140000;
  --c-bg-beige: #f5c893;
  --c-bg-gray: #ececec;
  --c-surface: #ffffff;
  --c-border: #e8e6e1;
  --c-border-light: #f0eee9;
  --c-text: #262626;
  --c-text-sub: #464545;
  --c-text-hint: #9a9890;
  --c-text-white: #ffffff;
  --c-accent: #1a5c3a;
  --c-accent-light: #e8f2ec;
  --c-accent-mid: #2e7d50;
  --c-accent-orange: #d77d07;
  --c-blue: #1a3a5c;
  --c-blue-light: #e8eef5;
  --c-coral: #8c3020;
  --c-coral-light: #f5ece8;
  --c-warn-bg: #f6f0ee;
  --c-warn-border: #f0cbbf;
  --c-warn-text: #7a2e1a;
  --c-tag-bg: #f0eee9;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  /* outline: 1px solid blue; */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
}

h2 {
  color: var(--c-text-white);
  font-family: "Noto Serif JP", serif;
  font-size: 36px;
  letter-spacing: 0.07em;
  text-align: center;
  display: inline-block;
  position: relative;
  margin-top: 40px;
  margin-left: -32px;
  text-align: left;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #a40101;
  position: absolute;
  top: 110%;
  left: 0;
}

/* ---- Layout ---- */
.l-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.c-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}

.c-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-nav__logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-decoration: none;
}

.c-nav__links {
  display: flex;
  gap: 24px;
}

.c-nav__link {
  font-size: 13px;
  color: var(--c-text-sub);
  text-decoration: none;
}

.c-nav__link:hover {
  color: var(--c-text);
}

.c-nav__link.is-active {
  color: var(--c-accent);
  font-weight: 500;
}

/* ---- Breadcrumb ---- */
.c-bc {
  font-size: 12px;
  color: var(--c-text-hint);
  padding: 20px 0 0;
}

.c-bc a {
  color: var(--c-text-hint);
  text-decoration: none;
}

.c-bc a:hover {
  color: var(--c-text-sub);
}

.c-bc span {
  margin: 0 6px;
}

/* ---- Page Header ---- */
.p-head {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}

.p-head__code {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  background: var(--c-accent-light);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.p-head__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.p-head__sub {
  font-size: 15px;
  color: var(--c-text-white);
  margin-top: 24px;
}

/* ---- Zone A ---- */
.zone-a {
  margin-bottom: 0;
}

.zone-a__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.zone-a__flag::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ---- Demo Block ---- */
.c-demo {
  display: grid;
  grid-template-columns: 1fr 0px;
  /* gap: 24px; */
  align-items: start;
  margin-bottom: 24px;
}

.c-demo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.3s;
}

.c-demo__btn:hover {
  background: var(--c-accent-mid);
}

.c-demo__btn svg {
  width: 16px;
  height: 16px;
}

.c-demo__captures {
  display: flex;
  gap: 16px;
}

.c-demo__cap {
  /* flex: 1; */
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  /* aspect-ratio: 16/9; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--c-text-hint);
  padding: 12px;
}

.c-demo__cap--pc {
  width: 65%;
  /* aspect-ratio: 16/9; */
  /* flex: 2; */
}

.c-demo__cap--sp {
  width: 25%;
  padding: 12x;
  /* aspect-ratio: 9/16; */
  /* flex: 2; */
}

.c-demo__cap--pc .image-mockup {
  width: 100%;
  object-fit: cover;
}

.c-demo__cap--sp .image-mockup {
  width: 100%;
  object-fit: cover;
}

.c-demo__screenshot {
  background: var(--c-border-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.c-demo__ss-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--c-border);
}

.c-demo__ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.c-demo__ss-block {
  background: var(--c-border);
  border-radius: 3px;
}

.screenshot-box {
  margin-bottom: 24px;
}

.screenshot-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.screenshot-list__item {
  width: 32%;
  height: 200px;
  background-color: #d3d3d3;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden; /* 追加 */
  cursor: zoom-in; /* 追加 */
  padding: 8px;
}

.screenshot-list__item::after {
  content: "screenshot";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-screenshot {
  width: 100%;
  height: auto;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .screenshot-list {
    flex-direction: column;
  }
  .screenshot-list__item {
    max-width: 440px;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    margin: 0 auto 12px;
  }
}
/* ---- Tags ---- */
.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.c-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  background: var(--c-tag-bg);
  color: var(--c-text-sub);
}

.c-tag--blue {
  background: var(--c-blue-light);
  color: var(--c-blue);
  border-color: #c0d0e0;
}

.c-tag--green {
  background: var(--c-accent-light);
  color: var(--c-accent);
  border-color: #b0d4be;
}

.c-tag--coral {
  background: var(--c-coral-light);
  color: var(--c-coral);
  border-color: #e0c0b0;
}

/* ---- Intent block ---- */
.c-intent {
  /* border-left: 3px solid var(--c-accent); */
  padding: 14px 20px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 16px;
}

.intent-title {
  /* margin-bottom: 4px; */
  font-weight: bold;
}

.intent-description {
  padding-left: 2em;
  padding-right: 2em;
  margin-bottom: 20px;
}

.acc-keyword {
  padding-left: 2em;
  padding-right: 2em;
}

/* ---- Cases ---- */
.c-cases {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 0;
}

.c-cases__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
  margin-bottom: 12px;
}

.c-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.c-cases__item {
  font-size: 18px;
  color: var(--c-text);
  background: #fae3c7;
  border: 1px solid rgb(233, 152, 3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  line-height: 1.4;
}

/* ---- Fold ---- */
.c-fold {
  position: relative;
  margin: 36px 0 28px;
  text-align: center;
}

.c-fold::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1.5px dashed var(--c-bg-beige);
}

.c-fold__label {
  position: relative;
  display: inline-block;
  background: var(--c-bg);
  padding: 0 12px;
  font-size: 14px;
  color: var(--c-text-white);
  font-weight: 600;
}

/* ---- Zone B ---- */
.zone-b__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text-hint);
  margin-bottom: 16px;
}

.zone-b__flag::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-border);
}

/* ---- Accordion ---- */
.c-acc {
  border-radius: var(--radius-lg);
  /* overflow: hidden; */
  margin-bottom: 8px;
}

.c-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--c-surface);
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-lg); /* ← 追加 */
}

.c-acc__head:hover {
  /* background: var(--c-bg); */
}

.c-acc__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
}

.c-acc__title:hover {
  opacity: 0.7;
}

.c-acc__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-acc__hint {
  font-size: 13px;
  color: var(--c-text-sub);
}

.c-acc__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.c-acc__icon::before,
.c-acc__icon::after {
  content: "";
  position: absolute;
  background: var(--c-text-sub);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.c-acc__icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-acc__icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-acc.is-open .c-acc__icon::after {
  opacity: 0;
}

.c-acc__body {
  display: none;
  padding: 18px;
  background: var(--c-bg-gray);
  border-top: 1px solid var(--c-border);
}

.c-acc.is-open .c-acc__body {
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 開いているときはheadの下角丸を消す */
.c-acc.is-open .c-acc__head {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---- Impl list ---- */
.c-impl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-impl__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.c-impl__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.c-impl__dot--pri {
  background: var(--c-accent);
}

.c-impl__dot--sec {
  background: #5a8ab0;
}

.c-impl__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
}

.c-impl__note {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-top: 3px;
  line-height: 1.5;
}

/* ---- Warn ---- */
.c-warn {
  background: var(--c-warn-bg);
  border: 2px solid var(--c-warn-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
}

.c-warn__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-coral);
  margin-bottom: 6px;
}

.c-warn__text {
  font-size: 14px;
  color: var(--c-warn-text);
  line-height: 1.6;
}

/* ---- CMS table ---- */
.c-cms {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-cms__row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 16px;
}

.c-cms__row:last-child {
  border-bottom: none;
}

.c-cms__key {
  color: var(--c-text);
  width: 180px;
  flex-shrink: 0;
}

.c-cms__val {
  color: var(--c-text);
}

/* ---- Metrics ---- */
.c-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 16px;
}

.c-meta__row:last-child {
  border-bottom: none;
}

.c-meta__key {
  color: var(--c-text);
}

.c-meta__val {
  color: var(--c-text);
  font-weight: 500;
}

/* ---- Footer ---- */
.c-footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 12px;
  color: var(--c-text-hint);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .c-demo {
    grid-template-columns: 1fr;
  }
  .c-demo__screenshot {
    display: none;
  }
  .c-cases__grid {
    grid-template-columns: 1fr;
  }
  .p-head__title {
    font-size: 20px;
  }
}
/* ============================================================
   スクリーンショット モーダル
   ============================================================ */
/* サムネイルホバー */
.screenshot-list__item {
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.screenshot-list__item::after {
  content: "拡大して見る";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screenshot-list__item:hover::after {
  opacity: 1;
}

.screenshot-list__item img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.screenshot-list__item:hover img {
  transform: scale(1.03);
}

/* モーダルオーバーレイ */
.ss-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ss-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* モーダル内コンテンツ */
.ss-modal__inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.ss-modal.is-open .ss-modal__inner {
  transform: scale(1);
}

.ss-modal__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

/* 閉じるボタン */
.ss-modal__close {
  position: absolute;
  top: -16px;
  top: -44px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ss-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 前後ナビ */
.ss-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.ss-modal__nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.ss-modal__prev {
  left: -56px;
}

.ss-modal__next {
  right: -56px;
}

/* 枚数インジケーター */
.ss-modal__counter {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: bold;
  margin-top: 12px;
  letter-spacing: 0.1em;
}

/* SP対応 */
@media screen and (max-width: 768px) {
  .ss-modal__prev {
    left: 0;
  }
  .ss-modal__next {
    right: 0;
  }
  .ss-modal__close {
    top: -12px;
    right: -4px;
  }
}
/* サムネイルリスト */
/* 画像をアイテム全体に合わせる */
.screenshot-list__item img.image-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-list__item:hover img.image-screenshot {
  transform: scale(1.03);
}

/* ホバーオーバーレイ */
.screenshot-list__item::after {
  content: "拡大して見る";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  /* right: 0;
  bottom: 0; */
  left: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  /* z-indexで画像の上に確実に乗せる */
  z-index: 1;
}

.screenshot-list__item:hover::after {
  opacity: 1;
}/*# sourceMappingURL=demo-style.css.map */