/* ============================================================
   PORTFOLIO — pastel × white × pixel
   ============================================================ */

:root {
  --white: #fdfdfd;
  --ink: #4a4655;
  --ink-soft: #8b8699;

  --pastel-blue: #cfe4f5;
  --pastel-lavender: #ddd2f0;
  --pastel-pink: #f5d3e7;
  --pastel-lemon: #f7f0c4;
  --pastel-mint: #c8ecd9;

  --accent: #9db8e8;
  --accent-sky: #6fcbe0;

  --radius: 22px;
  --header-h: 68px;

  --font-display: "Syne", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-accent: "Zen Maru Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.8;
}

::selection { background: var(--pastel-pink); }

/* ------------------------------------------------------------
   grain + blobs (image-1 palette, kept faint on white)
   ------------------------------------------------------------ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  will-change: transform;
}
.blob-a { width: 560px; height: 560px; top: -140px; left: -120px; background: var(--pastel-blue); }
.blob-b { width: 480px; height: 480px; top: 22%; right: -160px; background: var(--pastel-lemon); }
.blob-c { width: 520px; height: 520px; top: 55%; left: -180px; background: var(--pastel-pink); }
.blob-d { width: 460px; height: 460px; bottom: -160px; right: -100px; background: var(--pastel-mint); }

/* ------------------------------------------------------------
   progress bar
   ------------------------------------------------------------ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-lavender), var(--pastel-pink), var(--pastel-lemon), var(--pastel-mint));
  border-radius: 0 4px 4px 0;
}

/* ------------------------------------------------------------
   header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 100;
  background: rgba(253, 253, 253, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 134, 153, 0.1);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--accent-sky); }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------
   hero
   ------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) clamp(20px, 7vw, 90px) 15vh;
  position: relative;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: left;
}
.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-roles {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky)) no-repeat 0 100% / 100% 2px;
  transition: background-size 0.35s ease;
}
.hero-cta:hover { background-size: 30% 2px; }

/* masked line reveal (triggered by body.hero-in) */
.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--d, 0s);
}
body.hero-in .line-inner { transform: translateY(0); }

/* split letters (section titles) */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transition-delay: calc(var(--i) * 45ms);
}
[data-split].split-in .ch {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* WebGL liquid pastel field */
.hero-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* top-right meta: location + live clock */
.hero-meta {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  right: clamp(20px, 7vw, 90px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.7;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-hint i {
  width: 1px;
  height: 42px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-sky);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ------------------------------------------------------------
   marquee
   ------------------------------------------------------------ */
.marquee-wrap {
  position: relative;
}
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(139, 134, 153, 0.14);
  border-bottom: 1px solid rgba(139, 134, 153, 0.14);
  padding: 8px 0;
  background: rgba(253, 253, 253, 0.6);
}
.marquee-runner {
  position: absolute;
  bottom: 100%;
  right: clamp(20px, 8vw, 90px);
  width: clamp(48px, 6vw, 72px);
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 2;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.25em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-soft);
}
@keyframes marquee {
  from { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
  to { transform: translateX(0); }
}

/* ------------------------------------------------------------
   sections (common)
   ------------------------------------------------------------ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 150px) clamp(20px, 6vw, 40px);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(36px, 6vh, 60px);
}
.section-num {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--accent-sky);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  /* translateY(0) だと stacking context が残り、子要素の mix-blend-mode が背景まで届かない */
  transform: none;
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ------------------------------------------------------------
   about
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 70px);
}
.about-photo {
  position: relative;
  width: clamp(240px, 32vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 28px;
  box-shadow: 0 18px 44px rgba(157, 184, 232, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.about-photo-img.is-active {
  opacity: 1;
}
.about-text p { margin-bottom: 1.2em; }
.about-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 18px;
}
.about-name-en {
  display: block;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 6px;
}
.about-affiliation {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 1em;
}
.about-policy-img {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin-top: 56px;
  /* mp4 は透過できないため、白背景を下地に溶かして黒い線だけ見せる */
  mix-blend-mode: multiply;
}
.mini-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 14px;
}
.mini-title:first-child { margin-top: 0; }
.about-faq { display: flex; flex-direction: column; gap: 14px; }
.about-faq-item {
  background: rgba(207, 228, 245, 0.2);
  border: 1px solid rgba(139, 134, 153, 0.14);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.about-faq-q {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.about-faq-q::-webkit-details-marker { display: none; }
.about-faq-q::before { content: "Q."; color: var(--accent); flex-shrink: 0; }
.about-faq-q::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.about-faq-item[open] .about-faq-q::after { transform: rotate(-135deg); }
.about-faq-a {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.tool-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(74, 70, 85, 0.14);
  transition: transform 0.2s ease;
}
.tool-icon:hover { transform: translateY(-3px); }
.tool-ai { background: #330000; color: #ff9a00; }
.tool-ps { background: #001e36; color: #31a8ff; }
.tool-pr { background: #00005b; color: #9999ff; }
.tool-ae { background: #00005b; color: #9999ff; }
.tool-figma { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-claude { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-gemini { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-miro { background: #ffdd33; }
.tool-codex { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-openai { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-nextjs { background: #000; }
.tool-firebase { background: #fdfdfd; border: 1px solid rgba(139, 134, 153, 0.16); }
.tool-vercel { background: #000; }
.tool-html { background: #e34f26; color: #fff; }
.tool-css { background: #1572b6; color: #fff; }
.tool-js { background: #f7df1e; }
.wp-tools .tool-html,
.wp-tools .tool-css { font-size: 0.65rem; }
/* project info 内はひとまわり小さく */
.wp-tools { margin-bottom: 0; padding: 2px 0; }
.wp-tools .tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 5px 12px rgba(74, 70, 85, 0.12);
}
.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(207, 228, 245, 0.55), rgba(245, 211, 231, 0.55));
  border: 1px solid rgba(139, 134, 153, 0.12);
  transition: transform 0.2s ease;
}
.skill-tags li:hover { transform: translateY(-3px); }
.hobby-tags li {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  overflow: visible;
}
.hobby-tag-btn {
  font: inherit;
  font-size: 0.82rem;
  color: inherit;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(139, 134, 153, 0.12);
  transition: transform 0.2s ease;
}
.hobby-tag-btn:hover { transform: translateY(-3px); }
.hobby-note {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(calc(-50% + var(--note-shift, 0px))) translateY(6px);
  width: max-content;
  max-width: min(220px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(139, 134, 153, 0.22);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink, #333);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.hobby-note::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--note-shift, 0px));
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}
.hobby-tags li.is-open .hobby-note {
  opacity: 1;
  transform: translateX(calc(-50% + var(--note-shift, 0px))) translateY(0);
  pointer-events: auto;
}
@media (max-width: 640px) {
  .hobby-note { max-width: min(180px, calc(100vw - 32px)); }
}
.history { list-style: none; }
.history li {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(139, 134, 153, 0.2);
  font-size: 0.92rem;
}
.history li span {
  font-family: var(--font-accent);
  color: var(--accent);
  flex-shrink: 0;
  width: 8.6em;
  white-space: nowrap;
}
.history li.history-award {
  font-weight: 700;
  color: var(--ink);
}
.history-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(139, 134, 153, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.history-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.award-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(207, 228, 245, 0.7), rgba(245, 211, 231, 0.7));
  border: 1px solid rgba(139, 134, 153, 0.14);
  color: var(--ink);
}

/* ------------------------------------------------------------
   works
   ------------------------------------------------------------ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: clamp(18px, 3vw, 30px);
}
.work-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.work-card-featured .work-thumb {
  aspect-ratio: 16 / 13;
}
.work-card-featured .work-thumb img {
  /* PC: 画像を右に寄せて左側を多めに見せる */
  object-position: 15% center;
}
.work-card-featured h3 {
  font-size: 1.5rem;
}
.work-card-featured p {
  font-size: 0.9rem;
}
.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(253, 253, 253, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(74, 70, 85, 0.14);
}
.work-card {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.work-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 14px;
}
.work-card p {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.work-sub {
  margin-top: 3px;
  line-height: 1.6;
}
.work-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(139, 134, 153, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 0.35s ease;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card:hover .work-thumb {
  transform: translateY(-8px) rotate(-1.2deg);
  box-shadow: 0 22px 40px rgba(157, 184, 232, 0.3);
}
.thumb-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(74, 70, 85, 0.45);
}

.project-arrow { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1.4); }
.work-modal-link:hover .project-arrow { transform: translate(4px, -2px); }

/* ------------------------------------------------------------
   work detail modal
   ------------------------------------------------------------ */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.work-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 70, 85, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.work-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(139, 134, 153, 0.14);
  box-shadow: 0 34px 80px rgba(74, 70, 85, 0.28);
  padding: clamp(28px, 5vw, 40px);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}
.work-modal.is-open .work-modal-panel {
  transform: translateY(0) scale(1);
}
.work-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(139, 134, 153, 0.2);
  background: rgba(253, 253, 253, 0.9);
  color: var(--ink-soft);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.work-modal-close:hover { transform: rotate(90deg); color: var(--ink); }
.work-modal-meta {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-sky);
  text-transform: uppercase;
}
.work-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 8px;
  padding-right: 30px;
}
.work-modal-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-top: 16px;
}
.work-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.work-modal-tags span {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(207, 228, 245, 0.55), rgba(245, 211, 231, 0.55));
  border: 1px solid rgba(139, 134, 153, 0.12);
  color: var(--ink-soft);
}
.work-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky)) no-repeat 0 100% / 100% 2px;
}
.work-modal-link.is-hidden { display: none; }

/* ------------------------------------------------------------
   contact
   ------------------------------------------------------------ */
#contact { text-align: center; }
#contact .section-head { justify-content: center; }
.sns-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sns-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(253, 253, 253, 0.8);
  border: 1px solid rgba(139, 134, 153, 0.16);
  box-shadow: 0 8px 24px rgba(157, 184, 232, 0.18);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1.4), box-shadow 0.25s ease;
}
.sns-btn em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.sns-btn:hover { transform: translateY(-6px); }
.sns-mail:hover { box-shadow: 0 18px 36px rgba(111, 203, 224, 0.4); }
.sns-x:hover { box-shadow: 0 18px 36px rgba(157, 184, 232, 0.4); }
.sns-gh:hover { box-shadow: 0 18px 36px rgba(232, 168, 204, 0.4); }

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */
.site-footer {
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 1px solid rgba(139, 134, 153, 0.12);
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.site-footer p { font-family: var(--font-accent); letter-spacing: 0.08em; }

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-bottom: 12vh; }
}
@media (max-width: 520px) {
  .hero-meta { display: none; }
  .scroll-hint { display: none; }
  .marquee { padding: 6px 0; }
  .marquee-track { font-size: 0.65rem; letter-spacing: 0.18em; }
  .about-photo { width: 240px; margin: 0 auto 24px; }
  .about-name { font-size: 1.4rem; margin-bottom: 12px; }
  .about-name-en { font-size: 0.75rem; }
  .about-affiliation { font-size: 0.8rem; line-height: 1.7; }
  .about-policy-img { width: 100%; }
  .history li { font-size: 0.78rem; gap: 10px; }
  .history li span { width: 7em; }
}
@media (max-width: 520px) {
  html { font-size: 15px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .work-card-featured { grid-column: span 2; grid-row: span 1; }
  .work-card-featured .work-thumb { aspect-ratio: 16 / 10; }
  /* スマホ: 縦長比率になり上部の余白が広く写り込むため、被写体のいる下側基準でクロップ */
  .work-card-featured .work-thumb img { object-position: center bottom; }
  .work-card-featured h3 { font-size: 1.1rem; }
  /* タイトル/サブタイトルの行数差でカードの見た目の高さがバラつかないよう
     2行分の高さを確保して隣同士の段を揃える */
  .work-card h3 { font-size: 0.82rem; margin-top: 8px; line-height: 1.4; min-height: 2.8em; }
  .work-card p { font-size: 0.7rem; line-height: 1.5; min-height: 2.25em; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.75rem; }
  .section-title { font-size: clamp(1.35rem, 7vw, 1.7rem); }
}

/* ------------------------------------------------------------
   work detail page (works/*.html)
   ------------------------------------------------------------ */
.wp {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 40px) 90px;
}
.wp-back {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.wp-back:hover { color: var(--accent); transform: translateX(-4px); }
.wp-head { position: relative; margin-bottom: 36px; }
/* 右上のQR + Playボタン(PCのみ。スマホはタグの下に通常配置) */
.wp-qr {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wp-qr img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  border: 1px solid rgba(139, 134, 153, 0.16);
  box-shadow: 0 10px 24px rgba(74, 70, 85, 0.12);
  background: #fff;
  padding: 6px;
}
.wp-qr-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(157, 184, 232, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-qr-play:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(157, 184, 232, 0.45); }
.wp-qr-note {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 130px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .wp-qr { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 18px; }
  .wp-qr img { width: 64px; height: 64px; }
  .wp-qr-note { max-width: none; width: 100%; text-align: left; margin-top: 4px; }
}
.wp-meta {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.wp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2;
  color: var(--ink);
}
.wp-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.wp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.wp-tags span {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(139, 134, 153, 0.16);
  color: var(--ink);
}
.wp-hero {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-pink));
  border: 1px solid rgba(139, 134, 153, 0.12);
  box-shadow: 0 24px 50px rgba(157, 184, 232, 0.25);
  margin-bottom: 64px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}
.wp-hero img {
  max-width: min(420px, 70%);
  max-height: 70%;
  object-fit: contain;
}
.wp-hero.wp-hero-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.wp-section { margin-bottom: 56px; }
.wp-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  padding: 8px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(157, 184, 232, 0.35);
}
.wp-section-num {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.wp-section p {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1em;
}
/* who/why/how の行 */
.wp-hiw {
  display: grid;
  gap: 10px;
  margin: 20px 0 4px;
  /* ブロックごと中央へ寄せる(行同士の左揃えは維持) */
  justify-content: center;
}
.wp-hiw > div { display: flex; align-items: center; gap: 12px; }
.wp-hiw-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  border-radius: 999px;
  padding: 4px 0;
  width: 4.6em;
  text-align: center;
  flex-shrink: 0;
}
.wp-hiw-text {
  font-size: 0.95rem;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 6px 18px;
}
.wp-hiw-tail { font-size: 0.85rem; color: var(--ink-soft); }

/* 3つの価値カード */
.wp-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.wp-cards3 > div {
  background: linear-gradient(135deg, rgba(207, 228, 245, 0.35), rgba(245, 211, 231, 0.35));
  border: 1px solid rgba(139, 134, 153, 0.12);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.wp-cards3 h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.wp-cards3 p { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

/* 週ごとのタイムライン(右向き矢印) */
.wp-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 24px;
}
.wp-tl-step {
  background: rgba(245, 199, 150, 0.4);
  padding: 16px 26px 16px 30px;
  /* 右端が突き出て左端がへこむ矢羽根型 */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.wp-tl-step:first-child {
  /* 先頭だけ左端はまっすぐ */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-left: 20px;
}
/* 同系色のまま右へ進むほど少しずつ濃く(オレンジ系) */
.wp-tl-step:nth-child(2) { background: rgba(245, 199, 150, 0.55); }
.wp-tl-step:nth-child(3) { background: rgba(245, 199, 150, 0.7); }
.wp-tl-step:nth-child(4) { background: rgba(245, 199, 150, 0.85); }
.wp-tl-week {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.wp-tl-step strong { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.wp-tl-step p { font-size: 0.76rem; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* デモ動画の埋め込み */
.wp-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139, 134, 153, 0.12);
  box-shadow: 0 18px 40px rgba(157, 184, 232, 0.22);
  margin-top: 28px;
}
.wp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* アプリ画面のステップフロー */
.wp-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
/* 4ステップのみのフロー(川柳なう。など)は4列均等にして左寄りの空白をなくす */
.wp-flow-4 { grid-template-columns: repeat(4, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
.wp-flow figure { text-align: center; }
.wp-flow img { width: 88%; height: auto; display: block; margin: 0 auto; }
/* 完成フィギュアはスマホ画面と高さ感が揃うように */
.wp-flow .wp-flow-fig img { width: 76%; }
.wp-flow figcaption {
  font-size: 0.75rem;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.6;
  /* 2行になるキャプションがあっても画像の下端が揃うように高さを確保 */
  min-height: 2.6em;
}
.wp-flow .wp-flow-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 6px;
}

/* 仕組みの3ステップ(テキスト) */
.wp-pipeline-box {
  position: relative;
  border: 1.5px dashed var(--accent);
  border-radius: 18px;
  padding: 28px 20px 20px;
  margin: 30px 0 6px;
}
.wp-pipeline-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  border-radius: 999px;
  padding: 4px 18px;
  box-shadow: 0 6px 14px rgba(157, 184, 232, 0.35);
}
.wp-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wp-pipeline span {
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 18px;
}
.wp-pipeline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  /* 自動で右へ流れていく様子を表現 */
  animation: wp-pipeline-flow 1.6s ease-in-out infinite;
}
.wp-pipeline em:nth-of-type(2) { animation-delay: 0.3s; }
@keyframes wp-pipeline-flow {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(4px); opacity: 1; }
}
@keyframes wp-pipeline-flow-vertical {
  0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.55; }
  50% { transform: rotate(90deg) translateX(4px); opacity: 1; }
}

/* 進化ステップ(画像 + 矢印) */
.wp-evo { margin-top: 24px; gap: clamp(10px, 2.4vw, 22px); }
.wp-evo em { font-size: 1.3rem; }

/* 透過背景の画像をカード枠なしで浮かせて配置 */
.wp-float {
  text-align: center;
  margin: 0;
}
.wp-float img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(74, 70, 85, 0.16));
}
.wp-float figcaption {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.wp-evo .wp-float { width: clamp(140px, 22vw, 200px); flex-shrink: 0; }
.wp-float-lg { max-width: 420px; margin: 0 auto 28px; }
.wp-float-lg img { filter: drop-shadow(0 22px 28px rgba(74, 70, 85, 0.2)); }
/* 四角い写真調の画像に角丸を付けたい場合 */
.wp-float-rounded img { border-radius: var(--radius); }
/* 白背景で撮影/レンダリングされた被写体が浮いて見えないよう、
   足元にぼかしたパステルの光だまりを敷いて馴染ませる */
.wp-float-grounded { position: relative; }
.wp-float-grounded::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 78%;
  height: 34%;
  background: radial-gradient(ellipse at center, rgba(207, 228, 245, 0.65), rgba(221, 210, 240, 0.35) 60%, transparent 78%);
  filter: blur(18px);
  z-index: -1;
}
/* 箱で囲わず、2枚の画像を左右に並べたい時用 */
.wp-float-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 24px;
}
.wp-float-row .wp-float { width: clamp(140px, 26vw, 220px); }

/* タイル素材+短いラベルを並べたデザインコンセプト一覧 */
.wp-tile-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}
.wp-tile-legend > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(207, 228, 245, 0.2);
  border: 1px solid rgba(139, 134, 153, 0.14);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
}
.wp-tile-legend img {
  width: 44px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.wp-tile-legend span {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
}

/* 小さめのカラーバリエーション一覧 */
.wp-color-variants {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 20px);
  margin: 24px 0;
}
.wp-color-variants img {
  width: clamp(78px, 12vw, 108px);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(74, 70, 85, 0.16));
}

/* 制作背景(きっかけ2カード + 結論) */
.wp-origin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.wp-origin-card {
  background: rgba(207, 228, 245, 0.25);
  border: 1px solid rgba(139, 134, 153, 0.14);
  border-radius: var(--radius);
  padding: 22px;
}
.wp-origin-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.wp-origin-link { position: relative; display: block; }
.wp-origin-link-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.wp-origin-link:hover .wp-origin-link-icon { transform: scale(1.1); }
.wp-origin-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
.wp-origin-img-illust {
  object-fit: contain;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
}
/* 文字入りの横長バナーは切り抜かず全体を見せる */
.wp-origin-img-banner { height: auto; }
.wp-origin-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 8px;
}
.wp-origin-card p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}
/* 背景→仮説のように、2枚のカードを矢印でつなぐ配置 */
.wp-origin-pair {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 20px;
}
.wp-origin-pair .wp-origin-card { flex: 1; }
.wp-origin-arrow {
  flex-shrink: 0;
  align-self: center;
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  animation: wp-pipeline-flow 1.6s ease-in-out infinite;
}
.wp-origin-conclusion {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--ink);
  line-height: 1.9;
  margin-top: 32px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(207, 228, 245, 0.55), rgba(221, 210, 240, 0.55));
  box-shadow: 0 14px 30px rgba(157, 184, 232, 0.22);
}
.wp-origin-conclusion span {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.85em;
  margin: 2px 0;
}

/* ランク棒グラフ + プロフィールUIの横並び */
.wp-rank-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 230px);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: 24px;
}
/* 数字ブロックを先に置きたい場合の列順逆転バリエーション */
.wp-rank-result { grid-template-columns: minmax(0, 220px) 1fr; }
.wp-rank-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 12px);
  height: 108px;
  padding: 0 10px;
}
.wp-rank-bar {
  flex: 1;
  max-width: 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.wp-rank-fill {
  width: 100%;
  height: var(--rank-h);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 5px 10px rgba(74, 70, 85, 0.12);
}
.wp-rank-bar em {
  display: block;
  font-style: normal;
  font-family: var(--font-accent);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}
.wp-rank-1 { background: #b7b3c2; }
.wp-rank-2 { background: #4fb8ac; }
.wp-rank-3 { background: #6f9fe0; }
.wp-rank-4 { background: #9c7fd4; }
.wp-rank-5 { background: linear-gradient(180deg, #f3cf6a, #d9a934); }

/* ブランドカラーバー */
.wp-color { margin: 14px auto 0; max-width: 360px; }
.wp-color-labels {
  display: flex;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.wp-color-labels span { white-space: nowrap; overflow: visible; }
.wp-color-labels span:first-child { text-align: left; }
.wp-color-labels span:last-child { text-align: right; }
.wp-color-labels span:not(:first-child):not(:last-child) { text-align: center; }
.wp-color-bar {
  display: flex;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(74, 70, 85, 0.14);
}
.wp-color-base { flex: 7; }
.wp-color-accent { flex: 1; }
.wp-color-sub { flex: 3; }
.wp-color-bar .wp-color-base { background: #f7941e; }
.wp-color-bar .wp-color-accent { background: #fb6f7a; }
.wp-color-bar .wp-color-sub { background: #fff200; }

/* 小見出し */
.wp-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 10px;
}
.wp-subhead::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-sky));
  flex-shrink: 0;
}

/* UIのこだわり(スクショ+注釈カード) */
.wp-ui {
  display: grid;
  gap: 44px;
  margin-top: 20px;
}
.wp-ui-row {
  display: grid;
  grid-template-columns: minmax(0, 230px) 1fr;
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
  position: relative;
}
/* UI上の該当箇所を指す点 */
.wp-ui-shot { position: relative; }
.wp-ui-marker {
  position: absolute;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(157, 184, 232, 0.3);
}
/* 指し示している場所だと分かるよう、点の周りにゆっくり広がるリングを添える */
.wp-ui-marker::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: wp-ui-pulse 1.8s ease-out infinite;
}
/* 指し線が見えないスマホでも対応が分かるよう、点と説明カードを同系色でペアリング */
.wp-ui-marker-b { background: var(--accent-sky); box-shadow: 0 0 0 4px rgba(111, 203, 224, 0.3); }
.wp-ui-marker-b::after { border-color: var(--accent-sky); }
@keyframes wp-ui-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
/* 丸から注釈カードへ伸びる線 */
.wp-ui-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wp-ui-lines line {
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.wp-ui-row-rev { grid-template-columns: 1fr minmax(0, 230px); }
.wp-ui-row-rev .wp-ui-shot { order: 2; }
.wp-ui-shot img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(74, 70, 85, 0.18));
}
.wp-ui-callouts { display: grid; gap: 14px; }
.wp-ui-callout {
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.75);
}
.wp-ui-callout h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.wp-ui-callout h4::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-sky));
  flex-shrink: 0;
}
.wp-ui-callout p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.9;
}
.wp-ui-callout-a { border-color: var(--accent); }
.wp-ui-callout-a h4::before { background: var(--accent); }
.wp-ui-callout-b { border-color: var(--accent-sky); }
.wp-ui-callout-b h4::before { background: var(--accent-sky); }

/* 比較表 */
.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9rem;
}
.wp-table th, .wp-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px dashed rgba(139, 134, 153, 0.25);
}
.wp-table thead th {
  font-family: var(--font-accent);
  font-size: 0.82rem;
}
.wp-table thead th:nth-child(2) { color: var(--ink-soft); }
.wp-table thead th:nth-child(3) {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  border-radius: 10px 10px 0 0;
}
.wp-table td:first-child {
  font-family: var(--font-accent);
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.wp-table td:nth-child(3) { font-weight: 700; color: var(--accent); background: rgba(157, 184, 232, 0.08); }

.wp-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* 1枚だけのギャラリーを中央寄せ */
.wp-gallery-center {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
/* スマホの画面キャプチャなど、縦長画像を小さめに並べたいギャラリー */
.wp-gallery-compact { grid-template-columns: repeat(3, 1fr); }
.wp-gallery-compact .wp-shot-logo img { padding: 10px 12px; }
/* 文字量の多いカード画像(3種類の打ち手など)は3列だと潰れるため、
   スマホでは1列に積む */
@media (max-width: 640px) {
  .wp-gallery-compact.wp-gallery-cards { grid-template-columns: 1fr; gap: 14px; }
}
.wp-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139, 134, 153, 0.12);
  background: #fff;
}
.wp-shot img {
  width: 100%;
  display: block;
  /* 縦横比の違う写真同士でも高さが揃うように統一トリミング */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.wp-shot-wide img { aspect-ratio: 16 / 9; }
/* スマホ画面全体を見せたい場合は切り抜かない */
.wp-rank-shot img { aspect-ratio: auto; object-fit: contain; }
/* ロゴなどは切り抜かずそのまま表示 */
.wp-shot-logo img {
  aspect-ratio: auto;
  object-fit: contain;
  padding: 18px 24px;
  box-sizing: border-box;
}
/* 画像自体に余白がなく、カード側の追加パディングが不要な場合 */
.wp-shot-flush img { padding: 0; }
/* 縦横比がバラバラな画面キャプチャを、グリッドの高さが揃うように統一 */
.wp-shot-uniform img { aspect-ratio: 6 / 5; }
.wp-shot-uniform-square img { aspect-ratio: 1 / 1; }
.wp-shot figcaption {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px 12px;
}
.wp-info {
  display: grid;
  gap: 0;
}
.wp-info > div {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(139, 134, 153, 0.2);
  font-size: 0.92rem;
}
.wp-info dt {
  font-family: var(--font-accent);
  color: var(--accent);
  flex-shrink: 0;
  width: 5em;
}
.wp-cta {
  text-align: center;
  margin-top: 70px;
}
.wp-back-bottom-wrap {
  text-align: center;
  margin-top: 70px;
}
.wp-back-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-back-bottom:hover {
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(157, 184, 232, 0.35);
}
/* 詳細ページ: タブレット幅 */
@media (max-width: 768px) {
  .wp-flow { grid-template-columns: repeat(3, 1fr); }
  .wp-flow-4 { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  .wp-timeline { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 詳細ページ: スマホ幅 */
@media (max-width: 520px) {
  .wp-gallery { grid-template-columns: 1fr; }
  .wp-gallery-compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wp-gallery-compact figcaption { font-size: 0.62rem; padding: 6px 4px; }
  /* つくる/発信する/売る: 見出し+説明の横並び行でコンパクトに */
  .wp-cards3 { grid-template-columns: 1fr; gap: 8px; }
  .wp-origin-grid { grid-template-columns: 1fr; gap: 14px; }
  .wp-origin-pair { flex-direction: column; }
  .wp-origin-arrow { animation-name: wp-pipeline-flow-vertical; }
  .wp-rank-layout { grid-template-columns: 1fr; }
  .wp-rank-shot { max-width: 200px; margin: 0 auto; }
  .wp-cards3 > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-align: left;
  }
  .wp-cards3 h3 {
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
    width: 4.2em;
  }
  .wp-cards3 p { font-size: 0.78rem; }
  .wp-cards3 p br { display: none; }

  /* who/why/how: PCと同じく行は左揃えのまま、ブロック全体だけ中央 */
  .wp-hiw > div { flex-wrap: wrap; row-gap: 6px; }
  .wp-hiw-text { font-size: 0.85rem; padding: 5px 14px; }

  /* タイムラインは縦1列のカードに(矢羽根は解除し、下向き矢印でつなぐ) */
  .wp-timeline { grid-template-columns: 1fr; gap: 18px; }
  .wp-tl-step,
  .wp-tl-step:first-child {
    clip-path: none;
    border-radius: 14px;
    padding: 14px 18px;
    position: relative;
  }
  .wp-tl-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid #d9924f;
  }

  /* アプリ画面フローは横スワイプのスライダーに(1→5と順に見られる) */
  .wp-flow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    /* ページ余白まで広げて端が切れて見える=スワイプできると分かる */
    margin-inline: -20px;
    padding-inline: 20px;
    padding-bottom: 10px;
    scrollbar-width: none;
    max-width: none;
  }
  .wp-flow::-webkit-scrollbar { display: none; }
  .wp-flow figure {
    flex: 0 0 60%;
    scroll-snap-align: center;
  }
  .wp-flow figcaption { min-height: 0; }
  /* スワイプできることが伝わるよう、表示時に一度だけ左へ軽くナッジ */
  .wp-section.in .wp-flow { animation: wp-flow-swipe-hint 1s ease-in-out 0.4s 1 both; }
  @keyframes wp-flow-swipe-hint {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-16px); }
    65% { transform: translateX(4px); }
  }

  /* パイプラインは縦並びに(矢印は90度回転させつつ流れるモーションを維持) */
  .wp-pipeline { flex-direction: column; gap: 6px; }
  .wp-pipeline em { animation-name: wp-pipeline-flow-vertical; }
  .wp-pipeline span { width: 100%; max-width: 260px; text-align: center; }
  /* 進化ステップ(画像+矢印)は横並びのまま、画像を小さくして収める */
  .wp-evo { flex-direction: row; gap: 4px; }
  .wp-evo em { animation-name: wp-pipeline-flow; font-size: 1rem; }
  .wp-evo .wp-float { width: 27vw; max-width: 100px; }
  .wp-evo .wp-float figcaption { font-size: 0.62rem; margin-top: 6px; }
  .wp-float-lg { max-width: 220px; }
  .wp-float-row { gap: 14px; }
  .wp-float-row .wp-float { width: 38vw; max-width: 160px; }

  /* 比較表はコンパクトに */
  .wp-table { font-size: 0.78rem; }
  .wp-table th, .wp-table td { padding: 9px 8px; }

  /* project info はラベルを上に積む */
  .wp-info > div { flex-direction: column; gap: 2px; }
  .wp-info dt { width: auto; }

  /* UIのこだわり: 画像は小さく左に固定し、説明カードと横並びで
     対応関係を分かりやすく保ったまま省スペース化する */
  .wp-ui { gap: 24px; }
  .wp-ui-row,
  .wp-ui-row-rev {
    grid-template-columns: minmax(0, 108px) 1fr;
    gap: 12px;
    align-items: start;
  }
  .wp-ui-row-rev .wp-ui-shot { order: 0; }
  .wp-ui-shot { max-width: none; width: 100%; margin: 0; }
  .wp-ui-marker { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(157, 184, 232, 0.3); }
  .wp-ui-marker-b { box-shadow: 0 0 0 3px rgba(111, 203, 224, 0.3); }
  /* 縦横比が変わるため線は非表示のまま(丸マーカーの色対応で代替) */
  .wp-ui-lines { display: none; }
  .wp-ui-callouts { gap: 8px; }
  .wp-ui-callout { padding: 10px 12px; }
  .wp-ui-callout h4 { font-size: 0.8rem; margin-bottom: 3px; }
  .wp-ui-callout h4::before { width: 7px; height: 7px; }
  .wp-ui-callout p { font-size: 0.74rem; line-height: 1.65; }

  .wp-hero { margin-bottom: 44px; }
  .wp-section { margin-bottom: 48px; }
  .wp-section p { font-size: 0.9rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .wp-pipeline em, .wp-ui-marker::after, .wp-flow { animation: none; }
  .reveal, [data-split] .ch, .line-inner { transition: none; opacity: 1; transform: none; }
}
