/* デザイン見本の共通部品。チームの帯、最後の相談の章、スクロールで出る動き */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 3.5rem; }
body { margin: 0; line-break: strict; overflow-wrap: anywhere; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.ph { display: inline-block; max-width: 100%; }

/* チームの帯。どの見本でも上に付いてくる */
.team-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3rem;
  padding: .25rem .5rem .25rem 1rem;
  color: #FBFAF7;
  background: #24302F;
  font: 500 .8125rem/1.4 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
.team-bar__who { display: grid; min-width: 0; }
.team-bar__name { font-weight: 700; text-decoration: none; }
.team-bar__note { color: #CFD6D4; font-size: .6875rem; }
.team-bar__links { display: flex; flex: none; align-items: center; gap: .5rem; }
.team-bar__list { display: none; padding: .5rem; font-weight: 700; text-underline-offset: .25em; }
.team-bar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .25rem 1.125rem;
  color: #FBFAF7;
  background: #2E5E5A;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease-out;
}
.team-bar__cta:hover, .team-bar__cta:focus-visible { background: #3D7A75; }
.team-bar :focus-visible, .demo-end :focus-visible { outline: 3px solid #8DB3AE; outline-offset: 2px; }

/* 最後の章。無料相談と、サイトの TOP へ戻る */
.demo-end {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(4rem, 3rem + 5vw, 7.5rem) 1.25rem;
  color: #FBFAF7;
  background: #24302F;
  font: 500 1rem/1.9 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  text-align: center;
}
.demo-end__kicker { color: #8DB3AE; font-size: .875rem; font-weight: 700; }
.demo-end__title { font-size: clamp(1.625rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 700; font-feature-settings: "palt"; letter-spacing: .03em; line-height: 1.45; }
.demo-end__text { max-width: 36rem; }
.demo-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.demo-end__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .5rem 2.25rem;
  border: 2px solid #FBFAF7;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.demo-end__btn:hover, .demo-end__btn:focus-visible { color: #24302F; background: #FBFAF7; }
.demo-end__btn--main { background: #2E5E5A; border-color: #2E5E5A; }
.demo-end__btn--main:hover, .demo-end__btn--main:focus-visible { color: #FBFAF7; background: #3D7A75; border-color: #3D7A75; }
.demo-end__note { margin-top: .5rem; color: #CFD6D4; font-size: .8125rem; line-height: 1.7; }

/* JavaScript が動いた時だけ隠す。動かなければ最初から全部見える */
@media (prefers-reduced-motion: no-preference) {
  [data-in] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
  [data-in].is-wait { opacity: 0; transform: translateY(28px); }
  [data-in="wipe"].is-wait { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
  [data-in="pop"].is-wait { transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .team-bar__cta, .demo-end__btn { transition: none; }
}

@media (min-width: 40rem) {
  .team-bar__list { display: inline; }
  .team-bar__note { font-size: .75rem; }
}
