.ccm-member .ccm-guest-only {
  display: none !important;
}

html:not(.ccm-member) .ccm-member-only {
  display: none !important;
}

.ccm-hero {
  padding: 56px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid #e3f1f4;
  background: #f2f9fb;
  color: #1a2b33;
  line-height: 1.7;
}

.ccm-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* イラストの背景の装飾（::before / ::after）がコピーやボタンの上に描かれないよう、コピーを手前に置く */
.ccm-hero-copy { position: relative; z-index: 1; min-width: 0; }
.ccm-hero .ccm-hero-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e3f1f4;
  color: #08758b;
  font-size: 14px;
  font-weight: 700;
}
.ccm-hero .ccm-hero-title {
  margin: 0 0 20px;
  color: #1a2b33;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}
.ccm-hero .ccm-hero-title span { color: #08758b; }
.ccm-hero .ccm-hero-lead {
  margin: 0 0 24px;
  color: #4a5a60;
  font-size: 16px;
}
.ccm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ccm-hero .ccm-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 240px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
}
.ccm-hero .ccm-hero-btn--primary,
.ccm-hero .ccm-hero-btn--primary:visited {
  background: #08758b;
  border: 2px solid #08758b;
  color: #fff;
}
.ccm-hero .ccm-hero-btn--primary:hover,
.ccm-hero .ccm-hero-btn--primary:focus-visible {
  background: #075e70;
  border-color: #075e70;
  color: #fff;
}
.ccm-hero .ccm-hero-btn--secondary,
.ccm-hero .ccm-hero-btn--secondary:visited {
  background: #fff;
  border: 2px solid #08758b;
  color: #075e70;
}
.ccm-hero .ccm-hero-btn--secondary:hover,
.ccm-hero .ccm-hero-btn--secondary:focus-visible { background: #e3f1f4; color: #075e70; }
.ccm-hero .ccm-hero-btn:focus-visible,
.ccm-hero .ccm-hero-login a:focus-visible {
  outline: 3px solid #24343a;
  outline-offset: 2px;
}
.ccm-hero .ccm-hero-login { margin: 8px 0 0; color: #4a5a60; font-size: 13px; }
.ccm-hero .ccm-hero-login a,
.ccm-hero .ccm-hero-login a:visited { color: #075e70; text-decoration: underline; }
.ccm-hero .ccm-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #4a5a60;
  font-size: 13px;
}
.ccm-hero .ccm-hero-trust li { margin: 0; padding: 0; }
.ccm-hero .ccm-hero-trust li::before { content: "✓"; margin-right: 4px; color: #08758b; font-weight: 700; }

/* 登録ボタンを横切る光の帯。動きを減らす設定では停止する。 */
.ccm-hero-shine { position: relative; overflow: hidden; }
.ccm-hero-shine::after {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) skewX(-25deg);
  animation: ccm-hero-shine 3s ease-in-out infinite;
  pointer-events: none;
  content: "";
}
@keyframes ccm-hero-shine {
  0% { transform: translateX(0) skewX(-25deg); }
  25%, 100% { transform: translateX(450%) skewX(-25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ccm-hero-shine::after { display: none; animation: none; }
}

/* 企業データベースのイラスト。装飾だけをカードの背面に置く。 */
.ccm-hero-visual { position: relative; isolation: isolate; width: 100%; max-width: 440px; min-width: 0; margin: 0 auto; line-height: 1.5; }
.ccm-hero-visual::before {
  position: absolute;
  inset: -8% -10% -4% -6%;
  z-index: -1;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: radial-gradient(ellipse at 60% 40%, #d8eef3 0%, #e3f1f4 55%, rgba(227, 241, 244, 0) 72%);
  content: "";
}
.ccm-hero-visual::after {
  position: absolute;
  inset: -5% -6% 2% -8%;
  z-index: -1;
  border: 1px solid #bddfe7;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
  content: "";
}
.ccm-hero-db { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(8,117,139,.12); }
.ccm-hero-db-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #08758b; color: #fff; font-size: 15px; font-weight: 700; }
.ccm-hero-dots { display: flex; gap: 5px; }
.ccm-hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ccm-hero-db-body { padding: 16px; }
.ccm-hero-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dce8ec; border-radius: 999px; color: #4a5a60; font-size: 12px; }
.ccm-hero-search svg { flex: none; width: 18px; height: 18px; }
.ccm-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.ccm-hero-chips span { padding: 3px 12px; border: 1px solid #bddfe7; border-radius: 999px; color: #08758b; font-size: 12px; }
.ccm-hero-chips span:first-child { background: #08758b; border-color: #08758b; color: #fff; }
.ccm-hero-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf2f4; }
.ccm-hero-tile { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
.ccm-hero-tile svg { width: 26px; height: 26px; }
.ccm-hero-tile--green { background: #e6f4ea; color: #2e7d4f; }
.ccm-hero-tile--yellow { background: #fdf3dc; color: #a86b12; }
.ccm-hero-tile--pink { background: #fde8ec; color: #b4234f; }
.ccm-hero-row-copy { flex: 1; min-width: 0; }
.ccm-hero .ccm-hero-row-copy p,
.ccm-hero .ccm-hero-card p { margin: 0 0 6px; color: #1a2b33; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.ccm-hero-row-copy i,
.ccm-hero-card i { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #e6eef1; }
.ccm-hero-row-copy i + i,
.ccm-hero-card i + i { width: 60%; }
.ccm-hero-star { flex: none; width: 20px; height: 20px; color: #9cabb0; }
.ccm-hero-star svg { display: block; width: 100%; height: 100%; }
.ccm-hero-star--kept { color: #d69a23; }
.ccm-hero-star--kept svg { fill: currentColor; }
.ccm-hero-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 14px 12px 0; }
.ccm-hero-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(8,117,139,.10); color: #08758b; }
.ccm-hero-card svg { flex: none; width: 30px; height: 30px; }
.ccm-hero-card div { flex: 1; min-width: 0; }

@media (max-width: 834px) {
  .ccm-hero { padding: 28px 0 32px; }
  .ccm-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .ccm-hero .ccm-hero-title { font-size: 28px; }
  .ccm-hero-actions { flex-direction: column; }
  .ccm-hero .ccm-hero-btn { width: 100%; min-width: 0; }
  .ccm-hero-visual { max-width: 380px; margin: 36px auto 0; }
  /* スマホでは装飾を上にはみ出させない（ボタン・安心材料と重なるため）。円弧の線は出さない */
  .ccm-hero-visual::before { inset: 0 -6% -4% -6%; }
  .ccm-hero-visual::after { display: none; }
}

/* ヘッダーの会員導線 */
.mobile-header-menu-buttons .ccm-header-login .menu-button-in,
.mobile-header-menu-buttons .ccm-header-signup .menu-button-in {
  white-space: nowrap;
}

.mobile-header-menu-buttons .ccm-header-signup .menu-button-in,
.mobile-header-menu-buttons .ccm-header-signup .menu-button-in:visited {
  background: #08758b;
  color: #fff;
  border-radius: 8px;
}

.mobile-header-menu-buttons .ccm-header-signup .menu-button-in:hover,
.mobile-header-menu-buttons .ccm-header-signup .menu-button-in:focus-visible {
  background: #075e70;
  color: #fff;
}

.mobile-header-menu-buttons .ccm-header-signup .menu-button-in .menu-icon,
.mobile-header-menu-buttons .ccm-header-signup .menu-button-in .menu-icon .fa,
.mobile-header-menu-buttons .ccm-header-signup .menu-button-in .menu-caption {
  color: #fff;
}

@media (min-width: 835px) {
  #navi .navi-in > .menu-header {
    flex-wrap: nowrap;
  }

  #navi .navi-in > .menu-header > li.ccm-header-login,
  #navi .navi-in > .menu-header > li.ccm-header-signup,
  #navi .navi-in > .menu-header > li.ccm-header-keep {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 8px;
  }

  /* 末尾に見えるのは、未ログインなら会員登録・ログイン中ならキープ（:last-child は非表示のキープに当たるため使わない） */
  #navi .navi-in > .menu-header > li.ccm-header-signup,
  #navi .navi-in > .menu-header > li.ccm-header-keep {
    margin-right: 8px;
  }

  #navi .navi-in > .menu-header > li.ccm-header-login > a,
  #navi .navi-in > .menu-header > li.ccm-header-signup > a,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a {
    display: inline-flex;
    width: auto;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    box-sizing: border-box;
    align-items: center;
  }

  #navi .navi-in > .menu-header > li.ccm-header-login > a .caption-wrap,
  #navi .navi-in > .menu-header > li.ccm-header-login > a .caption-wrap > div,
  #navi .navi-in > .menu-header > li.ccm-header-signup > a .caption-wrap,
  #navi .navi-in > .menu-header > li.ccm-header-signup > a .caption-wrap > div,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a .caption-wrap,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a .caption-wrap > div {
    width: auto;
  }

  #navi .navi-in > .menu-header > li.ccm-header-signup > a,
  #navi .navi-in > .menu-header > li.ccm-header-signup > a:visited {
    background: #08758b;
    color: #fff;
  }

  #navi .navi-in > .menu-header > li.ccm-header-signup > a:hover,
  #navi .navi-in > .menu-header > li.ccm-header-signup > a:focus-visible {
    background: #075e70;
    color: #fff;
  }

  #navi .navi-in > .menu-header > li.ccm-header-login > a,
  #navi .navi-in > .menu-header > li.ccm-header-login > a:visited,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a:visited {
    background: #fff;
    border: 1px solid #08758b;
    color: #075e70;
  }

  #navi .navi-in > .menu-header > li.ccm-header-login > a:hover,
  #navi .navi-in > .menu-header > li.ccm-header-login > a:focus-visible,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a:hover,
  #navi .navi-in > .menu-header > li.ccm-header-keep > a:focus-visible {
    background: #e3f1f4;
    color: #075e70;
  }
}
