/* ==========================================================================
   Shopify 業種別デモポータル
   設計方針: 主役は4枚のスクリーンショット。枠は徹底して静かに保ち、
             色はデモ側に全部持たせる（モノクロのシェル＋色のある中身）。
   ========================================================================== */

:root {
  --paper:      #FBFAF7;
  --paper-sunk: #F3F1EA;
  --ink:        #14130F;
  --muted:      #5C584D;
  --line:       #E0DCD2;
  --line-soft:  #ECE9E1;

  --wrap:  1120px;
  --gutter: 24px;

  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
             "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;   /* 日本語の詰め */
  -webkit-font-smoothing: antialiased;
}

/* 日本語の折り返し制御。「見え／方」のような孤立文字を作らない。 */
h1, h2, h3, p, li, dd, dt {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */

.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.masthead__name { font-weight: 700; }
.masthead__role { color: var(--muted); }

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px); }

.hero__title {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.34;
  letter-spacing: 0.005em;
  font-weight: 700;
  max-width: 20em;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 2;
}

.hero__key {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 34em;
  font-size: 15px;
}

/* インラインのパスワード表示。装置にしない。 */
.pw {
  font-family: var(--font-mono);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  margin-inline: 2px;
}

.copy-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 4px;
  margin-inline-start: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--ink); }

/* ----------------------------------------------------------------- demos */

.demos { padding-block: clamp(28px, 4vw, 44px) clamp(56px, 8vw, 96px); }

.demos__grid {
  display: grid;
  gap: clamp(48px, 6vw, 76px) clamp(32px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .demos__grid { grid-template-columns: 1fr 1fr; }
}

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
}

.demo__shot {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper-sunk);
  aspect-ratio: 16 / 10;
  transition: border-color 0.2s ease;
}
.demo__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.demo__name {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 23px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.demo__industry {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 3点は「箇条書き」ではなく仕様表として組む。マーカーを使わない。 */
.demo__points {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.demo__points li {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.demo__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.arrow {
  display: inline-block;
  vertical-align: -2px;
  margin-inline-start: 7px;
  transition: transform 0.2s ease;
}

/* カード全面をクリック領域にする。リンクはカードごとに1本だけ。 */
.demo__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.demo:hover .demo__shot { border-color: #B9B3A5; }
.demo:hover .demo__link .arrow { transform: translateX(4px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------- password */

.note {
  border-top: 1px solid var(--line);
  padding-block: clamp(32px, 4vw, 48px);
}
.note__grid {
  display: grid;
  gap: 8px 48px;
  grid-template-columns: 1fr;
  max-width: 62em;
}
@media (min-width: 760px) {
  .note__grid { grid-template-columns: minmax(0, 20em) minmax(0, 1fr); }
}
.note__lead { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.9; }
.note__body { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.95; }

/* ------------------------------------------------- 選択肢の広さを伝える節 */

.choice {
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 56px);
}
.choice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.choice__inner > div { max-width: 46em; }
.choice__title { margin: 0 0 10px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.7; font-weight: 700; }
.choice__body  { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.95; }

.choice__link {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
}
.choice__link:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------- cta */

.cta {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-block: clamp(44px, 6vw, 72px);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta__text { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.7; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}
.button:hover { opacity: 0.85; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

/* ------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
