/**
 * Front Page
 * THEORIES psychology media top page
 */

/* ==============================
   SWELL front page spacing reset
============================== */

body.home .l-content,
body.home .l-mainContent,
body.home .l-mainContent__inner,
body.home .post_content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .c-pageTitle {
  display: none !important;
}

/* ==============================
   Hero
============================== */

.theories-hero {
  position: relative;
  width: 100vw;
  min-height: 500px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background-image: url("https://theories.co.jp/wp-content/uploads/theories_hero.webp");
  background-size: auto 108%;
  background-position: 66% 45%;
  background-repeat: no-repeat;
  background-color: #f7fbff;
}

/* 左側だけ読みやすくする白レイヤー */
.theories-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.98) 25%,
      rgba(255, 255, 255, 0.86) 43%,
      rgba(255, 255, 255, 0.18) 62%,
      rgba(255, 255, 255, 0) 100%
    );
  pointer-events: none;
}

.theories-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 500px;
  margin: 0 auto;
  padding: 48px 24px 44px;
  display: flex;
  align-items: center;
}

.theories-hero__content {
  width: min(100%, 620px);
  transform: translateY(-4px);
}

.theories-hero__label {
  margin: 0 0 20px;
  color: #1766d1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.theories-hero__title {
  margin: 0;
  color: #0f1f35;
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: 0.04em;
}

.theories-hero__sp-only {
  display: none;
}

.theories-hero__lead {
  margin: 26px 0 0;
  color: #162033;
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.03em;
}

.theories-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.theories-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 190px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.theories-hero__button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  text-decoration: none;
}

.theories-hero__button--primary {
  color: #fff;
  background: linear-gradient(135deg, #0b66dc 0%, #0050bd 100%);
  box-shadow: 0 14px 28px rgba(0, 86, 190, 0.24);
}

.theories-hero__button--secondary {
  color: #075bd0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(7, 91, 208, 0.55);
}

.theories-hero__button-icon {
  font-size: 18px;
  line-height: 1;
}

.theories-hero__search {
  display: flex;
  align-items: center;
  width: min(100%, 560px);
  height: 58px;
  margin-top: 28px;
  padding: 0 10px 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(150, 177, 210, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(30, 70, 120, 0.10);
}

.theories-hero__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1b2a3d;
  font-size: 15px;
  line-height: 1;
}

.theories-hero__search input::placeholder {
  color: #9aa8ba;
}

.theories-hero__search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #075bd0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* ==============================
   下のセクションとの間隔
============================== */

body.home .theories-hero + * {
  margin-top: 40px !important;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 1200px) {
  .theories-hero {
    background-size: auto 108%;
    background-position: 64% 45%;
  }

  .theories-hero__inner {
    padding: 44px 24px 42px;
  }
}

@media (max-width: 900px) {
  .theories-hero {
    min-height: auto;
    background-size: auto 100%;
    background-position: 74% center;
  }

  .theories-hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(255, 255, 255, 0.72) 100%
      );
  }

  .theories-hero__inner {
    min-height: auto;
    padding: 56px 28px 52px;
  }

  .theories-hero__title br,
  .theories-hero__lead br {
    display: none;
  }
}

@media (max-width: 600px) {
  .theories-hero {
    background-size: auto 100%;
    background-position: 82% center;
  }

  .theories-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.97) 52%,
        rgba(255, 255, 255, 0.9) 100%
      );
  }

  .theories-hero__inner {
    padding: 40px 18px 42px;
  }

  .theories-hero__content {
    width: 100%;
    transform: none;
  }

  .theories-hero__label {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.06em;
  }

  .theories-hero__title {
    font-size: 30px;
    line-height: 1.48;
    letter-spacing: 0.015em;
  }

  .theories-hero__title br {
    display: block;
  }

  .theories-hero__sp-only {
    display: inline;
  }

  .theories-hero__lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }

  .theories-hero__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .theories-hero__button {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
  }

  .theories-hero__search {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    padding: 0 10px 0 18px;
  }

  .theories-hero__search input {
    font-size: 14px;
  }

  .theories-hero__search button {
    width: 40px;
    height: 40px;
  }

  body.home .theories-hero + * {
    margin-top: 36px !important;
  }
}