/*
Theme Name: Nishimura Works
Description: 西村ワークスのWeb制作・アプリ開発の依頼用サイト（自作テーマ）
Version: 0.1.0
Text Domain: nishimura-works
*/

/* ===== 色・寸法の定義（ここだけ変えれば全体の印象が変わる） ===== */
:root {
  --color-primary: #1f3a5f;       /* 見出し・ヘッダー・フッター */
  --color-primary-soft: #4a5d78;  /* 本文の補助色 */
  --color-accent: #f08c00;        /* ボタン・強調 */
  --color-accent-deep: #ad5500;   /* 文字・ボタン用の濃いオレンジ（白と約5:1。明るい #f08c00 は飾り用） */
  --color-accent-soft: #fff3e0;   /* アクセントの薄い背景 */
  --color-link: #1a47b8;          /* 本文中のリンク（下線なしでも分かる青。ホバーは --color-accent-deep） */
  --color-app: #1a47b8;           /* アプリの種類ラベルの文字（青。サイトはオレンジ） */
  --color-app-soft: #d6e4ff;      /* アプリの種類ラベルの背景 */
  --color-bg: #fbfaf7;            /* ページ背景 */
  --color-surface: #ffffff;       /* カード背景 */
  --color-text: #26323f;          /* 本文 */
  --color-line: #e6e2d9;          /* 区切り線 */
  --color-on-primary: #ffffff;    /* 濃い背景の上の文字 */
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --radius: 16px;
  --content-width: 1120px;
  --space-1: 8px;                 /* 余白の基準（8pxの倍数で揃える） */
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --color-stage: #e9edf3;         /* 画面写真の背景 */
}

*, *::before, *::after { box-sizing: border-box; }
/* 見出しは行の長さをそろえ、本文は1文字だけの行を避ける。日本語の改行は自然な折り返しに任せ、気になる所だけ <br> を入れる */
h1, h2, h3, .cs__title { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; } /* 固定ヘッダー（64px）の下に移動先を出す */
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
main :is(p, dd) a:not([class]), .sample-visit a { color: var(--color-link); text-decoration: none; }
main :is(p, dd) a:not([class]):hover, .sample-visit a:hover { color: var(--color-accent-deep); }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3 { color: var(--color-primary); line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--content-width), 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--white { background: var(--color-surface); }
.section__label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--color-primary-soft);
}
.section__label::before { content: ""; width: 28px; height: 2px; background: var(--color-primary-soft); opacity: .6; }
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.section__title em { font-style: normal; color: var(--color-accent-deep); }
.section__lead { color: var(--color-primary-soft); max-width: 720px; text-wrap: pretty; }
.note-draft { color: #b45309; font-size: .85em; font-weight: 700; }

/* ===== ヘッダー ===== */
.site-header { background: var(--color-primary); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.14), 0 4px 16px rgba(10,22,44,.32); } /* 紺の帯と同系色の区画が続いても、境目が見えるように */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--color-on-primary); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.site-logo__icon { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 0 5px rgba(255,255,255,.5)) drop-shadow(0 2px 3px rgba(0,0,0,.4)); } /* 紺の背景に埋もれないよう、白い縁取りの光と影を付ける */
.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--color-on-primary); text-decoration: none; font-size: .92rem; }
.site-nav a:hover, .site-footer a:hover { opacity: .75; }
.site-nav a.btn:hover { opacity: 1; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: var(--color-on-primary); border-radius: 8px; padding: 6px 12px; font: inherit; }

/* ===== ボタン ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 12px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn--accent { background: var(--color-accent-deep); color: #fff; }
.btn--accent:hover { filter: brightness(.94); }
.btn--ghost { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-line); }
.btn--small { padding: 8px 18px; font-size: .9rem; }

/* ===== ファーストビュー ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%); }
.hero__badge { display: inline-block; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 999px; padding: 6px 18px; font-size: .85rem; font-weight: 700; color: var(--color-primary); margin-bottom: 24px; }
.hero__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; margin-bottom: .5em; }
.hero__title em { font-style: normal; background: linear-gradient(transparent 62%, rgba(240,140,0,.35) 62%); }
.hero__text { max-width: 640px; color: var(--color-primary-soft); font-size: .95rem; } /* 見出しとの強弱をつけるため小さめ */
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--color-primary-soft); }
.hero__points li::before { content: "●"; color: var(--color-accent); font-size: .6em; margin-right: 8px; vertical-align: middle; }

/* ===== ヒーローの立体ビジュアル（CSSのみ。マウス・スクロール連動は hero3d.js） ===== */
.hero__inner { display: block; }
.hero__copy { position: relative; z-index: 1; max-width: 620px; }
/* ビジュアルは .hero 基準で右に大きく置き、文字側へ少し食い込ませる（文字は常に手前） */
.hero-visual { --hv-p: 0; position: absolute; z-index: 0; top: 50%; width: min(680px, 56vw); aspect-ratio: 1 / 1; right: max(-60px, calc((100% - var(--content-width)) / 2 - 80px)); transform: translateY(-50%); perspective: 1000px; isolation: isolate; pointer-events: none; }
.hero-visual__glow { position: absolute; inset: 6% 0 0 6%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(240,140,0,.22), rgba(240,140,0,0) 68%); filter: blur(18px); transform: scale(calc(1 + var(--hv-p) * .25)); }
.hero-visual__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(calc(var(--hv-p) * -6deg)); }
.hv-layer { position: absolute; will-change: transform; animation: hv-float-a 11s ease-in-out infinite; }
/* 浮遊は個別プロパティ translate / rotate で行い、JSが書き換える transform と干渉させない（斜め＋ゆっくり回転） */
@keyframes hv-float-a { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 9px -10px; rotate: 2.5deg; } 50% { translate: 2px -17px; rotate: 0deg; } 75% { translate: -9px -7px; rotate: -2.5deg; } }
@keyframes hv-float-b { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: -10px -8px; rotate: -3deg; } 50% { translate: -3px -16px; rotate: 0deg; } 75% { translate: 9px -6px; rotate: 3deg; } }
.hv-card { width: 56%; aspect-ratio: 1.1 / 1; left: 20%; top: 24%; border-radius: 28px; border: 1px solid rgba(31,58,95,.14); background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.5)); box-shadow: 0 34px 70px rgba(31,58,95,.2), inset 0 1px 0 #fff; backdrop-filter: blur(14px); animation-duration: 14s; }
.hv-card__dot { position: absolute; left: 14%; top: 15%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #ffb84d, var(--color-accent)); box-shadow: 0 8px 20px rgba(240,140,0,.35); }
.hv-card__line { position: absolute; left: 14%; height: 9px; border-radius: 999px; background: var(--color-line); }
.hv-card__line--a { width: 62%; top: 54%; }
.hv-card__line--b { width: 40%; top: 68%; opacity: .7; }
.hv-cube { aspect-ratio: 1; border-radius: 28%; }
.hv-cube--navy { width: 26%; right: 4%; top: 14%; transform: rotate(16deg); background: linear-gradient(145deg, #4a6b99, var(--color-primary) 60%, #14263f); box-shadow: 0 30px 50px rgba(31,58,95,.28), inset 10px 10px 22px rgba(255,255,255,.22), inset -12px -14px 24px rgba(0,0,0,.2); animation-name: hv-float-b; animation-duration: 12s; animation-delay: -3s; }
.hv-cube--cream { width: 20%; left: 6%; bottom: 14%; transform: rotate(-20deg); background: linear-gradient(145deg, #fff, var(--color-accent-soft) 55%, #f3d9ae); box-shadow: 0 28px 44px rgba(120,90,40,.2), inset 10px 10px 22px rgba(255,255,255,.9), inset -12px -14px 22px rgba(190,140,60,.18); animation-duration: 10s; animation-delay: -6s; }
.hv-orb { aspect-ratio: 1; border-radius: 50%; }
.hv-orb--accent { width: 14%; right: 16%; bottom: 17%; background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 22px 36px rgba(201,111,0,.3), inset -10px -10px 20px rgba(150,80,0,.25); animation-name: hv-float-b; animation-duration: 9s; animation-delay: -2s; }
.hv-orb--small { width: 8%; left: 8%; top: 16%; background: radial-gradient(circle at 30% 25%, #fff, #c9d4e6 55%, #7f93b3 100%); box-shadow: 0 16px 28px rgba(31,58,95,.18); animation-duration: 8s; animation-delay: -5s; }
.hv-ring { width: 30%; aspect-ratio: 1; right: 8%; bottom: 5%; border: 14px solid rgba(255,255,255,.95); border-right-color: rgba(31,58,95,.55); border-bottom-color: rgba(31,58,95,.25); border-radius: 50%; transform: rotateX(68deg) rotateZ(28deg); filter: drop-shadow(0 22px 16px rgba(31,58,95,.14)); animation: none; }

/* ===== 背景：薄いドット模様を、光のスポットがゆっくり移動して浮かび上がらせる ===== */
@property --sx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --sy { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(31,58,95,.45) 1.6px, transparent 1.8px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(circle 300px at var(--sx) var(--sy), #000, transparent); mask-image: radial-gradient(circle 300px at var(--sx) var(--sy), #000, transparent); animation: hero-spot 20s ease-in-out infinite alternate; }
/* 光のスポットは文字（上〜中ほど）を避け、下寄りを動く */
@keyframes hero-spot { 0% { --sx: 12%; --sy: 66%; } 50% { --sx: 55%; --sy: 92%; } 100% { --sx: 92%; --sy: 70%; } }
@media (min-width: 641px) { @keyframes hero-spot { 0% { --sx: 58%; --sy: 25%; } 50% { --sx: 88%; --sy: 75%; } 100% { --sx: 62%; --sy: 85%; } } } /* PCは文字が左にあるので、右半分（ビジュアル側）だけを動く */

/* ===== カード共通 ===== */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 28px; }
.card__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--color-primary-soft); background: var(--color-bg); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--color-primary-soft); font-size: .95rem; margin-bottom: 0; }
.card--sub { background: var(--color-bg); }
.thumb { aspect-ratio: 16 / 10; background: var(--color-bg); border: 1px dashed var(--color-line); border-radius: 10px; display: grid; place-items: center; color: var(--color-primary-soft); font-size: .8rem; margin-bottom: 14px; }
.card--link { display: block; color: inherit; text-decoration: none; padding: 16px 16px 20px; transition: transform .2s, box-shadow .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card--link h3 { font-size: 1.05rem; line-height: 1.5; margin: 0; min-height: 3em; text-wrap: balance; }
.thumb--img { display: block; position: relative; border: 0; overflow: hidden; padding: 0; }
.thumb--img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); pointer-events: none; }
.thumb--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .card--link { transition: none; } .card--link:hover { transform: none; } }
.card--link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.card--app { padding: 16px 16px 24px; }
.card--app .card__tag { margin-top: 4px; color: var(--color-app); background: var(--color-app-soft); }
.thumb--shot { position: relative; display: block; background: var(--color-stage); border: 0; overflow: hidden; }
.thumb--shot img { position: absolute; inset: 14px; margin: auto; max-width: calc(100% - 28px); max-height: calc(100% - 28px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(31,58,95,.28); }
.thumb--shot.thumb--empty { display: grid; place-items: center; border: 1px dashed var(--color-line); background: var(--color-bg); }
.more { margin-top: 32px; }

/* ===== 進め方 ===== */
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 900; font-size: 1.6rem; color: var(--color-accent-deep); }

/* ===== プロフィール ===== */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.profile__photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 6px solid var(--color-surface); box-shadow: 10px 10px 0 var(--color-accent); }
.profile__role { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--color-accent-deep); background: var(--color-accent-soft); border-radius: 999px; padding: 3px 14px; margin-bottom: 10px; }

/* ===== FAQ ===== */
.faq details { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 12px; padding: 16px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--color-primary); }
.faq details p { margin: 12px 0 0; color: var(--color-primary-soft); }

/* ===== フォーム ===== */
.form { max-width: 720px; margin-top: 32px; }
.form label { display: block; font-weight: 700; margin-bottom: 18px; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form textarea, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit;
  border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface);
}
.form .hp { position: absolute; left: -9999px; }
.required { color: #c0392b; font-size: .8em; margin-left: 6px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-top: 24px; font-weight: 700; }
.notice--ok { background: #e8f5e9; color: #1b5e20; }
.notice--ng { background: #fdecea; color: #b71c1c; }

/* ===== 下層ページ ===== */
.page-head { background: var(--color-surface); padding: 56px 0 40px; border-bottom: 1px solid var(--color-line); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }

/* ===== フッター ===== */
.site-footer { margin-top: 96px; background: var(--color-primary); color: var(--color-on-primary); padding: 48px 0 28px; font-size: .9rem; }
main:has(> .section--contact:last-child) + .site-footer { margin-top: 0; } /* 相談フォームの区画が下へ伸びるので、帯状の空きを作らない */
.site-footer a { color: var(--color-on-primary); }
.site-footer__brand { display: inline-flex; align-items: center; gap: 16px; font-size: 1.1rem; }
.site-footer__brand .site-logo__icon { width: 32px; height: 32px; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer small { display: block; margin-top: 28px; opacity: .7; }

/* ===== スマホ ===== */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { margin-inline: auto; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .site-footer { margin-top: 72px; }
  .hero { padding: 64px 0 calc(80vw + 10px); } /* 立体ビジュアルは箇条書きの下に置く */
  /* スマホは右下に大きく置き、文字より背面にする（文字は手前＋うっすらした縁取り） */
  .hero-visual { width: 88vw; top: auto; bottom: 10px; right: -16vw; transform: none; }
  .hero__title, .hero__text, .hero__points { text-shadow: 0 0 10px var(--color-accent-soft), 0 0 4px var(--color-accent-soft); }
  /* 箇条書きは半透明の白い下地に載せる。後ろの立体と重なっても、文字がにじまない */
  .hero__points { display: block; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.78); backdrop-filter: blur(6px); text-shadow: none; }
  .hero__points li + li { margin-top: 4px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary); padding: 12px 20px 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-layer, .hero__bg { animation: none !important; }
  .hv-layer { transform: none !important; }
}

/* ===== サンプルサイトの単体ページ ===== */
.sample-head { padding-bottom: var(--space-4); }
.sample-back { display: inline-block; margin-bottom: var(--space-2); font-size: .85rem; color: var(--color-primary-soft); text-decoration: none; }
.sample-back:hover { color: var(--color-accent-deep); }
.sample-head .section__label { margin-bottom: var(--space-2); }
.sample-head .section__lead { margin: var(--space-2) 0 0; font-size: .875rem; text-wrap: pretty; }
.sample-stage { background: var(--color-stage); padding: var(--space-5) 0; overflow: hidden; }
.sample-stage__inner { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: var(--space-4); align-items: start; }
.device { margin: 0; }
.device__frame { position: relative; background: #14253f; box-shadow: 0 24px 48px rgba(31,58,95,.25), 0 2px 6px rgba(31,58,95,.2); }
.device__screen { height: 560px; overflow-y: auto; overflow-x: hidden; background: #fff; scrollbar-width: thin; scrollbar-color: rgba(120,130,150,.7) transparent; overscroll-behavior: contain; }
.device__screen:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.device__screen img { display: block; width: 100%; height: auto; }
.device--pc .device__frame { border-radius: 12px; overflow: hidden; }
.device__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #1f3452; }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.device__bar span { flex: 1; max-width: 46%; height: 14px; margin-left: 14px; border-radius: 7px; background: rgba(255,255,255,.1); }
.device--sp .device__frame { border: 10px solid #14253f; border-radius: 38px; overflow: hidden; }
.device--sp .device__screen { height: 540px; border-radius: 28px; }
.device__notch { position: absolute; z-index: 2; top: 7px; left: 50%; width: 76px; height: 18px; margin-left: -38px; border-radius: 12px; background: #14253f; }
.device figcaption { margin-top: var(--space-2); text-align: center; font-size: .78rem; letter-spacing: .08em; color: var(--color-primary-soft); }
.device figcaption b { margin-right: var(--space-1); letter-spacing: .16em; color: var(--color-primary); }
.sample-foot { padding: var(--space-5) 0; text-align: center; }
.sample-foot .more { margin: 0; }
.sample-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-1); margin-top: var(--space-4); }
.sample-nav a { padding: 6px 16px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-primary); text-decoration: none; font-size: .8rem; line-height: 1.6; }
.sample-nav a:hover { border-color: var(--color-accent-deep); color: var(--color-accent-deep); }
.sample-note { margin: var(--space-4) auto 0; max-width: 560px; padding-top: var(--space-2); border-top: 1px solid var(--color-line); font-size: .74rem; line-height: 1.7; color: #7b8494; }
.device--tb .device__frame { border: 12px solid #14253f; border-radius: 26px; overflow: hidden; }
.device--tb .device__screen { height: 520px; border-radius: 12px; }
.device__cam { position: absolute; z-index: 2; top: -8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(255,255,255,.25); }
.sample-stage__inner--sp { grid-template-columns: 1fr; justify-items: center; }
.sample-stage__inner--sp .device--sp { width: 270px; }
@media (max-width: 860px) {
  .sample-stage__inner { grid-template-columns: 1fr; }
  .device--sp { width: 270px; margin: 0 auto; }
  .device--tb .device__screen { height: 400px; }
  .device--pc .device__screen { height: 420px; }
}

/* アプリの単体ページ（画面写真のギャラリー） */
.app-shots { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-4) + var(--space-5)); }
.app-shot { margin: 0; max-width: 100%; }
.app-shot img { display: block; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 16px 36px rgba(31,58,95,.25), 0 2px 6px rgba(31,58,95,.2); }
.app-shots__row { display: flex; justify-content: center; align-items: center; gap: var(--space-3); width: 100%; }
.app-shots__row .app-shot { flex-basis: 0; min-width: 0; }
.app-shots__row .app-shot img { width: 100%; }
@media (max-width: 720px) { .app-shots { gap: var(--space-5); } .app-shots__row { flex-direction: column; align-items: center; } .app-shots__row .app-shot { flex-basis: auto; } .app-shots__row .app-shot img { width: auto; } }
.app-shot figcaption { margin-top: var(--space-1); font-size: .85rem; font-weight: 700; text-align: center; color: var(--color-primary); }
.app-download { margin: var(--space-3) 0 0; }
.app-shots__empty { margin: 0; color: var(--color-primary-soft); }
.card--app h3 { min-height: 0; }


/* ===== トップの制作サンプル：奥行きのあるカルーセル（carousel.js）。JSがない場合は横スクロールの一列 ===== */
.carousel { --cw: min(560px, 70vw); margin-top: var(--space-4); position: relative; z-index: 2; } /* 球（z-index 0）より手前 */
.carousel__stage { display: flex; gap: var(--space-3); overflow-x: auto; padding: 8px max(20px, calc((100% - var(--cw)) / 2)) 24px; scroll-snap-type: x mandatory; }
.cs { flex: 0 0 var(--cw); display: block; scroll-snap-align: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 14px 14px 18px; text-decoration: none; color: var(--color-primary); box-shadow: 0 12px 26px rgba(31,58,95,.16); }
.cs__thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--color-bg); }
.cs__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs__kind { display: inline-block; padding: 1px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--color-accent-deep); background: var(--color-accent-soft); border-radius: 999px; }
.cs__kind--app { color: var(--color-app); background: var(--color-app-soft); }
.cs__title { display: block; margin-top: 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.cs__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sample-head .sample-stack { margin-top: var(--space-3); }
.sample-head .sample-kind { display: block; width: fit-content; margin-bottom: var(--space-2); font-size: .8rem; padding: 2px 14px; }
.sample-head h1 { margin-top: 0; }
.sample-stack__label { align-self: center; margin-right: var(--space-1); font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--color-primary); }
.sample-visit { margin: var(--space-2) 0 0; font-size: .8rem; }
.sample-visit a:hover { color: var(--color-accent-deep); }
.cs__stack i { font-style: normal; font-size: .72rem; line-height: 1.6; padding: 0 8px; color: var(--color-primary-soft); border: 1px solid var(--color-line); border-radius: 4px; }
.cs--app .cs__title { overflow-wrap: anywhere; }
.cs__thumb--shot { position: relative; background: var(--color-stage); }
.cs__thumb--shot img { position: absolute; inset: 14px; margin: auto; width: auto; height: auto; max-width: calc(100% - 28px); max-height: calc(100% - 28px); border-radius: 6px; box-shadow: 0 6px 18px rgba(31,58,95,.28); }
.cs__thumb--empty { display: grid; place-items: center; font-size: .8rem; color: var(--color-primary-soft); background: var(--color-bg); border: 1px dashed var(--color-line); }
.cs__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: .88rem; line-height: 1.7; color: var(--color-primary-soft); }
.carousel__ctl { display: none; }
.carousel.is-ready .carousel__stage { touch-action: pan-y; display: block; position: relative; overflow: hidden; perspective: 1400px; padding: 0; scroll-snap-type: none; outline-offset: -3px; }
.carousel.is-ready .cs { position: absolute; left: 50%; top: 36px; width: var(--cw); margin-left: calc(var(--cw) / -2); transform: translateX(calc(var(--d) * 64%)) translateZ(calc(var(--a) * -120px)) rotateY(calc(var(--d) * -12deg)) scale(calc(1 - var(--a) * .16)); filter: brightness(calc(1 - var(--a) * .05)); z-index: calc(10 - var(--a)); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .55s; will-change: transform; }
.carousel.is-ready .cs.is-center { box-shadow: 0 18px 36px rgba(31,58,95,.28); }
.carousel.is-ready .cs.is-far { visibility: hidden; }
/* 中央より右のカードは、左側が中央に隠れるので、文字を右寄せにして読めるようにする */
.carousel.is-ready .cs:not(.is-center):not([data-d^="-"]) { text-align: right; }
.carousel.is-ready .cs:not(.is-center):not([data-d^="-"]) .cs__stack { justify-content: flex-end; }
.carousel.is-ready .cs:not(.is-center) { cursor: pointer; }
.carousel.is-ready .carousel__ctl { display: flex; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--color-primary); background: var(--color-surface); color: var(--color-primary); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.carousel__btn:hover { background: var(--color-primary); color: #fff; }
.carousel__btn:focus-visible, .carousel__stage:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.carousel__count { display: inline-flex; align-items: center; gap: var(--space-2); font-size: .85rem; color: var(--color-primary-soft); }
.carousel__count b { font-weight: 700; color: var(--color-primary); }
.carousel__bar { width: 120px; height: 2px; background: var(--color-line); }
.carousel__bar u { display: block; height: 100%; background: var(--color-primary); transition: width .4s; }
#demos .more, #apps .more { margin-top: var(--space-4); text-align: center; }
.demos-note { margin: 18px auto 0; max-width: 48em; text-align: center; font-size: .85rem; color: rgba(255,255,255,.72); text-wrap: pretty; }
@media (max-width: 640px) {
  .carousel { --cw: 74vw; }
  .carousel.is-ready .cs { transform: translateX(calc(var(--d) * 70%)) translateZ(calc(var(--a) * -80px)) scale(calc(1 - var(--a) * .14)); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel.is-ready .cs, .carousel__bar u { transition: none; }
}

/* ===== 詳細ページのデバイス枠（洗練・上品）：既存の .device 系を上書きする ===== */
.sample-stage {
  background:
    radial-gradient(ellipse 60% 70% at 30% 20%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(circle, rgba(31,58,95,.10) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #eef1f6, #dfe5ee);
  padding: 72px 0 80px;
}
.sample-stage__inner { align-items: end; gap: 56px; }
.device { position: relative; }
.device__frame { box-shadow: 0 1px 1px rgba(20,37,63,.18), 0 8px 14px rgba(20,37,63,.12), 0 18px 32px rgba(20,37,63,.2); }
/* ガラスの反射（クリックは通す） */
.device__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }

/* ブラウザ */
.device--pc .device__frame { border-radius: 8px; background: #f3f5f9; border: 1px solid rgba(20,37,63,.22); }
.device__bar { height: 42px; padding: 0 16px; gap: 8px; background: linear-gradient(180deg, #fbfcfe, #eceff5); border-bottom: 1px solid rgba(20,37,63,.12); }
.device__bar i { width: 11px; height: 11px; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.device__bar i:nth-of-type(2) { background: #febc2e; }
.device__bar i:nth-of-type(3) { background: #28c840; }
.device__bar span { position: relative; flex: 1; max-width: 52%; height: 24px; margin: 0 auto; transform: translateX(-24px); border-radius: 8px; background: #e3e7ef; box-shadow: inset 0 0 0 1px rgba(20,37,63,.06); }
.device__bar span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: rgba(20,37,63,.28); }
.device__bar span::after { content: ""; position: absolute; left: 26px; top: 50%; width: 38%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(20,37,63,.14); }

/* スマホ */
.device--sp .device__frame { border: 9px solid #0f1b2e; border-radius: 44px; background: #0f1b2e; box-shadow: 0 0 0 1.5px #5b6a82, 0 0 0 3px #1a2a42, 0 8px 14px rgba(20,37,63,.14), 0 20px 34px rgba(20,37,63,.24); }
.device--sp .device__screen { border-radius: 35px; }
.device__notch { top: 9px; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #05090f; }
.device__notch::after { content: ""; position: absolute; right: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #34476a, #0a1220 70%); }
/* 側面のボタン */
.device--sp::before, .device--sp::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #3b4a63, #1a2a42); }
.device--sp::before { left: -4px; top: 92px; height: 26px; box-shadow: 0 44px 0 #2a3a54, 0 82px 0 #2a3a54; }
.device--sp::after { right: -4px; top: 130px; height: 62px; }

/* タブレット */
.device--tb .device__frame { border: 11px solid #0f1b2e; border-radius: 28px; background: #0f1b2e; box-shadow: 0 0 0 1.5px #5b6a82, 0 8px 14px rgba(20,37,63,.14), 0 20px 34px rgba(20,37,63,.24); }
.device--tb .device__screen { border-radius: 14px; }

.device figcaption { margin-top: var(--space-4); color: #5d6b82; }

/* ===== 制作サンプル一覧：業種の絞り込み（filter.js）。JSがなければ、ボタンは出さず全件を並べる ===== */
.filter { display: none; position: sticky; top: 64px; z-index: 20; background: rgba(251,250,247,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-line); }
.filter.is-ready { display: block; }
.filter__inner { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-3); padding-top: 14px; padding-bottom: 14px; }
.filter__chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.filter__chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-primary); font: inherit; font-size: .88rem; font-weight: 700; line-height: 1.5; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.filter__chip span { min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--color-bg); color: var(--color-primary-soft); font-size: .72rem; line-height: 1.7; text-align: center; transition: background .2s, color .2s; }
.filter__chip:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.filter__chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.filter__chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.filter__chip:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.section--list { padding-top: var(--space-4); }
.card--demo { transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s, box-shadow .2s; }
.card--demo .cs__kind { margin-top: 2px; }
.card--demo h3 { margin-top: 6px; min-height: 0; }
.card--demo .cs__stack { margin-top: 8px; }
@media (hover: hover) {
  .card--demo:hover { transform: translateY(-8px) scale(1.08); z-index: 2; box-shadow: 0 22px 44px rgba(31,58,95,.22); }
}
.card--app { transition: opacity .25s; }
.card--app.is-entering { animation: card-in .45s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.card--app[hidden] { display: none; }
.card--demo.is-leaving { opacity: 0; transform: scale(.96); }
.card--demo.is-entering { animation: card-in .45s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.card--demo[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .filter { position: static; }
  .filter__inner { padding-top: 12px; padding-bottom: 12px; }
  .filter__chips { gap: 6px; }
  .filter__chip { padding: 5px 12px; font-size: .8rem; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .card--demo, .filter__chip { transition: none; }
  .card--demo:hover { transform: none; }
  .card--demo.is-entering, .card--app.is-entering { animation: none; }
}

/* 各ページの冒頭文は、全幅で、少し小さく */
.page-head .section__lead { max-width: none; font-size: .875rem; margin-top: var(--space-3); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* スマホ幅だけで効く改行（PCでは改行しない）。文の途中ではなく、句点の後ろに入れて使う */
.br-sp { display: none; }
@media (max-width: 640px) { .br-sp { display: inline; } }

/* タイトルの語（スペース区切り）の途中では折り返さない。1語が行より長い場合だけ折り返す */
.nw { display: inline-block; max-width: 100%; overflow-wrap: break-word; text-wrap: wrap; }

/* iPhone SEなど、幅400px以下では、冒頭文を少し小さくして、1文を1行に収める */
@media (max-width: 400px) { .page-head .section__lead { font-size: .8rem; } }
@media (max-width: 370px) { .page-head .section__lead { font-size: .75rem; } }

/* ===== 全体の雰囲気（トップ）：立体感・動き・強弱。ヒーロー／カルーセルの雰囲気を、他の区画へ広げる試作 ===== */
/* 動き：スクロールで下からふわっと現れる（reveal.js が .rv を付け、画面に入ると .is-in） */
.rv { opacity: 0; translate: 0 28px; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms), translate .7s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms); }
.rv.is-in { opacity: 1; translate: 0 0; }
/* 立体感：カードに重ねた影と、触れたときの浮き上がり */
#flow .card, #faq details {
  box-shadow: 0 1px 2px rgba(31,58,95,.06), 0 10px 24px -8px rgba(31,58,95,.14), 0 28px 48px -24px rgba(31,58,95,.18);
}
/* 強弱：進め方は、濃い紺の区画にして流れを際立たせる */
.section--dark { position: relative; overflow: hidden; color: var(--color-on-primary); background: radial-gradient(900px 420px at 85% -10%, rgba(240,140,0,.14), transparent 60%), linear-gradient(160deg, #1f3a5f 0%, #14263f 100%); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__label { color: rgba(255,255,255,.75); }
.section--dark .section__label::before { background: rgba(255,255,255,.7); }
.section--dark .section__title em { color: #ffb84d; }
.section--dark .section__lead { color: rgba(255,255,255,.82); }
.section--dark .steps .card { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 40px -20px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.section--dark .steps .card p { color: rgba(255,255,255,.82); }
.section--dark .steps li::before { font-size: 3.2rem; line-height: 1; margin-bottom: 10px; color: transparent; -webkit-text-stroke: 1.5px #ffb84d; }
@media (min-width: 1000px) {
  .steps li { position: relative; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -24px; width: 24px; height: 2px; background: linear-gradient(90deg, #ffb84d, transparent); }
}

/* ===== お受けできる仕事：幅を広げ、大きな2枚のパネルで見せる ===== */
.section--wide { position: relative; overflow-x: clip; padding: 72px 0 80px; }
/* コンテンツ幅を超える飾り：画面の端まで届く大きな輪郭文字と、パネルからはみ出す図 */
.section--wide::before { content: "SERVICES"; position: absolute; left: -2vw; top: 18px; font-size: clamp(6rem, 17vw, 15rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(31,58,95,.055); white-space: nowrap; pointer-events: none; }
.section--wide > .container { position: relative; z-index: 1; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.svc { position: relative; border-radius: 28px; padding: 40px 44px 44px; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.svc > * { position: relative; z-index: 1; }
.svc h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; margin: 10px 0 .5em; }
@media (min-width: 861px) { .svc > :not(.svc__art):not(.svc__no):not(h3) { max-width: 70%; } }
.svc p { font-size: 1rem; max-width: 30em; }
.svc__no { position: absolute !important; z-index: 0 !important; right: 36px; top: -34px; font-size: clamp(7rem, 14vw, 12rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; pointer-events: none; }
.nw { white-space: nowrap; }
.svc__points { margin: 2px 0 26px; display: grid; gap: 10px; }
.svc__points li { position: relative; padding-left: 26px; font-weight: 700; font-size: .95rem; }
.svc__points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(145deg, #ffb84d, var(--color-accent)); box-shadow: 0 3px 8px rgba(240,140,0,.4); }
.svc .btn { margin-top: auto; }
.svc--web { background: linear-gradient(150deg, #ffffff 0%, var(--color-accent-soft) 100%); border: 1px solid var(--color-line); box-shadow: 0 2px 4px rgba(31,58,95,.05), 0 24px 48px -16px rgba(31,58,95,.2); }
.svc--web .svc__no { color: rgba(31,58,95,.07); }
.svc--web .svc__points li { color: var(--color-primary); }
.svc--web p { color: var(--color-primary-soft); }
.svc--app { color: #fff; background: radial-gradient(700px 360px at 90% -10%, rgba(240,140,0,.18), transparent 60%), linear-gradient(160deg, #24457a 0%, #14263f 100%); box-shadow: 0 30px 56px -20px rgba(20,38,63,.6); }
.svc--app h3 { color: #fff; }
.svc--app p { color: rgba(255,255,255,.84); }
.svc--app .svc__no { color: rgba(255,255,255,.08); }
.svc--app .svc__points li { color: #fff; }
.svc--app .card__tag { background: rgba(255,255,255,.14); color: #fff; }
@media (hover: hover) { .svc:hover { transform: translateY(-8px); } }
/* 右下の飾り（CSSのみ）：Webはブラウザ、アプリはウィンドウを、傾けて浮かべる */
.svc__art { position: absolute !important; z-index: 0 !important; right: -64px; bottom: -44px; width: 42%; aspect-ratio: 1.25 / 1; pointer-events: none; }
/* 飾りは、幅（.svc__art）に比例して縮む。--u は、飾りの幅が229px（PCの2列表示）のときの1px分 */
.svc__art { container-type: inline-size; }
.sv-browser, .sv-window { --u: calc(100cqw / 229); position: absolute; inset: 14% 16% 0 0; border-radius: calc(var(--u) * 16); transform: rotate(-7deg); animation: hv-float-a 11s ease-in-out infinite; }
.sv-browser { background: #fff; border: 1px solid rgba(31,58,95,.12); box-shadow: 0 calc(var(--u) * 30) calc(var(--u) * 50) calc(var(--u) * -10) rgba(31,58,95,.3); }
.sv-window { background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 calc(var(--u) * 30) calc(var(--u) * 50) calc(var(--u) * -10) rgba(0,0,0,.45); backdrop-filter: blur(4px); animation-name: hv-float-b; }
/* ウィンドウ右上の操作ボタンは、Windows風（最小化・最大化・閉じる）。i は順に 最小化・最大化・閉じる */
.sv-browser { --wc: #a9a395; } .sv-window { --wc: rgba(255,255,255,.65); }
.sv-browser i, .sv-window i { position: absolute; top: calc(var(--u) * 8); width: calc(var(--u) * 10); height: calc(var(--u) * 10); box-sizing: border-box; }
.sv-browser i:nth-of-type(1), .sv-window i:nth-of-type(1) { right: calc(var(--u) * 46); height: 0; top: calc(var(--u) * 13); border-top: calc(var(--u) * 1.5) solid var(--wc); }
.sv-browser i:nth-of-type(2), .sv-window i:nth-of-type(2) { right: calc(var(--u) * 29); border: calc(var(--u) * 1.5) solid var(--wc); }
.sv-browser i:nth-of-type(3), .sv-window i:nth-of-type(3) { right: calc(var(--u) * 12); }
.sv-browser i:nth-of-type(3)::before, .sv-browser i:nth-of-type(3)::after, .sv-window i:nth-of-type(3)::before, .sv-window i:nth-of-type(3)::after { content: ""; position: absolute; left: calc(var(--u) * -2); top: calc(var(--u) * 4); width: calc(var(--u) * 14); height: calc(var(--u) * 1.5); background: var(--wc); transform: rotate(45deg); }
.sv-browser i:nth-of-type(3)::after, .sv-window i:nth-of-type(3)::after { transform: rotate(-45deg); }
.sv-browser b, .sv-window b { position: absolute; left: 0; right: 0; top: calc(var(--u) * 25); height: 1px; background: rgba(31,58,95,.1); }
.sv-window b { background: rgba(255,255,255,.2); }
.sv-browser span, .sv-window span { position: absolute; display: block; border-radius: calc(var(--u) * 8); }
.sv-browser__hero { left: 6%; right: 6%; top: 21%; height: 36%; background: linear-gradient(135deg, var(--color-primary), #4a6b99); }
.sv-browser__l1 { left: 6%; width: 52%; top: 68%; height: calc(var(--u) * 9); background: var(--color-line); border-radius: 999px !important; }
.sv-browser__l2 { left: 6%; width: 34%; top: 80%; height: calc(var(--u) * 9); background: var(--color-line); opacity: .7; border-radius: 999px !important; }
.sv-window__a { left: 7%; top: 22%; width: 40%; height: 28%; background: rgba(255,255,255,.22); }
.sv-window__b { right: 7%; top: 22%; width: 40%; height: 28%; background: linear-gradient(145deg, #ffb84d, var(--color-accent)); opacity: .9; }
.sv-window__c { left: 7%; right: 7%; top: 62%; height: 22%; background: rgba(255,255,255,.14); }
.sv-cube, .sv-orb { position: absolute; animation: hv-float-b 9s ease-in-out infinite; }
.sv-cube { width: 22%; aspect-ratio: 1; right: 3%; top: -12%; border-radius: 28%; transform: rotate(16deg); background: linear-gradient(145deg, #4a6b99, var(--color-primary) 60%, #14263f); box-shadow: 0 22px 36px rgba(31,58,95,.3), inset 6px 6px 14px rgba(255,255,255,.22); }
.sv-orb { width: 14%; aspect-ratio: 1; right: 2%; top: 4%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 16px 28px rgba(201,111,0,.35); animation-duration: 8s; }
.svc--web .svc__art { right: -14px; }
.svc-band { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 52px; padding: 22px 32px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: 0 10px 24px -12px rgba(31,58,95,.15); }
.svc-band .card__tag { margin: 0; }
.svc-band p { margin: 0; color: var(--color-primary-soft); }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 36px 26px 40px; min-height: 0; }
    .svc__no { right: 18px; top: 4px; }
  /* 飾りは小さくして、ボタンの右側（ボタンにやや掛かる位置）へ。カードを短くする */
  .svc__art { right: -64px; bottom: 16px; width: min(50%, 240px); }
  .svc--web .svc__art { right: -64px; }
  .svc .btn { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .sv-browser, .sv-window, .sv-cube, .sv-orb { animation: none; } .svc { transition: none; } }

/* ===== 進め方以降：同じ作り（幅を超える飾り・立体感・強弱）を広げる ===== */
/* 進め方：コンテンツ幅の外まで届く、大きな輪郭文字と光る球 */
#flow::before { content: "FLOW"; position: absolute; right: -1vw; top: 6px; font-size: clamp(6rem, 17vw, 15rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.1); pointer-events: none; }
#flow > .container { position: relative; z-index: 1; }
.flow-orb { position: absolute; border-radius: 50%; pointer-events: none; animation: hv-float-b 10s ease-in-out infinite; }
.flow-orb--a { width: 120px; aspect-ratio: 1; left: -40px; bottom: 36px; background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 22px 40px rgba(0,0,0,.35); }
.flow-orb--b { width: 56px; aspect-ratio: 1; right: 5%; bottom: 24px; background: radial-gradient(circle at 30% 25%, #fff, #c9d4e6 55%, #7f93b3 100%); box-shadow: 0 14px 26px rgba(0,0,0,.3); animation-duration: 8s; animation-delay: -3s; }
/* プロフィール：写真の円が左へはみ出し、経験年数を大きな数字で見せる */
.section--about { position: relative; overflow-x: clip; }
.section--about::before { content: "ABOUT"; position: absolute; left: -2vw; top: 10px; font-size: clamp(6rem, 17vw, 15rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(31,58,95,.055); pointer-events: none; }
.section--about > .container { position: relative; z-index: 1; }
.about-wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 36px; padding: 40px 48px; border-radius: 28px; background: linear-gradient(150deg, #fff 0%, var(--color-accent-soft) 100%); border: 1px solid var(--color-line); box-shadow: 0 2px 4px rgba(31,58,95,.05), 0 24px 48px -16px rgba(31,58,95,.2); }
.about-wrap .profile { margin-top: 0; grid-template-columns: 172px 1fr; gap: 48px; align-items: center; }
.about-wrap .profile__photo { width: 260px; max-width: none; height: 260px; margin-left: -88px; box-shadow: 14px 14px 0 var(--color-accent), 0 30px 50px -10px rgba(31,58,95,.35); }
.about-stat { text-align: center; padding: 0 12px; }
.about-stat b { display: block; font-size: clamp(4.5rem, 9vw, 7rem); line-height: 1; font-weight: 900; color: transparent; -webkit-text-stroke: 2px var(--color-accent-deep); }
.about-stat b small { font-size: .26em; -webkit-text-stroke: 0; color: var(--color-accent-deep); margin-left: 4px; }
.about-stat span { display: block; margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--color-primary-soft); }
/* FAQ：見出しを左に固定し、右に質問を並べて縦を短くする */
.section--faq { position: relative; overflow-x: clip; }
.faq-mark { position: absolute; right: -2vw; top: -30px; font-size: clamp(14rem, 34vw, 30rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(31,58,95,.07); pointer-events: none; }
.faq-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq details { position: relative; padding: 0; margin-bottom: 14px; border-radius: 16px; transition: box-shadow .3s; }
.faq summary { list-style: none; padding: 20px 64px 20px 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; color: #fff; background: linear-gradient(145deg, #ffb84d, var(--color-accent)); box-shadow: 0 6px 14px rgba(240,140,0,.35); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details[open] { box-shadow: 0 2px 4px rgba(31,58,95,.06), 0 18px 34px -10px rgba(31,58,95,.2); }
.faq details p { margin: 0; padding: 0 24px 22px; }
/* お問い合わせ：左に見出しと飾り、右にフォームのカード */
.section--contact { position: relative; overflow-x: clip; background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-soft) 100%); }
.section--contact::before { content: "CONTACT"; position: absolute; left: -2vw; bottom: 6px; font-size: clamp(5rem, 15vw, 13rem); font-weight: 900; line-height: .85; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(31,58,95,.06); pointer-events: none; }
.contact-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.contact-head { position: sticky; top: 96px; }
.contact-body .form { max-width: none; margin-top: 0; padding: 40px 44px 36px; border-radius: 28px; background: #fff; border: 1px solid var(--color-line); box-shadow: 0 2px 4px rgba(31,58,95,.05), 0 30px 60px -20px rgba(31,58,95,.28); }
.contact-body .notice { margin-top: 0; margin-bottom: 20px; }
.ct-cube, .ct-orb { position: absolute; pointer-events: none; animation: hv-float-a 12s ease-in-out infinite; }
.ct-cube { width: 130px; aspect-ratio: 1; border-radius: 28%; right: -34px; top: 54px; transform: rotate(16deg); background: linear-gradient(145deg, #4a6b99, var(--color-primary) 60%, #14263f); box-shadow: 0 30px 50px rgba(31,58,95,.28), inset 8px 8px 18px rgba(255,255,255,.22), inset -10px -12px 20px rgba(0,0,0,.28); }
.ct-orb { width: 70px; aspect-ratio: 1; border-radius: 50%; left: 3%; bottom: 80px; animation-name: hv-float-b; background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 18px 30px rgba(201,111,0,.32); }
@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; padding: 28px 22px 32px; gap: 18px; }
  .about-wrap .profile { grid-template-columns: 1fr; gap: 20px; }
  .about-wrap .profile__photo { margin-left: 0; width: 200px; max-width: 200px; height: 200px; }
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-head, .contact-head { position: static; }
  .contact-body .form { padding: 28px 20px 26px; }
  .ct-cube { width: 84px; right: -26px; top: 20px; }
  .flow-orb--a { width: 80px; left: -30px; }
}
@media (prefers-reduced-motion: reduce) { .flow-orb, .ct-cube, .ct-orb { animation: none; } .faq summary::after { transition: none; } }

/* ===== ホバー以外の動き（motion.js・reveal.js と対） ===== */
/* スクロールに合わせてゆるく蛇行しながら転がる球（motion.js）。背景より手前、コンテンツ（.container）より奥。クリックは通す */
.roll-ball { position: fixed; z-index: 0; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; pointer-events: none; will-change: transform; opacity: 0; scale: .4; transition: opacity .8s ease, scale .8s cubic-bezier(.2,.7,.2,1); }
.roll-ball.is-on { opacity: var(--ball-alpha, .7); scale: 1; } /* 主張の強さは --ball-alpha（0〜1）。小さいほど控えめ */
/* ぼかした光の玉。輪郭・陰影・影は付けず、中心から縁へやわらかく透ける */
.roll-ball i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,160,30,.95) 0%, rgba(255,167,38,.6) 32%, rgba(255,167,38,.22) 55%, rgba(255,167,38,0) 72%); }
.roll-ball--silver i { background: radial-gradient(circle, rgba(130,155,200,.95) 0%, rgba(150,172,210,.6) 32%, rgba(160,180,215,.22) 55%, rgba(160,180,215,0) 72%); }
/* フッターは球より手前。最下部で、球がフッターの裏へ潜る */
.site-footer { position: relative; z-index: 3; }
/* コンテンツ（文字・カード・図）は、球より手前。ヒーローの立体ビジュアルは、位置の基準が変わらないよう対象外 */
.container:not(.hero__inner) { position: relative; z-index: 2; }
.hero__copy { z-index: 2; }
#demos .carousel, #apps .carousel { z-index: 2; }
/* 視差：区画の位置（--p：1→-1）に合わせて、飾りがスクロールと違う速さで動く */
.section--wide::before { transform: translateX(calc(var(--p, 0) * -70px)); }
.section--about::before, .section--contact::before { transform: translateX(calc(var(--p, 0) * -70px)); }
#flow::before { transform: translateX(calc(var(--p, 0) * 70px)); }
.faq-mark { transform: translateY(calc(var(--p, 0) * -50px)); }
.svc__art { transform: translateY(calc(var(--p, 0) * 30px)); }
.flow-orb--a { transform: translateY(calc(var(--p, 0) * 60px)); }
.flow-orb--b { transform: translateY(calc(var(--p, 0) * -40px)); }
.ct-cube { transform: translateY(calc(var(--p, 0) * -50px)) rotate(16deg); }
.ct-orb { transform: translateY(calc(var(--p, 0) * 70px)); }
.about-wrap .profile__photo { transform: translateY(calc(var(--p, 0) * 14px)); }
/* 見出しの強調語：蛍光ペンが左から引かれる */
.section__title.rv em { background: linear-gradient(transparent 68%, rgba(240,140,0,.3) 68%) no-repeat 0 0 / 0 100%; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .35s; }
.section__title.rv.is-in em { background-size: 100% 100%; }
.section--dark .section__title.rv em { background-image: linear-gradient(transparent 68%, rgba(255,184,77,.3) 68%); }
/* 進め方：数字に色が入り、つなぐ線が伸びる */
.section--dark .steps li::before { transition: color .8s ease calc(var(--rv, 0ms) + .3s); }
.section--dark .steps li.is-in::before { color: rgba(255,184,77,.9); }
@media (min-width: 1000px) {
  .steps li:not(:last-child)::after { transform-origin: left; scale: 0 1; transition: scale .7s cubic-bezier(.2,.7,.2,1) calc(var(--rv, 0ms) + .6s); }
  .steps li.is-in:not(:last-child)::after { scale: 1 1; }
}
/* 幅を超える飾りで、横スクロールが出ないようにする（clip は固定ヘッダーの追従を妨げない） */
body { overflow-x: clip; }

/* ===== 制作サンプル：明るい背景が続く途中に、濃い紺の区画を挟んでアクセントにする（本人の意見） ===== */
#demos > .container { position: relative; z-index: 1; }
#demos::before { content: "SAMPLES"; position: absolute; left: -2vw; top: 6px; font-size: clamp(6rem, 17vw, 15rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.09); pointer-events: none; transform: translateX(calc(var(--p, 0) * -70px)); }
#demos .carousel { position: relative; z-index: 1; }
.section--dark .carousel__btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.section--dark .carousel__btn:hover { background: #fff; color: var(--color-primary); }
.section--dark .carousel__count { color: rgba(255,255,255,.75); }
.section--dark .carousel__count b { color: #fff; }
.section--dark .carousel__bar { background: rgba(255,255,255,.25); }
.section--dark .carousel__bar u { background: #ffb84d; }
.section--dark .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--color-primary); }
.section--dark .carousel.is-ready .cs.is-center { box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* ===== 下層ページ：トップと同じ作り（濃い紺の冒頭・幅を超える飾り・立体感・末尾の相談帯） ===== */
.page-head { position: relative; overflow-x: clip; padding: 96px 0 84px; border-bottom: 1px solid var(--color-line);
  background: radial-gradient(ellipse 60% 120% at 85% 0%, rgba(255,255,255,.9), transparent 70%), linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%); }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; }
.page-head::before { content: attr(data-mark); position: absolute; right: -1vw; top: 24px; font-size: clamp(5rem, 15vw, 12rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(31,58,95,.1); pointer-events: none; transform: translateX(calc(var(--p, 0) * 60px)); }
/* 右下の球は、冒頭の中に収める（絞り込みの帯の裏に潜らないように） */
.page-head::after { content: ""; position: absolute; width: 64px; aspect-ratio: 1; border-radius: 50%; right: 9%; bottom: 36px; pointer-events: none; animation: hv-float-b 10s ease-in-out infinite; transform: translateY(calc(var(--p, 0) * -30px));
  background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 14px 24px rgba(201,111,0,.3); }
.page-head > .container > * { animation: head-in .8s cubic-bezier(.2,.7,.2,1) both; }
.page-head > .container > :nth-child(2) { animation-delay: .08s; } .page-head > .container > :nth-child(3) { animation-delay: .16s; }
.page-head > .container > :nth-child(4) { animation-delay: .24s; } .page-head > .container > :nth-child(n+5) { animation-delay: .32s; }
@keyframes head-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.sample-head { padding-bottom: 76px; }
/* 一覧のカード：重ねた影で浮かせる */
.card--demo, .card--app { box-shadow: 0 1px 2px rgba(31,58,95,.06), 0 10px 24px -8px rgba(31,58,95,.14), 0 26px 44px -24px rgba(31,58,95,.18); }
/* 末尾の相談帯：濃い紺の大きなパネル。球と立方体が、パネルの外へはみ出す */
.cta-band { position: relative; margin: 72px 0 0; padding: 56px 48px; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(700px 320px at 90% -20%, rgba(240,140,0,.2), transparent 60%), linear-gradient(160deg, #24457a 0%, #14263f 100%); box-shadow: 0 30px 56px -20px rgba(20,38,63,.6); }
.cta-band__body { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; margin: 0 0 .5em; }
.cta-band p { color: rgba(255,255,255,.84); max-width: 34em; margin: 0 auto 1.4em; text-wrap: pretty; }
.cta-band__orb, .cta-band__cube { position: absolute; pointer-events: none; animation: hv-float-b 10s ease-in-out infinite; }
.cta-band__orb { width: 90px; aspect-ratio: 1; border-radius: 50%; left: -26px; bottom: -22px; background: radial-gradient(circle at 32% 28%, #ffe2b0 0 14%, #ffa726 46%, #c96f00 100%); box-shadow: 0 20px 34px rgba(0,0,0,.3); }
.cta-band__cube { width: 96px; aspect-ratio: 1; border-radius: 28%; right: -22px; top: -26px; rotate: 16deg; animation-name: hv-float-a; background: linear-gradient(145deg, #5a7cab, #2c4b7a 60%, #14263f); box-shadow: 0 24px 40px rgba(20,38,63,.35), inset 7px 7px 16px rgba(255,255,255,.25), inset -9px -10px 18px rgba(0,0,0,.28); }
.section--list { overflow-x: clip; } .sample-foot { overflow-x: clip; }
.sample-foot .cta-band { margin-top: 0; }
/* プロフィールページ：冒頭の下に、トップと同じプロフィールのカードと、進め方 */
.section--plain { padding-top: 72px; }
.section--plain .about-wrap { margin-top: 0; }
.approach { margin-top: 72px; max-width: 760px; }
.approach p { font-size: 1.1rem; line-height: 2; color: var(--color-text); border-left: 4px solid var(--color-accent); padding-left: 24px; margin-top: 24px; text-wrap: pretty; }
@media (max-width: 860px) {
  .page-head { padding: 60px 0 56px; }
  .page-head::after { width: 44px; right: 6%; bottom: 14px; }
  .cta-band { padding: 40px 22px; margin-top: 56px; }
  .cta-band__orb { width: 64px; left: -14px; } .cta-band__cube { width: 64px; right: -12px; top: -18px; }
  .approach { margin-top: 52px; } .approach p { font-size: 1rem; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .page-head > .container > *, .page-head::after, .cta-band__orb, .cta-band__cube { animation: none; } }

/* 相談フォームの区画は、フッターの上に大きめの余白を持つ（背景を下へ伸ばす） */
.section--contact { padding-bottom: 168px; }
@media (max-width: 640px) { .section--contact { padding-bottom: 120px; } }
/* 狭い画面（1列表示）の飾り：スクロール連動の動きを小さくし、浮かぶ立方体・球をウィンドウの角から離す */
@media (max-width: 860px) {
  .svc__art { transform: translateY(calc(var(--p, 0) * 8px)); }
  /* ボタンの裏に回るので、影は弱める */
  .sv-browser { box-shadow: 0 calc(var(--u) * 12) calc(var(--u) * 24) calc(var(--u) * -8) rgba(31,58,95,.16); }
  .sv-window { box-shadow: 0 calc(var(--u) * 12) calc(var(--u) * 24) calc(var(--u) * -8) rgba(0,0,0,.25); }
  .sv-cube { right: auto; top: auto; left: -4%; bottom: -12%; width: 20%; }
  .sv-orb { right: auto; top: auto; left: -6%; bottom: 2%; width: 13%; }
}

/* ===== プライバシーポリシー・フォームの注記 ===== */
.policy { max-width: 760px; }
.policy h2 { font-size: 1.15rem; margin: 2.2em 0 .6em; padding-left: 14px; border-left: 4px solid var(--color-accent); }
.policy p, .policy li { line-height: 1.95; text-wrap: pretty; }
.policy ul { padding-left: 1.4em; list-style: disc; }
.policy li::marker { color: var(--color-accent); }
.policy__date { margin-top: 3em; color: var(--color-primary-soft); font-size: .9rem; }
.form__note { margin: 0 0 18px; font-size: .85rem; color: var(--color-primary-soft); }
.site-footer__sub { margin: 0; font-size: .85rem; }
.site-footer__sub { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.legal { margin: 0; border-top: 1px solid var(--color-line); }
.legal > div { display: grid; grid-template-columns: 12em 1fr; gap: 6px 24px; padding: 20px 4px; border-bottom: 1px solid var(--color-line); }
.legal dt { font-weight: 700; color: var(--color-primary); }
.legal dd { margin: 0; line-height: 1.9; text-wrap: pretty; }
@media (max-width: 640px) { .legal > div { grid-template-columns: 1fr; padding: 16px 2px; } }
@media (max-width: 720px) { .site-footer__right { align-items: flex-start; } }
