/* ========================================
   FINDE. — Base Styles
   Ported from Webflow source CSS
   ======================================== */

/* --- CSS Variables (matching Webflow) --- */
:root {
  --english: "Kt Flux 2 Variable", Arial, sans-serif;
  --japenese: "Zen Kaku Gothic New", sans-serif;
  --japanese: "Zen Kaku Gothic New", sans-serif;
  --accent: #6033ff;
  --accent_hover: #8e6fff;
  --white: white;
  --black: black;
  --blue_transparent: #18104bcc;
}

/* --- Custom Font --- */
@font-face {
  font-family: "Kt Flux 2 Variable";
  src: url("https://cdn.prod.website-files.com/661fb6045e9e2d962afc4c4f/695608e29ac533d993ca1254_KT-Flux-2_Variable.ttf") format("truetype");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--japanese);
  font-weight: 400;
  color: #e0e0e0;
  background: var(--black);
  line-height: 1.7;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #3519B7; color: #fff; }

a, a:visited { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent_hover); }

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

/* --- Layout (Webflow: vw-margin based) --- */
.page-wrapper,
.w-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container--narrow {
  max-width: 720px;
}

/* --- Market Glow Background --- */
#market-glow-bg {
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050508;
}

/* --- Header (Webflow: .header) --- */
.header {
  justify-content: space-between;
  align-items: flex-end;
  margin-left: 6.25vw;
  margin-right: 6.25vw;
  padding-top: 160px;
  display: flex;
  position: relative;
  gap: 16px;
}

.header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.header__brand {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.header__logo {
  font-family: var(--english);
  font-variation-settings: "wght" 300, "SRIF" 150;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.2rem;
  margin: 0;
}

.header__logo span {
  color: var(--accent);
}

.header__subtitle {
  font-family: var(--english);
  font-size: 12px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-top: 0;
  line-height: 12px;
}

/* --- Search + Filter row (Webflow: .searchblock) --- */
.searchblock {
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

/* --- Global Search (embedded in Webflow head code) --- */
.global-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: rgba(255,255,255,.85);
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.global-search:hover { border-color: rgba(255,255,255,.7); }

.global-search:focus-within,
.global-search.has-value {
  background: #fff;
  color: #000;
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.global-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  font-family: var(--japanese);
  -webkit-appearance: none;
  appearance: none;
}

.global-search__input::placeholder {
  font-family: var(--english);
  color: rgba(255,255,255,.45);
}

.global-search:focus-within .global-search__input::placeholder,
.global-search.has-value .global-search__input::placeholder {
  color: rgba(0,0,0,.35);
}

.global-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.global-search__input::-webkit-search-decoration { -webkit-appearance: none; }

.global-search__btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.global-search__btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,.85);
  transition: stroke .2s ease;
}

.global-search:focus-within .global-search__btn svg,
.global-search.has-value .global-search__btn svg {
  stroke: #000;
}

/* --- Filter Button (Webflow: .filter-button) --- */
.filterbar {
  position: relative;
}

.filter-btn {
  font-family: var(--english);
  color: var(--white);
  background-color: transparent;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.filter-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,.7); }

.filter-btn.is-active {
  background: var(--accent) !important;
  border-color: var(--accent);
  color: #fff;
}

/* --- Filter Panel (Webflow: .filter-panel, absolute positioned) --- */
.filter-section {
  padding: 0;
}

.filter-section__body {
  z-index: 5;
  background-color: var(--blue_transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 87.5vw;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 6.25vw;
  margin-right: 6.25vw;
  padding: 0;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
}

.filter-section__body.is-open {
  max-height: 500px;
  opacity: 1;
  padding: 24px 40px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.filter-group__label {
  font-family: var(--japanese);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
  font-weight: 400;
  margin-bottom: 4px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-toggle {
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  background-color: var(--blue_transparent);
  font-family: var(--japanese);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 8px 12px 10px;
  font-size: 16px;
  display: flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.filter-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.filter-toggle.is-active {
  background-color: var(--accent) !important;
  border-color: var(--accent);
  color: #fff;
}

/* --- Card Grid (Webflow: .collection-list) --- */
.gallery-section {
  flex: 1;
}

.card-grid {
  grid-column-gap: 2vw;
  grid-row-gap: 64px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-left: 6.25vw;
  margin-right: 6.25vw;
  margin-top: 64px;
  display: grid;
}

/* --- Card (Webflow: .collectionitem + .link-block) --- */
.card {
  position: relative;
}

.card.link-block {
  cursor: pointer;
  border-radius: 16px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.card__img-wrap {
  aspect-ratio: 16 / 9;
  pointer-events: none;
  border-radius: .5vw;
  display: flex;
  position: relative;
  overflow: hidden;
}

.card__img-wrap.hoverfx {
  display: block;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  transform: translateZ(0);
}

.card.link-block:hover .card__img {
  transform: scale(1.05);
}

.card__body {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 32px 16px 24px;
  display: flex;
}

.card__title {
  font-family: "Kt Flux 2 Variable", "Zen Kaku Gothic New", serif;
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.card__desc {
  font-family: var(--japanese);
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  overflow: hidden;
  margin: 0;
}

/* Card external link overlay (Webflow: .linkarea) */
.card__external-link {
  z-index: 3;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
  cursor: pointer;
}

/* Card detail icon (Webflow: .link-block-3) */
.card__detail-icon {
  z-index: 4;
  background-color: rgba(0,0,0,.7);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 50% 50%;
  border-radius: 999px;
  width: 1.5vw;
  height: 1.5vw;
  position: absolute;
  top: 13.7vw;
  right: .5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.card__detail-icon:hover {
  background-color: var(--accent_hover);
}

.card__detail-icon svg {
  width: 50%;
  height: 50%;
  stroke: #fff;
  fill: none;
}

/* --- Pagination (Webflow) --- */
.pagination {
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 320px;
  margin: 64px auto 0;
  display: flex;
  position: relative;
}

.pagination__info {
  font-family: var(--english);
  font-size: 14px;
  color: var(--white);
}

.pagination__btn {
  grid-column-gap: 8px;
  font-family: var(--english);
  color: var(--white);
  background-color: transparent;
  border: none;
  border-radius: 8px;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  text-decoration: none;
  display: flex;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, color .2s;
}

.pagination__btn:hover {
  background: rgba(255,255,255,0.06);
}

.pagination__btn:disabled,
.pagination__btn[disabled] {
  opacity: .25;
  pointer-events: none;
}

.pagination__btn svg {
  width: 12px;
  height: 12px;
}

/* --- Article Detail --- */
.article-section {
  padding: 40px 0 60px;
}

.article__header {
  margin-bottom: 32px;
}

.article__title {
  font-family: "Kt Flux 2 Variable", "Zen Kaku Gothic New", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  line-height: 32px;
  margin-bottom: 12px;
}

.article__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #111;
}

.article__image {
  width: 100%;
  display: block;
}

.article__desc {
  font-family: var(--japanese);
  font-size: 16px;
  color: var(--white);
  line-height: 30px;
  margin-bottom: 24px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.article__visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: var(--english);
  text-decoration: none;
  transition: background .2s;
}

.article__visit-btn:hover {
  background: var(--accent_hover);
  color: #fff;
}

/* Similar Sites */
.similar-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.similar-section__title {
  font-family: var(--english);
  font-size: 14px;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* --- About Page --- */
.about-section {
  padding: 60px 0;
}

.about-section h2 {
  font-family: var(--english);
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}

.about-section p {
  color: #bbb;
  margin-bottom: 16px;
}

.about-section h3 {
  font-family: var(--english);
  font-size: 16px;
  color: #fff;
  margin: 32px 0 12px;
}

.about-section ol {
  color: #bbb;
  padding-left: 20px;
}

.about-section ol li {
  margin-bottom: 12px;
}

.about-section ol li strong { color: #ddd; }

/* --- Contact Page --- */
.contact-section {
  padding: 60px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23888'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-submit {
  align-self: flex-start;
  padding: 12px 32px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}

.form-submit:hover { background: var(--accent_hover); }

.form-success {
  display: none;
  padding: 16px;
  background: rgba(96,51,255,0.1);
  border: 1px solid rgba(96,51,255,0.3);
  border-radius: 8px;
  color: #ccc;
  font-size: 14px;
}

/* --- 404 Page --- */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

#fourohfour-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-404__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-404__title {
  font-family: var(--english);
  font-size: 72px;
  color: #fff;
  margin-bottom: 12px;
}

.page-404__text {
  font-size: 16px;
  color: #888;
  margin-bottom: 24px;
}

.page-404__link {
  display: inline-flex;
  padding: 10px 24px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: background .2s;
}

.page-404__link:hover {
  background: var(--accent_hover);
  color: #fff;
}

/* --- Footer (Webflow: .footer) --- */
.footer {
  z-index: 2;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 80px;
  margin-left: 6.25vw;
  margin-right: 6.25vw;
  padding-bottom: 24px;
  display: flex;
  position: relative;
}

.footer__inner {
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  display: flex;
}

.footer__left {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.footer__links {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  border-right: 1px solid rgba(255,255,255,.5);
  border-radius: 1px;
  padding-right: 16px;
  display: flex;
}

.footer__links a,
.footer__link {
  font-family: var(--english);
  color: var(--white);
  letter-spacing: 0.05em;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  text-decoration: none;
}

.footer__links a:hover,
.footer__link:hover { color: var(--accent_hover); }

.footer__copy {
  font-family: var(--english);
  color: var(--white);
  letter-spacing: 0.05em;
  font-size: 12px;
}

/* --- Footer Series Select (Webflow: .selecttext) --- */
.series-select {
  font-family: var(--english);
  color: var(--white);
  letter-spacing: 0.05em;
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-left: 18px;
  padding-right: 0;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' fill='%23fff'%3E%3Cpath d='M4 6L0 0h8z'/%3E%3C/svg%3E");
  background-position: 2% 48%;
  background-repeat: no-repeat;
  background-size: auto 6px;
}

.series-select:hover { color: var(--accent_hover); }

.series-select option {
  background: #111;
  color: #ccc;
}

/* --- Search Results --- */
.search-results {
  padding: 40px 0;
}

.search-results__title {
  font-family: var(--english);
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.search-results__count {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

/* --- smooth-hover utility (from Webflow) --- */
.smooth-hover {
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    opacity .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    filter .2s ease;
}

/* --- Loading State --- */
.card.is-loading {
  opacity: .35;
  transition: opacity .2s ease;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .card__detail-icon {
    width: 4vw;
    height: 4vw;
    top: 21vw;
    right: 1vw;
  }

  .header {
    flex-flow: column;
    align-items: flex-start;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .card__detail-icon {
    width: 6vw;
    height: 6vw;
    top: 43vw;
    right: 1vw;
  }

  .card__body {
    padding: 24px 0 0;
  }

  .searchblock {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 479px) {
  .card-grid {
    grid-row-gap: 40px;
    margin-left: 6.25vw;
    margin-right: 6.25vw;
  }

  .card__detail-icon {
    width: 8vw;
    height: 8vw;
    top: 39.5vw;
    right: 1.5vw;
  }

  .card__img-wrap {
    border-radius: 8px;
  }

  .card__desc {
    font-size: 14px;
    line-height: 25.2px;
  }

  .footer__links {
    border: none;
    padding-right: 0;
  }

  .filter-section__body.is-open {
    padding: 16px;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
