:root {
  /* ===== Ink / Text（Core → Semantic マッピング） ===== */
  --color-text: #26323f;
  --color-text-light: #666666;
  --ink-strong: #26323f;
  --ink-muted: #adadad;
  --ink-muted-text: #fff;
  --ink-accent: #381c1c;

  /* ===== Background / Surfaces ===== */
  --bg: #ffffff;
  --bg-alt: #F6F9FB;
  --bg-light: #f9f9f9;
  --bg-info: #E9F2FE;
  --info-link: #244366;

  --color-white: #ffffff;
  --color-dark-gray: #777777;

  --fotter-color: #222222;
  --footer-text-color: #9E9E9E;

  /* ===== Lines / Borders ===== */
  --color-border: #eeeeee;

  /* ===== Brand ===== */
  --brand: #244366;
  --brand-contrast: #ffffff;
  --brand-outline: #000000;


  /* ===== Gradients ===== */
  --brand-grad: linear-gradient(50deg, #1EBCE9 0%, #4799EA 30%, #7174EA 45%, #AC4EE0 70%, #D430D0 100%);
  --brand-grad-light: linear-gradient(to right, #c3f8ff, #d9cef8);

  /* ===== States ===== */
  --color-success: #0a3622;
  --alert-success-bg: #D1E7DD;
  --success-hover: #218838;

  --color-danger: #58151c;
  --alert-danger-bg: #F8D7DA;

  --form-required: #ff4d4d;


  /* ===== Shadows ===== */
  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 12px 24px rgba(0, 0, 0, 0.25);



  /* ===== Motion ===== */
  --transition-fast: 0.2s ease;


  /* ============================== */
  /* ===== user.css ===== */
  /* ============================== */

  /* Spacing */
  --spacing-xs: 3px;
  --spacing-sm: 6px;
  --spacing-md: 16px;
  --spacing-l: 24px;
  --spacing-lg: 24px;
  --spacing-xl: 28px;
  --spacing-xxl: 3.2rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-hover: rgba(0, 0, 0, 0.15);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --container-max-width: 120rem;

  /* Transition */
  --transition-normal: 0.3s ease;
}

/* リセットcss */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Django Error Messages */
.errorlist.nonfield {
  width: min(100%, 800px);
  margin: var(--spacing-sm) auto var(--spacing-md);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--alert-danger-bg);
  background: var(--alert-danger-bg);
  color: var(--color-danger);
  list-style: none;
  padding-left: 14px;
}
.errorlist.nonfield li { margin: 0; }

.errorlist {
  color: var(--color-danger);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
  list-style: none;
  padding-left: 0;
}
.errorlist li {
  margin: 0;
}

.has-error .form-control,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--form-required);
}

.has-error .form-control:focus-visible,
.has-error .form-select:focus-visible,
.has-error .form-textarea:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--form-required) 25%, transparent);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  background-image: initial !important;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink-strong);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 32px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--brand-contrast);
}

.btn-primary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand);
  border: 1px solid var(--brand-outline);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--brand);
  color: var(--brand-contrast);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--success);
  color: var(--brand-contrast);
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.15rem;
}

.btn-full {
  width: 100%;
}


.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all .3s ease;
  padding: 8px 0px;
  max-height: 95px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.header-spacer {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  text-decoration: none;
}

.logo:hover {
  opacity: .8;
}

.logo-image {
  height: 50px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.header-nav-link,
.header-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav-item {
  position: relative;
}

.header-nav-trigger {
  position: relative;
  padding-right: 28px;
}

.header-nav-trigger::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.header-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  color: var(--ink-strong);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  padding: 8px;
  top: 100%;
  z-index: 5;
}

.header-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.header-nav-item:hover .header-dropdown-panel {
  display: block;
}

.header-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #2b2b2b;
  text-decoration: none;
  background: #f6f6f6;
  border-radius: 8px;
}

.header-dropdown-head:hover {
  background: var(--bg-alt);
}

.header-dropdown-head-caret {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.header-dropdown-link {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 5px;
  color: #111111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.header-dropdown-link:hover {
  background: #f7f7f7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header .btn {
  display: inline-block;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
  white-space: nowrap;
  background-color: var(--color-white);
  width: 138px;
  padding: 14px 10px;
}

.header .btn-large {
  padding: 16px 28px;
}

.header-btn {
  line-height: 1;
}

.header-btn-outline {
  background: var(--color-white);
  color: var(--ink-strong);
  border: 1px solid var(--brand-outline) !important;
}

.header-btn-gradient {
  background: var(--brand-grad);
  color: var(--brand-contrast);
  border: none;
}

.user-menu {
  display: none;
  position: relative;
  margin-left: 8px;
}

.user-menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-menu-button span {
  width: 24px;
  height: 2px;
  background: var(--ink-strong);
  display: block;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  padding: 10px;
  min-width: 260px;
  display: none;
  z-index: 1100;
}

.user-menu.active .user-menu-dropdown {
  display: block;
}

.user-menu-nav {
  display: grid;
  gap: 8px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3.2rem;
  padding-bottom: 3.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px !important;
}

.footer {
  background-color: var(--fotter-color);
  color: var(--footer-text-color);
  padding: 4.8rem 0 2.4rem;
}

.footer-legal {
  display: flex;
  gap: 2.4rem;
}

.footer-legal a {
  color: var(--footer-text-color);
  transition: color var(--transition-fast);
}

.footer-bottom {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--footer-text-color);
}

@media (max-width: 768px) {
  .header {
    max-height: 75px;
  }

  .header-right {
    display: none;
  }

  .user-menu {
    display: block;
    position: relative;
  }

  .user-menu-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: 75px;
    bottom: 0;
    width: 100%;
    display: none;
    z-index: 2000;
    background-color: var(--color-white);
    background: var(--color-white);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .user-menu.active .user-menu-dropdown {
    display: block;
  }

  .user-menu-nav {
    display: block;
    background: var(--color-white);
    padding: 0px 16px 16px 16px;
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
  }

  .user-menu-nav .header-nav-trigger,
  .user-menu-nav .header-dropdown-head,
  .user-menu-nav .header-dropdown-link,
  .user-menu-nav .header-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 26px 16px 26px 16px;
    font-size: 16px;
    color: #111111;
    text-decoration: none;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .user-menu-nav .header-dropdown-panel {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .user-menu-nav .header-dropdown-link {
    padding-left: 32px;
  }

  .user-menu-nav .sp-cta {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
  }

  .user-menu-nav .sp-cta .btn {
    width: auto;
    min-width: 120px;
    text-align: center;
  }


  .user-menu-button {
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-block;
    cursor: pointer;
  }

  .user-menu-button span {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink-strong);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .user-menu-button span:nth-child(1) {
    top: 4px;
  }

  .user-menu-button span:nth-child(2) {
    top: 11px;
  }

  .user-menu-button span:nth-child(3) {
    top: 18px;
  }

  .user-menu-button[aria-expanded="true"] span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  .user-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .user-menu-button[aria-expanded="true"] span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }

  .footer-top {
    padding-bottom: 34px;
    padding-top: 18px;
    grid-template-columns: initial;
  }

  .footer {
    padding: 30px 0px;
  }

  .footer-top .logo-image {
    height: 50px;
  }

  .footer-bottom {
    font-size: 16px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .footer-top {
    padding-bottom: 26px;
  }

  .footer {
    padding: 30px 0px;
  }


  .footer-bottom {
    font-size: 14px;

  }
  .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--ink-333);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--ink-strong);
}

.header-cta {
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--ink-strong);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-nav a {
  color: var(--ink-333);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero {
  isolation: isolate;
  min-height: 650px;
  padding: 4.8rem 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.hero video.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url(/static/front/img/digista/top/hero/overlay.png) center/cover no-repeat;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 46px;
  font-weight: 700;
  color: #354659;
  line-height: 1.7;
  padding: 16px;
}

.hero-highlight {
  background: var(--brand-grad);
  color: var(--brand-contrast);
  padding: 4px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 450px;
  }

  .hero-content {
    align-items: start;
  }

  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 440px) {
  .hero {
    --hero-top: 200px;
    position: relative;
    padding-top: var(--hero-top);
    background: var(--bg);
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 0;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hero-top);
    background: url(/static/front/img/digista/top/hero/overlay-sp.png) center/cover no-repeat;
    pointer-events: none;
    z-index: 1;
  }

  .hero .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hero-top);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    z-index: 2;
  }

  .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.7;
  }

  .hero video.bg-video {
    position: static !important;
    display: block;
    width: 100%;
    height: auto !important;
    margin: 0;
    object-fit: cover;
    z-index: 0;
  }
}

.info-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-divider {
  color: rgba(255, 255, 255, 0.5);
}

section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ar-demo-more {
  text-align: center;
  padding-top: 16px;
  font-size: 18px;
}

.ar-demo-more a {
  font-size: 20px;
  color: var(--brand);
  font-weight: bold;
  text-decoration: underline;
}

.section-title {
  font-size: 36px;
  color: var(--ink-strong);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title.about {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-heading__em {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 56px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 20px;
  color: #354659;
  margin: 0 auto;
  margin-bottom: 16px;
}

.logo-image-about {
  height: 72px;
  margin: 0;
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 34px;
    margin-bottom: 1rem;
    font-weight: 800;
  }

  .section-subtitle {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .service-heading__em {
    font-size: 48px;
  }

  .logo-image-about {
    height: 56px;
  }
}

@media (max-width: 440px) {
  section {
    padding: 30px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 1rem;
    font-weight: 800;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .service-heading__em {
    font-size: 42px;
  }

  .logo-image-about {
    height: 44px;
  }
}

.features {
  background: url(/static/front/img/digista/top/about/about02.png) center bottom / 100% auto no-repeat, var(--bg);
}

.features .section-subtitle {
  padding-bottom: 26px;
}

.features .highlight {
  background: linear-gradient(transparent 60%, yellow 60%);
  font-weight: bold;
}

.features-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--ink-strong);
  border-bottom-color: var(--ink-strong);
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-text h3 {
  color: var(--ink-strong);
  margin-bottom: 1.5rem;
  font-size: 30px;
  font-weight: 900;
}

.feature-text p {
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.feature-visual {
  position: relative;
}

.feature-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.ar-video-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.ar-video-container video {
  flex: 0 1 calc(25% - 10px);
  height: 420px;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .ar-video-container video {
    flex: 0 1 calc(50% - 10px);
    margin: 16px 0px;
  }
}

@media (max-width: 440px) {
  .ar-video-container {
    justify-content: center;
  }

  .ar-video-container video {
    flex: 0 1 calc(50% - 10px);
    height: 280px;
    margin: 10px 0px;
  }
}

.patterns .pattern-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.patterns .pattern-item {
  flex: 0 1 400px;
  text-align: center;
}

.patterns .pattern-item .circle {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.4;
  padding: 1rem;
}

.patterns .pattern-item .circle.left {
  background: var(--brand-grad-light);
  color: var(--ink-inverse);
  color: #000000;
}

.patterns .pattern-item .circle.right {
  background: var(--brand-grad);
  color: var(--brand-contrast);
}

.patterns .pattern-description {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .patterns .pattern-item {
    flex: 0 1 calc(50% - 2rem);
  }
}

@media (max-width: 440px) {
  .patterns .pattern-list {
    flex-direction: column;
    align-items: center;
  }

  .patterns .pattern-item {
    flex: 0 1 100%;
  }

  .patterns .pattern-item .circle {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    padding: 1rem;
  }

  .patterns .pattern-description {
    margin-top: 1rem;
  }
}

.digista-features h3 {
  font-size: 28px;
  text-align: center;
}

.digista-features .features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 30px;
  max-width: 1120px;
  margin: 0 auto;
}

.digista-features .feature-item {
  flex: 0 1 300px;
  text-align: center;
}

.digista-features .feature-item img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 14px;
}

.digista-features .feature-item h3 {
  font-size: 22px;
  line-height: 1.4;
  margin: 8px 0 10px;
}

.digista-features .feature-item p {
  max-width: 36em;
  margin: 0 auto;
}

@media (max-width: 440px) {
  .digista-features .feature-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-areas: "title title" "thumb body";
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
    flex-basis: 100%;
    text-align: left;
  }

  .digista-features .feature-item h3 {
    grid-area: title;
    margin: 0 0 4px;
    font-size: 18px;
  }

  .digista-features .feature-item img {
    grid-area: thumb;
    width: 160px;
    max-width: none;
    height: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .digista-features .feature-item p {
    font-size: 15px;
    grid-area: body;
    margin: 0;
    line-height: 1.6;
    width: 100%;
  }

  .digista-features .feature-item h3 br {
    display: none;
  }
}

@media (max-width: 375px) {
  .digista-features .feature-item {
    grid-template-columns: 140px 1fr;
  }

  .digista-features .feature-item img {
    width: 140px;
  }

  .digista-features .feature-item p {
    font-size: 14px;
  }
}


.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.content-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: white;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.content-item:hover {
  transform: scale(1.05);
}

.gacha-machine {
  width: 120px;
  height: 160px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gacha-ball {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #fff, #ff6b6b);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}


.phone-icon {
  font-size: 4rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.voice-waves {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wave {
  width: 4px;
  height: 20px;
  background: #333333;
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(2) {
  animation-delay: 0.2s;
}

.wave:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave {

  0%,
  100% {
    height: 20px;
  }

  50% {
    height: 40px;
  }
}

.use-cases {
  padding: 80px 0;
  background: var(--bg);
}

.use-cases .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.use-cases .use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
  justify-items: center;
}

.use-case-card {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 28px 28px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.use-case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.use-cases .use-case-card:hover {
  transform: translateY(-6px);
}

.use-cases .use-case-card .icon-wrapper {
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-grad)
}

.use-cases .text-white {
  color: #ffffff;
}

.use-cases .use-case-card .icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.use-cases .card-body img {
  display: block;
  margin: 0 auto 16px;
  max-width: 100%;
  border-radius: 6px;
}

.use-cases .card-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.use-case-content {
  padding: 2rem;
}

.use-case-content h3 {
  color: var(--ink-strong);
  margin-bottom: 1rem;
}

.use-case-benefits {
  list-style: none;
  margin-bottom: 1.5rem;
}

.use-case-benefits li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-muted);
}

.use-case-benefits li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink-strong);
  font-weight: bold;
}

@media (max-width: 768px) {
  .use-cases .use-cases-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-items: stretch;
    gap: 20px;
  }

  .use-cases .use-case-card {
    max-width: none;
    width: 100%;
    text-align: left;
    margin-top: 16px;
  }

  .use-cases .card-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas: "thumb title" "thumb body";
    column-gap: 16px;
    row-gap: 0px;
    align-items: start;
  }

  .use-cases .card-title {
    grid-area: title;
    margin: 0 0 8px;
    text-align: left;
  }

  .use-cases .card-title br {
    display: none;
  }

  .use-cases .card-body img {
    grid-area: thumb;
    width: 200px;
    height: auto;
    margin: 0;
    border-radius: 6px;
  }

  .use-cases .card-text {
    grid-area: body;
    margin: 0;
    line-height: 1.7;
    font-size: 20px;
  }
}

@media (max-width: 440px) {
  .use-cases .use-cases-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 16px;
  }

  .use-cases .use-case-card {
    text-align: center;
    max-width: none;
    width: 100%;
    padding: 20px 14px 28px;
    margin-top: 24px;
  }

  .use-cases .card-body {
    display: block;
  }

  .use-cases .card-title {
    margin: 12px 0 10px;
    font-size: 18px;
  }

  .use-cases .card-title br {
    display: inline;
  }

  .use-cases .card-body img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto 14px;
  }

  .use-cases .card-text {
    margin: 0 auto;
    line-height: 1.7;
    text-align: left;
    font-size: 16px;
  }
}



.kpi-example {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.kpi-label {
  color: var(--ink-muted);
}

.kpi-value {
  color: var(--ink-strong);
  font-weight: 600;
}

.experience {}

.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.ar-placeholder {
  text-align: center;
  color: var(--ink-muted);
}

.ar-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.experience-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: var(--brand-contrast);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--ink-strong);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #333333;
  margin-top: 12px;
  padding: 21px;
  border-radius: 8px;
  box-shadow: 0 1px 7px 0 rgba(0, 91, 171, .2);
  background: #fff;
}

.feedback-form {
  text-align: center;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}

.feedback-form h3 {
  color: var(--ink-strong);
  margin-bottom: 1.5rem;
}

.feedback-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.ar-experience-image {
  margin-top: 3rem;
  text-align: center;
}

.experience-demo-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}

.pricing {
  background: var(--bg-alt);
}

.pricing-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--brand);
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  color: var(--ink-strong);
  margin-bottom: 1.5rem;
}

.price-range {
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ink-strong);
}

.unit {
  font-size: 1rem;
  color: var(--ink-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-muted);
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.delivery-time {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.time-label {
  color: var(--ink-muted);
}

.time-value {
  color: var(--ink-strong);
  font-weight: 600;
}

.pricing-cta {
  text-align: center;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-image {
  width: 100%;
  height: 0;
  padding-bottom: 63%;
  position: relative;
  overflow: hidden;
}

.case-image-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-image-img {
  transform: scale(1.05);
}

.case-content {
  padding: 2rem;
}

.case-content h3 {
  color: var(--ink-strong);
  margin-bottom: 1rem;
}

.case-content p {
  margin-bottom: 1.5rem;
}

.case-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: var(--bg-alt);
  color: var(--ink-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cases-cta {
  text-align: center;
}

.cases-cta p {
  margin-bottom: 1.5rem;
  color: var(--ink-muted);
}

.flow {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.flow .container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.flow .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.flow .section-title {
  margin-bottom: 8px;
}

.flow .flow-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-left: 100px;
}

.flow .timeline-line {
  position: absolute;
  top: 68px;
  left: 153px;
  width: 4px;
  height: 80%;
  background-image: repeating-linear-gradient(to bottom, #292929, #292929 6px, transparent 6px, transparent 12px);
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-icon {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  z-index: 2;
  margin-top: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--brand-grad-light);
  border-radius: 50%;
  z-index: -1;
}

.step-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: var(--bg-alt);
  border-radius: 50%;
  z-index: -2;
}

.step-icon img {
  width: 90%;
  height: 90%;
}

.flow-step-number {
  position: absolute;
  font-size: 30px;
  font-weight: bold;
  background: var(--brand-grad);
  color: var(--brand-contrast);
  border-radius: 50px;
  padding: 0px 18px 0px 18px;
  left: 80px;
  z-index: 3;
}

.flow-step-number::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--bg-alt);
  z-index: -1;
}

.step-content {
  padding: 12px 32px 24px 32px;
  border-radius: 40px;
  flex: 1;
}

.step-title {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 12px;
  color: #222222;
}

.step-text {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .flow .flow-list {
    padding-left: 0;
  }

  .step-content p {
    box-shadow: none;
    background: var(--color-white);
  }

  .flow-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: var(--color-white);
    box-shadow: 0 1px 7px 0 rgba(0, 91, 171, .2);
    border-radius: 8px;
  }

  .flow .timeline-line {
    display: none;
  }

  .step-icon {
    margin-top: 0px;
  }

  .step-icon::before {
    width: 120px;
    height: 120px;
  }

  .step-icon::after {
    display: none;
  }

  .flow-step-number {
    position: relative;
    left: -30%;
    top: -20px;
  }
}

@media (max-width: 440px) {
  .flow-step-number {
    font-size: 26px;
  }

  .step-title {
    font-size: 26px;
    margin: 0 0 12px;
    color: #222222;
  }

  .step-content {
    padding: 12px;
  }

  .step-content p {
    padding: 0px;
    font-size: 16px;
  }
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-card {
  display: flex;
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 20px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: box-shadow 0.3s, transform 0.2s;
}

.faq-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-left: 4px;
  margin-bottom: 10px;
  color: #222222;
}

.faq-card p {
  font-size: 16px;
  color: #444444;
  line-height: 1.6;
  margin-left: 4px;
}

.faq-card svg {
  height: 32px;
  width: 32px;
  margin-top: -4px;
  max-width: initial;
  color: #0098ff;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .faq-grid {
    gap: 16px;
  }

  .faq-card h3 {
    font-size: 16px;
  }

  .faq-card {
    padding: 14px 14px;
  }

  .faq-card p {
    font-size: 14px;
    margin-bottom: 0;
  }
}

.cta-section {
  padding: 40px 0;
  background: var(--brand);
  color: var(--brand-contrast);
  text-align: center;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
}

.cta-title {
  font-size: 36px;
  color: var(--brand-contrast);
}
.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 32px;
  }
}

@media (max-width: 440px) {
  .cta-title {
    font-size: 26px;
  }
  .cta-content p {
    font-size: 16px;
  }
}



.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-section.gradient {
  background: var(--brand-grad);
}

.cta-buttons .btn-primary {
  background-color: var(--color-white);
  color: #333333;
}

.cta-buttons .btn-primary:hover {
  background-color: var(--bg-alt);
}

.cta-buttons .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-buttons .btn-secondary:hover {
  background-color: var(--color-white);
  color: #333333;
}
/* 
.modal {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  color: var(--ink-strong);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--ink-strong);
}

.modal-body {
  padding: 2rem;
} */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: initial;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border: solid 1px var(--brand);
  box-shadow: var(--brand) 0px 0px 0px 1px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.contact-form {
  max-width: 800px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 0 auto;
  margin-bottom: 30px;
}

.contact-form .form-label {
  font-size: 1.3rem;
}

.form-label.required::after {
  content: "*";
  color: var(--form-required);
  margin-left: 4px;
}

.contact-form .submit-button {
  background: var(--brand);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-size: 20px;
  display: block;
  width: 100%;
  padding: 12px;
  color: var(--brand-contrast);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  transform: translateY(-2px);
}

.submit-button:disabled {
  background: var(--ink-muted);
  color: var(--ink-muted-text);
}
.submit-button:disabled:hover {
  cursor: not-allowed;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.contact-modal-dialog {
  position: relative;
  background: var(--color-white);
  border-radius: 8px;
  max-width: 360px;
  margin: 100px auto;
  padding: 20px;
  text-align: center;
}

@media (max-width: 440px) {
  .contact-form .form-label {
    font-size: 1.1rem;
  }

  .contact-form .submit-button {
    font-size: 1.1rem;
  }
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.alert {
  /* position: fixed; */
  top: 95px;
  padding: 14px;
  text-align: center;
  margin-bottom: 0;
  border-radius: 0;
  border: 0;
  width: 100%;
  z-index: 2;
  font-size: 20px;
}

@media (max-width: 768px) {
  .alert {
    top: 75px;
  }
}

.alert.alert-success {
  color: var(--color-success);
  background-color: var(--alert-success-bg);
  opacity: 0.9;
}

.alert.alert-danger {
  color: var(--color-danger);
  background-color: var(--alert-danger-bg);
  opacity: 0.9;
}

.hero {
  background-color: var(--bg);
}

.features {
  background-color: var(--bg);
}

.patterns {
  background-color: var(--bg-alt);
}

.ar-view {
  background-color: var(--bg);
}

.digista-features {
  background-color: var(--bg-alt);
}

.use-cases {
  background-color: var(--bg);
}

.flow {
  background-color: var(--bg-alt);
}

.faq {
  background-color: var(--bg);
}

.contact {
  background-color: var(--bg-alt);
}

.cardar-nav {
  background: var(--bg-alt);
  padding-bottom: 10px;
}

.anchor-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px auto;
  max-width: 900px;
  padding: 16px;
  border-radius: 8px;
}

.anchor-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-strong);
  border: solid 1px var(--brand-outline);
  min-height: 60px;
  background: var(--color-white);
  position: relative;
}

.anchor-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.anchor-btn:hover {
  background: #e9ecef;
  border-color: #bbbbbb;
}

.ar-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-title.cardar-list {
  text-align: center;
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

.ar-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.br-440 {
  display: none;
}

.ar-card .media,
.cardar-detail__phone .media {
  display: flex;
  justify-content: center;
}

.smartphone-frame {
  position: relative;
  display: inline-block;
  border: 9px solid var(--frame-color, #111111);
  border-radius: 38px;
  box-shadow: var(--shadow-3);
  overflow: visible;
  width: 240px;
  margin: 0 auto;
  background: transparent;
  margin-bottom: 10px;
}

.cardar-detail__phone .smartphone-frame {
  width: 70%;
}

.smartphone-frame.frame-black {
  --frame-color: #111111;
}

.smartphone-frame.frame-gray {
  --frame-color: #202020;
}

.smartphone-frame .screen {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
}

.smartphone-frame .screen img,
.smartphone-frame .screen video {
  display: block;
  width: 100%;
  height: auto;
}

.smartphone-frame .notch {
  position: absolute;
  top: 1.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 3.4%;
  background: var(--frame-color, #111111);
  border-radius: 14px;
  z-index: 2;
}

.smartphone-frame .side-btn {
  position: absolute;
  display: block;
  width: 4px;
  background: var(--frame-color, #111111);
  border-radius: 2px;
  padding: 6px;
}

.smartphone-frame .side-btn-vol-up {
  left: -12px;
  top: 15%;
  height: 6%;
}

.smartphone-frame .side-btn-vol-down {
  left: -12px;
  top: 23%;
  height: 6%;
}

.smartphone-frame .side-btn-power {
  right: -12px;
  top: 20%;
  height: 12%;
}

.cardar-detail__phone .smartphone-frame {
  width: clamp(240px, 70%, 420px);
}

.cardar-detail__phone .smartphone-frame .screen {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 9 / 19.5;
}

.cardar-detail__phone .smartphone-frame .screen img,
.cardar-detail__phone .smartphone-frame .screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-card .card-body,
.cardar-detail__phone .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-alt);
}

.ar-card h3 {
  font-size: 24px;
  margin: 10px 0;
  color: var(--ink-strong);
}

.ar-card p {
  flex-grow: 1;
  font-size: 1rem;
  color: var(--ink-accent);
  margin: 1rem 0 1rem 0;
}

.ar-card .card-footer {
  text-align: center;
}

.btn-gradient {
  display: inline-block;
  padding: 12px 12px 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-contrast);
  background: var(--brand-grad);
  text-align: center;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.85;
}

.btn-gradient .arrow {
  margin-left: 4px;
  margin-top: 1.5px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-gradient:hover .arrow {
  transform: translateX(3px);
}

.ar-card .card-footer {
  text-align: right;
}

.cardar-detail {
  background: var(--color-white);
}

.cardar-detail__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1rem;
  align-items: start;
}

.cardar-detail__title {
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 900;
  margin-bottom: 1rem;
  color: #111111;
}

.cardar-detail__desc {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 16px;
}

.cardar-detail__desc a,
.cardar-detail__how_create a {
  color: var(--info-link);
  font-weight: bold;
  text-decoration: underline;
}

.cardar-detail__phone .phone-body {
  height: 670px;
  width: auto;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 32px;
  background: #0b1220;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardar-detail__phone .screen {
  height: 100%;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
}

.cardar-detail__preview {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: start;
  height: 200px;
}

.cardar-detail__preview img {
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  max-height: 294px;
}

.cardar-detail__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cardar-detail__thumbs .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.cardar-detail__thumbs .thumb.active,
.cardar-detail__thumbs .thumb:hover {
  border-color: #1EBCE9;
}

.back-button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--brand-outline);
  border-radius: 5px;
  background: var(--color-white);
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  min-height: 55px;
  width: 300px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
  background: #e9ecef;
  border-color: #bbbbbb;
  color: var(--ink-strong);
}

.left-allow {
  display: inline-block;
  width: 40px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skew(-45deg);
  margin-right: 8px;
}

.cardar-detail .video-wrap {
  position: relative;
}

.cardar-detail .video-wrap .ar-preview {
  display: block;
  width: 100%;
  height: auto;
}

.cardar-detail .video-tap-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 14%;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  z-index: -5;
}

:fullscreen .cardar-detail .video-tap-layer,
:-webkit-full-screen .cardar-detail .video-tap-layer {
  display: none !important;
}

.cardar-detail strong {
  color: var(--ink-strong);
  font-weight: bold;
}

.card-footer .btn.btn-gradient {
  display: inline-flex;
  align-items: center;
}

.card-footer .arrow {
  inline-size: 1.4em;
  block-size: 1.4em;
}

.cardar-detail__how_create {
  background: var(--bg-info);
  border-radius: 4px;
  padding: 16px;
  margin-top: 1.5rem;
}

.cardar-detail__how_create p {
  font-size: 16px;
}

.cardar-detail .how-icon {
  width: 22px;
  height: 22px;
  fill: #3b83e0;
}

.cardar-detail__how-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px 0;
}

.cardar-detail__how-body {
  font-size: 16px;
  line-height: 1.6;
}

.cardar-detail__how-body .how-list {
  margin: 1em 0 0;
  padding-left: 1.2em;
  list-style-type: disc;
  font-size: 16px;
}

.cardar-detail__how-body .how-list li {
  margin-bottom: 1em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cardar-detail__grid {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 440px) {
  .ar-row {
    grid-template-columns: 1fr;
  }

  .smartphone-frame {
    width: 150px;
    border-radius: 26px;
  }

  .smartphone-frame .screen {
    border-radius: 16px;
  }

  .ar-card .card-body,
  .cardar-detail__phone .card-body {
    padding: 1rem;
  }

  .ar-card h3 {
    font-size: 20px
  }

  .ar-grid .btn-gradient {
    padding: 8px 8px 8px 16px;
    font-size: 14px;
  }

  .btn-gradient .arrow {
    margin-top: 1px;
  }

  .ar-card p {
    font-size: 16px;
    margin: 12px 0;
  }

  .cardar-nav .section-title {
    font-size: 26px;
  }

  .anchor-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 12px auto;
    padding: 0px;
  }

  .anchor-btn {
    padding: 6px 12px;
    font-size: 12px;
    justify-content: start;
  }

  .br-440 {
    display: block;
  }

  .cardar-detail__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .cardar-detail__text {
    display: contents;
  }

  .cardar-detail__title {
    order: 1;
  }

  .cardar-detail__phone {
    order: 2;
  }

  .cardar-detail__thumbs {
    order: 3;
  }

  .cardar-detail__desc {
    order: 4;
  }

  .cardar-detail__how_create {
    order: 5;
  }

  .cardar-detail__how_create p {
    font-size: 14px;
  }

  .cardar-detail__how_create .how-list {
    font-size: 14px;
  }

  .cardar-detail__how-title {
    font-size: 16px;
  }

  .cardar-detail .how-icon {
    width: 18px;
    height: 18px;
  }

  .cardar-detail__preview {
    display: none !important;
  }

  .cardar-detail__how_create {
    margin-top: initial;
  }

  .cardar-detail__desc {
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0 0;
  }

  .smartphone-frame {
    width: 150px;
    border-radius: 26px;
  }

  .smartphone-frame .screen {
    border-radius: 16px;
  }

  .cardar-detail__phone .smartphone-frame {
    width: 60%;
  }
}

/* =============================
  PF Catalog
============================= */
/* アンカー被り解消 */
.pf-page {
  --pf-offset: 95px;
}

@media (max-width: 768px) {
  .pf-page {
    --pf-offset: 75px;
  }
}

.pf-page .pf-section {
  scroll-margin-top: var(--pf-offset);
}

.pf-container {
  margin: 0 auto;
  max-width: 900px;
}

.pf-hero {
  background: var(--bg-alt);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.pf-body {
  padding: 20px 0px;
}

.pf-section {
  padding: 30px 10px 0px;
}

.pf-genre-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto;
  max-width: 900px;
  padding: 16px 0;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .pf-genre-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pf-genre-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pf-genre-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pf-genre-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: .4em;
  height: 44px;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--color-white);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--color-border);
  transition: transform .06s ease, box-shadow .2s ease;
  line-height: 1.25;
  word-break: keep-all;
  line-break: strict;
}

.pf-genre-label {
  display: inline;
}

.pf-genre-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.pf-genre-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pf-genre-code {
  white-space: nowrap;
  font-weight: 700;
  margin-right: .4em;
  color: var(--color-text);
}

.pf-genre-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

@media (max-width: 768px) {
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pf-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.pf-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pf-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 1px 8px 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .8);
  background: rgba(17, 23, 29, .8);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* =============================
  Video Samples
============================= */

.video-samples-nav {
  background: var(--bg-alt);
  padding-bottom: 10px;
}

.section-title.video-samples-list {
  text-align: center;
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

.video-samples-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-samples-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.video-sample-card .media {
  display: flex;
  justify-content: center;
}

.video-sample-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-alt);
}

.video-sample-card h3 {
  font-size: 24px;
  margin: 10px 0;
  color: var(--ink-strong);
}

.video-sample-card p {
  flex-grow: 1;
  font-size: 1rem;
  color: var(--ink-accent);
  margin: 1rem 0;
}

.video-samples-block {
  background: var(--color-white);
  padding: 40px 0;
}

@media (max-width: 768px) {
  .video-samples-row {
    grid-template-columns: 1fr;
  }

  .video-sample-card .card-body {
    padding: 1.5rem;
  }

  .video-sample-card h3 {
    font-size: 20px;
  }
}



/* =============================
  既存のページのcss
============================= */


.logged-header a {
  position: relative;
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
}

.logged-header a.active,
.user-menu-dropdown a.active {
  color: var(--brand);
}

.logged-header a:hover:after,
.logged-header a.active:after {
  width: 80%;
}

.logged-header a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width var(--transition-normal);
}


/**** item詳細 ****/
.page-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.page-header h1 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.page-header h2 {
  font-size: 32px;
}

.page-header h1:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  border-radius: 3px;
}

.page-header p {
  color: var(--color-dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

.item-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  gap: 20px;
}

li.alert.alert-danger {
  color: red;
  margin-bottom: var(--spacing-s);
}


/* Item detail section */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-top: 35px;
  width: 100%;
  /* align-items: start; */
}

.item-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* box-shadow: var(--shadow-sm); */
  display: flex;
  justify-content: center;
  max-height: 495px;
}

.item-image.item-horizontal,
.card-image.item-horizontal {
  margin-bottom: auto;
  box-shadow: var(--shadow-md);
}

.item-detail .main-image {
  /* width: 100%; */
  height: 98%;
  transition: transform 0.3s ease;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-md);
}

.main-image:hover {
  transform: scale(1.03);
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 28px;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.item-artist {
  font-size: 20px;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  font-weight: 500;
}

.item-description {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  word-break: break-all;
}

.item-specs {
  background-color: var(--bg-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.spec-item {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-light);
}

.spec-detail {
  /* font-size: 1.8rem; */
  /* font-weight: 700; */
  color: var(--color-text);
  margin-bottom: 4px;
}

.cta-buttons {
  margin-top: auto;
  display: flex;
  gap: var(--spacing-md);
}

/* Item description section */
.item-description-section {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
}

.description-content {
  font-size: 16px;
  line-height: 1.7;
}

.description-content p {
  margin-bottom: var(--spacing-lg);
}

.cardset-history .spec-title {
  padding-left: var(--spacing-md);
}

.cardset-history li {
  padding: var(--spacing-xs) var(--spacing-md);
  border-bottom: 1px solid #ddd;
}

.cardset-history h4 {
  font-weight: 500;
  font-size: 16px;
}

.ar-section-title {
  font-size: 24px;
  margin-top: 28px;
}

.ar-link {
  color: blue;
  text-decoration: underline;
}

.box-label-option.ar-discription {
  margin-left: 16px;
}

.feature-list {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-lg);
}

.feature-list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--brand);
  border-radius: 50%;
}


.card-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.preview-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.preview-info h3 {
  margin-bottom: var(--spacing-sm);
}

/* Registration section */
.item-register-section {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
  min-width: 50%;
}

.item-section-title {
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.item-auth-container {
  max-width: 60rem;
  margin: 0 auto;
}

.item-auth-container p {
  margin-bottom: var(--spacing-m);
}

.item-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.item-auth-tab {
  font-size: 16px;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000000;
}

.item-auth-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.item-auth-panel {
  display: none;
}

.item-auth-panel.active {
  display: block;
}

.item-auth-form {
  margin-bottom: var(--spacing-lg);
}

.item-auth-form .form-group {
  margin-bottom: var(--spacing-md);
}

.item-auth-form .form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.item-auth-form .form-group input,
.item-auth-form .form-group select,
.item-auth-form .form-group textarea,
.item-serial-form .form-group input,
.item-serial-form .form-group select,
.item-serial-form .form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-auth-form .button-primary,
.item-serial-form .button-primary {
  background-color: var(--brand);
  color: white;
  border: none;
}


.item-auth-form .button-primary:hover,
.item-serial-form .button-primary:hover {
  opacity: 0.9;
}


.item-auth-form .button-primary:disabled,
.item-serial-form .button-primary:disabled {
  background-color: var(--color-gray-500);
  cursor: not-allowed;
}

.button-full {
  width: 100%;
}

.item-auth-form .button,
.item-serial-form .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
}

.item-auth-help {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
}


/* .serial-register-section {
margin-top: var(--spacing-xl);
padding-top: var(--spacing-lg);
border-top: 1px solid var(--color-border);
} */

.serial-register-section h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

 .box-label-option {
  font-size: 12px;
}

.register-options {
  margin-top: var(--spacing-md);
}

.register-options .box-label-option {
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .item-container {
    flex-direction: column;
    gap: 0;
  }

  .item-detail {
    grid-template-columns: 1fr;
  }

  .item-image {
    max-width: 50rem;
    margin: 0 auto;
  }

  .card-preview {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .preview-image {
    max-width: 40rem;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
  }

  .item-container {
    padding: 0;
  }

  .item-detail {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .auth-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .auth-tab {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
  }

  .auth-tab.active {
    background-color: var(--brand);
    color: white;
    border-color: var(--brand);
  }
}

/* Animation for elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.item-detail,
.item-description-section,
.register-section {
  animation: fadeInUp 0.6s ease-out forwards;
}

.item-description-section {
  animation-delay: 0.2s;
}

.register-section {
  animation-delay: 0.4s;
}



/**** マイページ ****/
/* Card Grid Styles */
.cards-container,
.history-container {
  margin-bottom: var(--spacing-xxxl);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);

  border: .5px solid #e5e5e5;
}

.card-inner {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card:hover .card-inner {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  /* aspect-ratio: 1 / 1; */
  overflow: hidden;
  flex: 1;
  display: flex;
  justify-content: center;
  max-height: 495px;
  /* margin-bottom: auto; */
}

.my-cards .card-image {
  aspect-ratio: 1 / 1;
  background: #EBEDF2;
}

.my-cards img {
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
  /* transition: transform var(--transition-normal);
box-shadow: var(--shadow-md); */
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbfbfb;
  min-height: 110px;
}

.card-info h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 14px;
}


.card-info p {
  color: var(--color-dark-gray);
  font-size: 12px;
  margin-bottom: 0;
}


/* .item-detail img {
height: auto;
border-radius: var(--radius-md);
object-fit: contain;
} */


/* Selected Card State */
.card.selected .card-inner {
  box-shadow: 0 0 0 3px var(--primary-color), var(--shadow-md);
}

.card.selected::after {
  content: '選択中';
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

/* Expired Card State */
.card.expired .card-inner {
  opacity: 0.9;
}

.expired-tag {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-l);
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background-color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.pagination-btn.active,
.current-page {
  background-color: var(--brand);
  border-color: var(--primary-color);
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#gachaModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lottieBox {
  pointer-events: none;
  margin-left: 1%;
  width: 70%;
}

#reward {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: .4s;
}

#reward.show {
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#reward h3 {
  font-size: 2.5rem;
  max-width: 70%;
  text-align: center;
  margin-bottom: var(--spacing-m);
  color: var(--color-primary-dark);
}

#reward p {
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 950px) {
  #lottieBox {
    width: 110%;
  }

  #reward h3 {
    font-size: 2rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-m);
  }
}

@media (max-width: 560px) {
  #lottieBox {
    width: 135%;
  }

  #reward p {
    font-size: 1.3rem;
  }
}

@media (min-width: 1400px) {}


/* Card Selection Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 75, 75, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
  }
}

.card.selected .card-inner {
  animation: pulse 1.5s infinite;
}

.not_cards {
  display: flex;
  justify-content: center;
}

.not_cards p {
  color: var(--color-dark-gray);
  max-width: 700px;
}


@media (max-width: 768px) {
  section {
    padding-top: 16px;
    position: relative;
  }

  .page-header {
    margin-bottom: var(--spacing-xs);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-info {
    padding: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/**** itemダウンロード ****/
.card-details {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: auto;
}

.download-section {
  margin-bottom: var(--spacing-xxl);
  padding: 0 var(--spacing-md);
}

.download-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.download-section-title {
  font-size: 2rem;
  margin: 0;
}

.download-all-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--brand);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.content-item {
  background-color: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  padding: 0;
}

.content-thumbnail {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #EBEDF2;
}

.content-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.download-section .content-overlay {
  /* */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.download-section .download-media-type {
  background: #333;
  opacity: .8;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px;
}

.download-section .content-info {
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.download-section .content-details {
  margin-right: var(--spacing-md);
}

.download-section .content-title {
  font-size: 14px;
  margin: 0 0 var(--spacing-xs);
  line-height: 1.3;
}

.content-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.download-btn {
  background-color: var(--brand);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.play-btn {
  background-color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
  border: none;
}

.content-thumbnail .play-btn svg path {
  fill: var(--brand)!important ;
}

.download-btn .material-icons {
  font-size: 20px;
}

.content-item:hover .content-overlay {
  opacity: 1;
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color-hover);
}

.content-item:hover .content-thumbnail img {
  transform: scale(1.05);
}

.play-btn:hover {
  transform: scale(1.1);
  background-color: white;
}

@media (max-width: 768px) {
  .download-section {
    padding: 0;
  }
}


/* Modal styles */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal-container.active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-close,
#closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast);
  border: none;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.modal-content {
  padding: var(--spacing-xl);
}

.modal-title {
  font-size: 16px;
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

/* Audio modal */
.audio-player {
  width: 100%;
  padding: var(--spacing-xl) 0;
}

.audio-player audio {
  width: 100%;
}

/* Video modal */
.video-modal .modal-content {
  padding: var(--spacing-lg);
}

.video-player {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

/* Image modal */
.image-viewer {
  width: 100%;
  text-align: center;
}

.image-viewer img {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
}

/* Responsive */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: var(--spacing-lg);
  }

  .modal-title {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
  }

  .audio-player {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 576px) {
  .content-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .modal {
    width: 95%;
  }

  .modal-content {
    padding: var(--spacing-md);
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}



/**** history ****/
.history-section {
  padding: 0;
}

.history-container {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  /* margin-bottom: var(--spacing-xxxl); */
}

.history-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.user-history-count {
  padding: 16px;
  text-align: end;
  border-bottom: 2px solid #ddd;
}

.history-table-wrapper ul {
  padding: var(--spacing-md);
}

.history-table-wrapper li {
  padding: var(--spacing-sm);
  border-bottom: 1px solid #ddd;
}

.history-date {
  color: var(--color-dark-gray);
  font-size: 14px;
  margin-bottom: 4px;
}

.history-table-wrapper li h4 {
  margin-left: 1rem;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0px;
}

.history-itemset {
  margin-left: 1rem;
  color: var(--color-dark-gray);
  font-size: 13px;
  margin-bottom: 0px;
}

@media (max-width: 768px) {}



/* user-contact */
.user-contact-section .section-title-contact {
  font-size: 32px;
}

.user-contact-section .contact-form {
  margin-bottom: 60px;
}




.password-form-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}


/* ===========================
 ユーザーヘッダー
 =========================== */
/* ボタン共通 */
.header .btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  transition: background .2s;
  font-weight: 600;
}

/* ドロップダウン本体 */
.dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropdown-toggle {
  cursor: pointer;
}

/* summary のデフォルト ▶ を消す */
/* .dropdown-toggle::marker {
display:none;
} */

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
  padding: .25rem 0;
  z-index: 900;
  display: none;
}

.dropdown[open] .dropdown-menu {
  display: block;
}

.dropdown-menu .btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: .5rem 1rem;
  background: none;
}

.dropdown-menu .btn:hover {
  opacity: 0.9;
}

/* SP 内（ハンバーガーメニュー展開中）のドロップダウンは absolute 不要 */
.user-menu-dropdown .dropdown-menu {
  position: static;
  border: none;
  box-shadow: none;
}

/* レスポンシブ：768px を境に PC/SP 切替え */
@media (max-width:768px) {
  .logged-header {
    display: none;
  }

  .header-cta-ps {
    display: block;
  }

  .header .btn {
    width: 100%;
  }

  .dropdown-menu .btn {
    text-align: center;
  }
}

@media (min-width:769px) {
  .logged-header {
    display: flex;
    gap: .75rem;
    align-items: center;
  }

  .header-cta-ps {
    display: none;
  }
}



.register_complete {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.register_article {
  padding: 0 20px;
}

.register_complete img {
  height: 80px;
  width: 80px;
  margin: 32px 0;
}

.register_complete h2 {
  font-size: 28px;
}

.register_complete p {
  font-size: 16px;
}
.register_complete span {
  display: flex;
  justify-content: center;
}

/* 画面幅440px以下の場合 */
@media screen and (max-width: 440px) {
  .register_complete img {
      height: 50px;
      width: 50px;
      margin: 20px 0;
  }

  .register_complete h2 {
      font-size: 22px;
  }

  .register_complete p {
      font-size: 14px;
  }
}
.modal-container.active .modal {
  transform: translateY(0);
  opacity: 1;
}


/* ===========================
   特商法表記
   =========================== */
.commerce-law {
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* 見出しレベル 2 */
.commerce-law h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #333;
}

/* 見出しレベル 3 */
.commerce-law h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #333;
}

/* 段落 */
.commerce-law table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.commerce-law th {
    background-color: #ddd;
    width: 25%;
}

.commerce-law th,
.commerce-law td {
  padding: 0.5em;
  border: 1px solid #999;
  text-align: left;
  line-height: 1.7;
}

/* リンク */
.commerce-law a {
  text-decoration: none;
  color: var(--info-link);
}
.commerce-law a:hover {
  text-decoration: underline;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* ===========================
   プライバシーポリシー
   =========================== */

/* ベース設定 */
#privacy-policy {
  max-width: 820px;           /* 読みやすい横幅 */
  margin: 0 auto;             /* 中央寄せ */
  padding: 25px 12px 40px;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fff;
}

/* 見出しレベル 2 */
#privacy-policy h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1.2px;
  color: #111;
}

/* 見出しレベル 3 */
#privacy-policy h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 23px 0 10px;
  padding-left: 6px;
  border-left: 4px solid #ff6b00; /* ブランドアクセント色 */
}

/* 段落 */
#privacy-policy p {
  margin: 9px 0;
}

/* 箇条書き */
#privacy-policy ul,
#privacy-policy ol {
  margin: 6px 0 14px 13px;
  padding-left: 10px;
}
#privacy-policy li {
  margin: 4px 0;
  list-style-position: outside;
}

/* 住所ブロック */
#privacy-policy address {
  margin-top: 18px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 6px;
  font-style: normal;
  line-height: 1.6;
}

/* リンク */
#privacy-policy a {
  color: #ff6b00;
  text-decoration: underline;
}
#privacy-policy a:hover {
  text-decoration: none;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
  #privacy-policy {
    padding: 20px 9px 30px;
  }
  #privacy-policy h2 {
    font-size: 16px;
  }
  #privacy-policy h3 {
    font-size: 16px;
  }
}
