/* Color Variables */
:root {
  --brand-blue: #1e3a8a;
  --brand-orange: #f97316;
  --brand-red: #dc2626;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-page: #f9fafb;
  --border-color: #f3f4f6;
  --border-color-dark: #e5e7eb;
}

.modal * {
  box-sizing: border-box;
}

.caseModal {
  cursor: pointer;
  transition: all .3s ease;
}

.caseModal .img,
.caseModal .ttl {
  transition: all .3s ease;
}

.caseModal:hover .img,
.caseModal:hover .ttl {
  transform: scale3d(1.05, 1.05, 1.05);
}


/* Container */
.main-container {
  max-width: 64rem;
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 1.875rem;
  }
}

.text-accent-orange {
  color: var(--brand-orange);
}

.main-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .main-subtitle {
    font-size: 1rem;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

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

/* Common Card Styles */
.card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

/* Dummy Cards */
.dummy-card {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  opacity: 0.6;
}

.card-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--border-color-dark);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease-in-out;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.card-title.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon-box {
  height: 8rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-box.bg-red {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
}

.card-icon-box.bg-blue {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
}

.icon-red {
  font-size: 2.25rem;
  color: #fca5a5;
}

.icon-blue {
  font-size: 2.25rem;
  color: #93c5fd;
}

/* Active Card 03 */
.active-card {
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 300ms ease-in-out;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border-color);
  background-color: #fff;
  color: inherit;
  font-family: inherit;

}

.active-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-0.25rem);
}

.card-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom right, transparent, #f9fafb);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  pointer-events: none;
}

.active-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 10;
}

.active-card:hover .num-transition {
  color: rgba(249, 115, 22, 0.2);
}

.card-arrow {
  color: var(--brand-orange);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 300ms ease-in-out;
  font-size: 1.25rem;
}

.active-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-image-box {
  height: 8rem;
  background-color: #111827;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
}

.active-card:hover .card-image {
  opacity: 0.6;
  transform: scale(1.05);
}

.card-image-text {
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
}


/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.modal.is-visible .modal-overlay {
  opacity: 1;
}

.modal-content-wrap {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 56rem;
  max-height: 80vh;

  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  transition: all 300ms ease-in-out;
}

.modal.is-visible .modal-content-wrap {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 50;
  background-color: #fff;
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.modal-close-btn:hover {
  background-color: var(--border-color-dark);
  color: var(--text-primary);
}

.modal-close-btn i {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .modal-content-wrap {
    max-height: 90vh;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    background-color: var(--border-color);
    box-shadow: none;
  }
}

.modal-scroll-area {
  overflow-y: auto;
  flex: 1 1 0%;
  border-radius: 1rem;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal Header */
.modal-header {
  background: linear-gradient(to bottom right, #fefce8, #fff7ed);
  color: #111827;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ffedd5;
}

@media (min-width: 768px) {
  .modal-header {
    padding: 2.5rem;
  }
}

.modal-header-bg-1 {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: -4rem;
  margin-top: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  background-color: #fff;
  opacity: 0.6;
  filter: blur(64px);
}

.modal-header-bg-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: -4rem;
  margin-bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  background-color: var(--brand-orange);
  opacity: 0.05;
  filter: blur(40px);
}

.modal-header-content {
  position: relative;
  z-index: 10;
}

.modal-caseTitle {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.modal-catchphrase {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

@media (min-width: 768px) {

  .modal-caseTitle {
    font-size: 1.5rem;
  }

  .modal-catchphrase {
    font-size: 2.25rem;
  }
}

.accent-text {
  color: var(--brand-orange);
  display: inline-block;
  transition: transform 0.15s;
}

.accent-text:hover {
  transform: scale(1.05);
}

.md-block {
  display: none;
}

@media (min-width: 768px) {
  .md-block {
    display: block;
  }
}

.modal-subphrase {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 700;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .modal-subphrase {
    font-size: 1rem;
  }
}

/* Modal Body common spacing */
.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .modal-body {
    padding: 2.5rem;
  }
}

/* Specs Section */
.specs-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .specs-section {
    flex-direction: row;
    align-items: flex-start;
  }
}

.store-image-wrap {
  width: 100%;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  background-color: #292524;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .store-image-wrap {
    width: 41.666667%;
  }
}

.store-image-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.store-image-bg img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.store-image-content {
  position: relative;
  z-index: 10;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  margin: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.store-name {
  color: #fff;
  font-family: serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.store-sub {
  font-size: 0.75rem;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: normal;
  opacity: 0.7;
}

.specs-info-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-page);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .specs-info-wrap {
    width: 58.333333%;
  }
}

.specs-tag-wrap {
  margin-bottom: 1rem;
}

.specs-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
}

.specs-list {
  color: #374151;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.specs-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specs-list-item.has-border {
  border-bottom: 1px solid var(--border-color-dark);
  padding-bottom: 0.5rem;
}

.icon-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.specs-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Before / After */
.comparison-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .comparison-section {
    flex-direction: row;
  }
}

.before-box {
  flex: 1;
  background-color: var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--border-color-dark);
  position: relative;
}

@media (min-width: 768px) {
  .before-box {
    padding: 2rem;
  }
}

.before-tag {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  background-color: var(--text-muted);
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  list-style: none;
}

.before-list {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .before-list {
    font-size: 1rem;
  }
}

.before-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.before-list i {
  color: var(--text-light);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.arrow-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

@media (min-width: 768px) {
  .arrow-desktop {
    display: flex;
  }
}

.arrow-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.75rem;
  margin-bottom: 0.rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .arrow-mobile {
    display: none;
  }
}

.arrow-circle {
  background-color: #fff;
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.arrow-desktop i {
  font-size: 1.875rem;
  color: var(--brand-orange);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.arrow-mobile i {
  font-size: 1.5rem;
  color: var(--brand-orange);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.after-box {
  flex: 1;
  background-color: #fff7ed;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid #fdba74;
  position: relative;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
  z-index: 0;
}

@media (min-width: 768px) {
  .after-box {
    padding: 2rem;
    transform: scale(1.05);
  }
}

.after-tag {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  background: linear-gradient(to right, var(--brand-orange), var(--brand-red));
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.after-tag i {
  color: #fde047;
}

.after-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #fff;
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #ffedd5;
}

.after-item i {
  color: var(--brand-orange);
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.after-text {
  font-weight: 700;
  color: #1f2937;
  line-height: 1.375;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .after-text {
    font-size: 1rem;
  }
}

.after-text-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .after-text-sub {
    font-size: 0.875rem;
  }
}


/* Voice Section */
.voice-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .voice-title {
    font-size: 1.5rem;
  }
}

.voice-title i {
  color: var(--brand-blue);
}

.voice-box {
  background-color: #fff;
  border: 1px solid var(--border-color-dark);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .voice-box {
    padding: 2rem;
  }
}

.voice-quote-icon {
  font-size: 3rem;
  color: var(--border-color);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 0;
}

.voice-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #374151;
  line-height: 1.625;
  font-weight: 500;
}

.highlight-yellow {
  background-color: #fef08a;
  font-weight: 700;
  padding: 0 0.25rem;
  color: #111827;
}

.text-bold-blue {
  font-weight: 700;
  color: var(--brand-blue);
}

.text-underline-orange {
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
  color: #111827;
}

.text-bold {
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border-color);
}

.cta-lead {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-lead {
    font-size: 1rem;
  }
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.025rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 8px 20px -6px rgba(249, 115, 22, 0.6);
  transition: all 300ms ease-in-out;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .cta-btn {
    width: auto;
    padding: 1.25rem 3rem;
  }
}

.cta-btn:hover {
  box-shadow: 0 12px 25px -6px rgba(249, 115, 22, 0.8);
  transform: translateY(-0.25rem);
}

.cta-btn-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--brand-orange), var(--brand-red));
  z-index: 1;
}

.cta-btn-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 2;
}

.cta-btn:hover .cta-btn-hover-bg {
  opacity: 0.2;
}

.cta-btn-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.cta-btn-top {
  font-size: 0.75rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .cta-btn-top {
    font-size: 0.875rem;
  }
}

.cta-btn-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn-bottom i {
  transition: transform 0.15s ease-in-out;
}

.cta-btn:hover .cta-btn-bottom i {
  transform: translateX(0.25rem);
}

.cta-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: left;
}