/*
Theme Name: ESTEAL SWELL Child
Theme URI: https://www.esteal.co.jp/
Description: SWELL child theme for ESTEAL / Off-MarketDB corporate renewal.
Author: ESTEAL
Template: swell
Version: 1.0.0
Text Domain: esteal-swell-child
*/

:root {
  --es-navy: #071527;
  --es-blue: #1769ff;
  --es-sky: #eaf3ff;
  --es-cyan: #21b8ff;
  --es-green: #16a37b;
  --es-text: #172033;
  --es-muted: #667085;
  --es-border: #e6ebf2;
  --es-bg: #f7faff;
  --es-white: #ffffff;
  --es-radius: 22px;
  --es-shadow: 0 18px 45px rgba(7, 21, 39, 0.10);
}

body {
  color: var(--es-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: #fff;
}

/* SWELL default spacing adjustment */
.home .l-mainContent__inner,
.page-template-template-offmarket-top .l-mainContent__inner {
  max-width: none;
  padding: 0;
}

.home .c-pageTitle,
.page-template-template-offmarket-top .c-pageTitle {
  display: none;
}

.es-lp {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 42%, #ffffff 100%);
}

.es-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.es-section {
  padding: 96px 0;
}

.es-section--soft {
  background: var(--es-bg);
}

.es-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--es-sky);
  color: var(--es-blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}

.es-title {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--es-navy);
}

.es-title--center,
.es-lead--center {
  text-align: center;
}

.es-lead {
  color: var(--es-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.es-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.es-btn:hover {
  transform: translateY(-2px);
}

.es-btn--primary {
  background: linear-gradient(135deg, var(--es-blue), var(--es-cyan));
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(23, 105, 255, .25);
}

.es-btn--secondary {
  background: #fff;
  color: var(--es-navy) !important;
  border: 1px solid var(--es-border);
}

.es-hero {
  position: relative;
  padding: 84px 0 70px;
}

.es-hero:before {
  content: "";
  position: absolute;
  inset: -120px -20% auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(33, 184, 255, .22), rgba(33, 184, 255, 0) 64%);
  pointer-events: none;
}

.es-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: center;
}

.es-hero__copy {
  max-width: 620px;
}

.es-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.es-stat {
  padding: 18px 16px;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
}

.es-stat strong {
  display: block;
  color: var(--es-navy);
  font-size: 24px;
  line-height: 1;
  text-align:center;
}

.es-stat span {
  display: block;
  margin-top: 8px;
  color: var(--es-muted);
  font-size: 12px;
  font-weight: 700;
}

.es-dashboard {
  position: relative;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--es-shadow);
  border: 1px solid var(--es-border);
  padding: 18px;
}

.es-dashboard__bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 16px;
  background: #f2f6fb;
}

.es-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d2e1;
}

.es-dashboard__body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.es-db-card {
  padding: 18px;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  background: #fff;
}

.es-db-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  color: var(--es-navy);
}

.es-db-card__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--es-sky);
  color: var(--es-blue);
  font-size: 12px;
  font-weight: 700;
}

.es-logo-strip {
  padding: 34px 0;
  border-top: 1px solid var(--es-border);
  border-bottom: 1px solid var(--es-border);
  background: #fff;
}

.es-logo-strip__text {
  text-align: center;
  color: var(--es-muted);
  font-weight: 700;
  margin-bottom: 18px;
}

.es-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.es-logo-placeholder {
  min-height: 58px;
  border-radius: 14px;
  background: #f5f7fb;
  border: 1px solid var(--es-border);
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-weight: 800;
  font-size: 13px;
}

.es-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.es-card {
  padding: 28px;
  border-radius: var(--es-radius);
  background: #fff;
  border: 1px solid var(--es-border);
  box-shadow: 0 8px 24px rgba(7, 21, 39, .04);
}

.es-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--es-sky);
  color: var(--es-blue);
  font-weight: 900;
  margin-bottom: 18px;
}

.es-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--es-navy);
}

.es-card p {
  margin: 0;
  color: var(--es-muted);
  line-height: 1.8;
}

.es-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.es-check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.es-check-list li {
  padding: 18px 18px 18px 48px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--es-border);
  position: relative;
  font-weight: 700;
}

.es-check-list li:before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--es-green);
  font-weight: 900;
}

.es-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.es-flow__item {
  position: relative;
  padding: 26px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--es-border);
}

.es-flow__num {
  color: var(--es-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.es-flow__item h3 {
  margin: 12px 0 10px;
  font-size: 18px;
  color: var(--es-navy);
}

.es-flow__item p {
  margin: 0;
  color: var(--es-muted);
  line-height: 1.7;
  font-size: 14px;
}

.es-faq {
  max-width: 900px;
  margin: 42px auto 0;
}

.es-faq details {
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.es-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--es-navy);
}

.es-faq p {
  margin: 14px 0 0;
  color: var(--es-muted);
  line-height: 1.8;
}

.es-cta {
  padding: 78px 0;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(33,184,255,.28), transparent 38%), linear-gradient(135deg, #071527, #102a4a);
}

.es-cta__box {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.es-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.es-cta p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}

@media (max-width: 960px) {
  .es-hero__grid,
  .es-split,
  .es-cta__box {
    grid-template-columns: 1fr;
    display: grid;
  }
  .es-card-grid,
  .es-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .es-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .es-container {
    width: min(100% - 24px, 1120px);
  }
  .es-section {
    padding: 64px 0;
  }
  .es-hero {
    padding: 48px 0 48px;
  }
  .es-stats,
  .es-card-grid,
  .es-flow,
  .es-logos {
    grid-template-columns: 1fr;
  }
  .es-title {
    font-size: 36px;
  }
  .es-btns,
  .es-btn {
    width: 100%;
  }
  .es-cta__box {
    text-align: center;
  }
}



/* ===========================
   OFF-MARKETDB Header
=========================== */

/* ヘッダー全体 */
.page-id-835 .l-header {
    background:#fff;
    box-shadow:0 1px 8px rgba(0,0,0,.05);
}

.page-id-835 .l-header__inner {
    min-height:72px;
}

/* ロゴ */
.page-id-835 .c-headLogo img {
    max-height:38px;
    width:auto;
}

/* メニュー間隔 */
.page-id-835 .c-gnav {
    gap:32px;
}

.page-id-835 .c-gnav > li > a {
    font-size:15px;
    font-weight:600;
    color:#1f2937;
}

/* ログイン */
.page-id-835 .c-gnav > li:nth-last-child(2) > a {
    font-weight:700;
}

/* ===========================
   無料会員登録ボタン
=========================== */

.page-id-835 .c-gnav > li:last-child{
    display:flex;
    align-items:center;
}

.page-id-835 .c-gnav > li:last-child > a{
    display:flex;
    align-items:center;
    justify-content:center;

    height:46px;
    padding:0 20px;

    background:#2563eb;
    color:#fff !important;

    border-radius:8px;

    font-size:14px;
    font-weight:700;
    line-height:1;

    box-shadow:none;
}

/* 無料会員登録ボタンの下線ホバーを無効化 */
.page-id-835 .c-gnav > li:last-child > a::after,
.page-id-835 .c-gnav > li:last-child > a::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    transform: none !important;
}

.page-id-835 .c-gnav > li:last-child > a:hover {
    text-decoration: none !important;
}
.page-id-835 .c-gnav > li:last-child > a:hover {
    background: #1d4ed8;
    color: #fff !important;
    opacity: 1;
}

/* ===========================
   ヒーローとの余白
=========================== */

.page-id-835 #content,
.page-id-835 .l-content {
    padding-top:0 !important;
}

.page-id-835 .es-hero {
    padding-top:48px;
}

/* ===========================
   PCだけ微調整
=========================== */

@media(min-width:1200px){

    .page-id-835 .l-header__inner{
        padding-left:40px;
        padding-right:40px;
    }

    .page-id-835 .c-gnav{
        gap:36px;
    }
}

/* ヒーロー右側の画像 */
.page-id-835 .es-hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-id-835 .es-hero__visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(15, 23, 42, .14));
}

/* 旧モックアップを使わない場合 */
.page-id-835 .es-dashboard {
  display: none !important;
}

@media (max-width: 960px) {
  .page-id-835 .es-hero__visual {
    justify-content: center;
  }

  .page-id-835 .es-hero__visual img {
    max-width: 520px;
  }
}

.es-logos--with-image {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.es-logo-item {
  min-height: 170px;
  padding: 24px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--es-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(7, 21, 39, .04);
}

.es-logo-item img {
  width: 100%;
  object-fit: contain;
  margin-bottom: 4px;
}

.es-logo-item span {
  font-size: 15px;
  font-weight: 900;
  color: var(--es-navy);
}

.es-logo-item small {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--es-muted);
}

@media (max-width: 960px) {
  .es-logos--with-image {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .es-logos--with-image {
    grid-template-columns: 1fr;
  }
}
