/* common.css */
:root {
  --color-primary: #00A7B5;
  --color-primary-dark: #008f9a;
  --color-primary-light: #e0f6f7;
  --color-accent: #FFF200;
  --color-surface: #F8F9FA;
}

html {
  scroll-behavior: smooth;
}

h2,h3 {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-bottom: 0;
  text-align: inherit;
}

.tiktok-lp main,
.tiktok-lp main *,
.tiktok-lp main *::before,
.tiktok-lp main *::after {
  box-sizing: border-box;
}

.tiktok-lp main,
.tiktok-lp main h1,
.tiktok-lp main h2,
.tiktok-lp main h3,
.tiktok-lp main h4,
.tiktok-lp main h5,
.tiktok-lp main h6,
.tiktok-lp main p,
.tiktok-lp main a,
.tiktok-lp main li,
.tiktok-lp main button,
.tiktok-lp main input,
.tiktok-lp main textarea,
.tiktok-lp main label,
.tiktok-lp main span {
  font-family: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
}

.tiktok-lp main {
  color: #1F2937;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* テーマ style.css の h1 / p / h2 が LP 内のクラス指定を上書きしないよう調整 */
.tiktok-lp main h1,
.tiktok-lp main .hero-title {
  padding-top: 0;
}

p {
  text-align: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
}

.u-inline-block {
  display: inline-block;
}

/* 640px未満のみ改行（Tailwind sm:hidden 相当） */
@media(min-width:640px) {
  br.br-mobile-only {
    display: none;
  }
}

/* 640px以上のみ改行（Tailwind hidden sm:block 相当） */
br.br-desktop-only {
  display: none;
}

@media(min-width:640px) {
  br.br-desktop-only {
    display: inline;
  }
}

.tiktok-lp main img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tiktok-lp main .features-logo-line img {
  height: 24px;
  width: auto;
  max-width: none;
  display: block;
}

@media(min-width:640px) {
  .tiktok-lp main .features-logo-line img {
    height: 32px;
  }
}

.tiktok-lp main ul,
.tiktok-lp main ol {
  list-style: none;
  padding: 0;
}

/* Utility */
.marker-yellow {
  background: linear-gradient(transparent 60%, rgba(255, 242, 0, 0.5) 60%);
}

.marker-pink {
  background: linear-gradient(transparent 60%, rgba(254, 44, 85, 0.5) 60%);
}

.title-bracket {
  position: relative;
  display: inline-block;
  padding: 0.25rem 1.25rem;
}

.title-bracket::before,
.title-bracket::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-primary);
  pointer-events: none;
  border-radius: 2px;
}

.title-bracket::before {
  top: -8px;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.title-bracket::after {
  bottom: -8px;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Scroll animations（@keyframes・JS無効時は常に表示） */
@keyframes tiktok-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tiktok-fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tiktok-fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tiktok-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateX(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes tiktok-stagger-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tiktok-lp main .fade-in,
.tiktok-lp main .fade-in-left,
.tiktok-lp main .fade-in-right,
.tiktok-lp main .scale-in,
.tiktok-lp main .stagger-item {
  opacity: 1;
  transform: none;
}

.tiktok-lp.tiktok-js-ready main .fade-in:not(.tiktok-inview),
.tiktok-lp.tiktok-js-ready main .fade-in-left:not(.tiktok-inview),
.tiktok-lp.tiktok-js-ready main .fade-in-right:not(.tiktok-inview),
.tiktok-lp.tiktok-js-ready main .scale-in:not(.tiktok-inview),
.tiktok-lp.tiktok-js-ready main .stagger-item:not(.tiktok-inview) {
  opacity: 0;
}

.tiktok-lp.tiktok-js-ready main .fade-in.tiktok-inview {
  animation: tiktok-fade-in 0.6s ease forwards;
}

.tiktok-lp.tiktok-js-ready main .fade-in-left.tiktok-inview {
  animation: tiktok-fade-in-left 0.6s ease forwards;
}

.tiktok-lp.tiktok-js-ready main .fade-in-right.tiktok-inview {
  animation: tiktok-fade-in-right 0.6s ease forwards;
}

.tiktok-lp.tiktok-js-ready main .scale-in.tiktok-inview {
  animation: tiktok-scale-in 0.7s ease forwards;
}

.tiktok-lp.tiktok-js-ready main .stagger-item.tiktok-inview {
  animation: tiktok-stagger-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* アニメ終了後は transform を解放（ホバーで浮き上がるため） */
.tiktok-lp.tiktok-js-ready main .stagger-item.tiktok-animated {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

@media(prefers-reduced-motion:reduce) {

  .tiktok-lp.tiktok-js-ready main .fade-in:not(.tiktok-inview),
  .tiktok-lp.tiktok-js-ready main .fade-in-left:not(.tiktok-inview),
  .tiktok-lp.tiktok-js-ready main .fade-in-right:not(.tiktok-inview),
  .tiktok-lp.tiktok-js-ready main .scale-in:not(.tiktok-inview),
  .tiktok-lp.tiktok-js-ready main .stagger-item:not(.tiktok-inview) {
    opacity: 1;
  }

  .tiktok-lp.tiktok-js-ready main [class*="fade-in"].tiktok-inview,
  .tiktok-lp.tiktok-js-ready main .scale-in.tiktok-inview,
  .tiktok-lp.tiktok-js-ready main .stagger-item.tiktok-inview,
  .tiktok-lp.tiktok-js-ready main .stagger-item.tiktok-animated {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* CTA Section */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(50px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media(min-width:768px) {
  .cta-inner {
    flex-direction: row;
    text-align: left;
  }
}

.cta-text h2 {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.625;
  margin-bottom: 0;
}

@media(min-width:640px) {
  .cta-text h2 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
}

@media(min-width:768px) {
  .cta-text h2 {
    font-size: 2.25rem;
  }
}

.u-inline-block {
  display: inline-block;
}

.cta-text p {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 2;
  opacity: 0.9;
}

.cta-text .free-label {
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 0.5rem;
}

.cta-btn-wrap {
  width: 100%;
}

@media(min-width:640px) {
  .cta-btn-wrap {
    width: auto;
  }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  color: #1F2937;
  padding: 1.125rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
}

@media(min-width:640px) {
  .btn-cta {
    width: auto;
  }
}

.btn-cta:hover {
  background: #f3f4f6;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.btn-cta .icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}