/* OPTIMAL HUB Home 1.0 — すべて .oh-homepage 内だけに適用 */
.oh-homepage, .oh-homepage * { box-sizing: border-box; }
.oh-homepage {
  --oh-blue: #1769aa;
  --oh-navy: #152b3b;
  --oh-gray: #586b78;
  --oh-line: #e4eaf0;
  --oh-paper: #fff;
  width: min(1160px, calc(100vw - 32px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 4px 0 72px;
  color: var(--oh-navy);
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
.oh-homepage h1, .oh-homepage h2, .oh-homepage h3, .oh-homepage p { margin: 0; padding: 0; }
.oh-homepage h1::before, .oh-homepage h2::before, .oh-homepage h3::before { display: none !important; }
.oh-homepage a { color: inherit; text-decoration: none; }
.oh-homepage a:hover { color: inherit; }
.oh-home__hero {
  min-height: 395px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(115deg, #f0f5f8 0%, #e3edf2 62%, #d2e1e8 100%);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.oh-home__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(55, 139, 155, .18), transparent 38%),
    linear-gradient(100deg, #f8fafb 0%, rgba(248,250,251,.97) 30%, rgba(248,250,251,.72) 55%, rgba(248,250,251,.07) 91%);
}
.oh-home__hero-photo {
  position: absolute;
  z-index: -2;
  width: 100%; height: 100%;
  left: 0; top: 0;
  object-fit: cover;
  object-position: center;
}
.oh-home__hero-content { max-width: 590px; padding: 56px clamp(22px, 5.2vw, 72px); }
.oh-home__kicker, .oh-home__section-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--oh-blue);
}
.oh-home__hero h1 { margin: 18px 0 18px; font-size: clamp(29px, 4.2vw, 48px); letter-spacing: -.035em; line-height: 1.35; font-weight: 800; color: var(--oh-navy); }
.oh-home__hero-lead { max-width: 440px; font-size: 15px; line-height: 1.95; color: #344c5d; }
.oh-home__primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; margin-top: 24px; padding: 12px 20px; border-radius: 4px; color: #fff !important; background: var(--oh-blue); font-weight: 700; font-size: 14px; transition: background .15s; }
.oh-home__primary-button:hover { background: #0d527f; color: #fff !important; }
.oh-home__section { margin-top: 62px; }
.oh-home__section--search { margin-top: 27px; }
.oh-home__search { display: flex; align-items: center; gap: 22px; padding: 19px 24px; border: 1px solid var(--oh-line); border-radius: 6px; background: #fafcfd; }
.oh-home__search label { font-weight: 700; font-size: 15px; white-space: nowrap; }
.oh-home__search-row { display: flex; width: 100%; }
.oh-home__search input[type="search"] { min-width: 0; flex: 1; padding: 12px 15px; font-size: 14px; height: auto; margin: 0; background: #fff; color: var(--oh-navy); border: 1px solid #ced9e2; border-right: 0; border-radius: 4px 0 0 4px; box-shadow: none; }
.oh-home__search button { appearance: none; border: 0; border-radius: 0 4px 4px 0; background: var(--oh-blue); color: #fff; padding: 0 22px; white-space: nowrap; font-weight: 700; font-size: 14px; cursor: pointer; }
.oh-home__search button:hover { background: #0d527f; }
.oh-home__section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.oh-home__section-heading h2 { margin-top: 5px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; font-weight: 800; color: var(--oh-navy); }
.oh-home__section-heading > p { color: var(--oh-gray); font-size: 13px; }
.oh-home__categories { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.oh-home__category, .oh-home__article { background: var(--oh-paper); border: 1px solid var(--oh-line); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(27,44,62,.035); transition: border-color .16s, box-shadow .16s; }
.oh-home__category:hover, .oh-home__article:hover { border-color: #bbd0df; box-shadow: 0 5px 20px rgba(27,44,62,.09); }
.oh-home__category-image, .oh-home__article-image { overflow: hidden; background: #e9eff2; aspect-ratio: 16 / 9; position: relative; }
.oh-home__thumb { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none !important; margin: 0 !important; border-radius: 0 !important; }
.oh-home__category-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px; }
.oh-home__category h3 { font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--oh-navy); }
.oh-home__category p { color: var(--oh-gray); font-size: 12px; margin-top: 5px; line-height: 1.65; }
.oh-home__round-arrow { flex: 0 0 29px; height: 29px; line-height: 29px; text-align: center; background: #edf6fb; border-radius: 50%; color: var(--oh-blue); font-size: 17px; }
.oh-home__post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 18px; }
.oh-home__article-link { display: flex; flex-direction: column; height: 100%; }
.oh-home__article-text { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 15px 18px 16px; }
.oh-home__eyebrow { color: var(--oh-blue); font-weight: 700; font-size: 11px; margin-bottom: 6px; }
.oh-home__article h3 { font-size: 16px; line-height: 1.65; font-weight: 800; color: var(--oh-navy); }
.oh-home__article-text > p { color: var(--oh-gray); font-size: 12px; margin-top: 10px; }
.oh-home__article-bottom { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 18px; }
.oh-home__article-bottom time { font-size: 11px; color: #7a8994; }
.oh-home__article-bottom span { color: var(--oh-blue); font-size: 18px; }
.oh-home__image-empty { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; color: #7995a7; font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.oh-home__empty { padding: 23px; background: #f7fafc; border-radius: 5px; }
.oh-home__footer-note { margin-top: 66px; display: grid; grid-template-columns: 1fr 1.65fr; gap: 28px; background: #f1f6f9; border-radius: 6px; padding: 30px 36px; }
.oh-home__footer-note h2 { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; margin-top: 7px; font-weight: 800; }
.oh-home__footer-note > p { font-size: 13px; line-height: 1.9; color: #40596a; }
.oh-homepage a:focus-visible, .oh-homepage input:focus-visible, .oh-homepage button:focus-visible { outline: 3px solid #e0a935; outline-offset: 3px; }
@media (max-width: 760px) {
  .oh-homepage { width: calc(100vw - 24px); margin-bottom: 48px; }
  .oh-home__hero { min-height: 350px; }
  .oh-home__hero-content { padding: 34px 25px; }
  .oh-home__hero h1 { margin: 12px 0 14px; }
  .oh-home__hero-lead { max-width: 340px; font-size: 13px; }
  .oh-home__hero::after { background: linear-gradient(90deg, rgba(248,250,251,.98), rgba(248,250,251,.85) 70%, rgba(248,250,251,.25)); }
  .oh-home__section { margin-top: 42px; }
  .oh-home__section--search { margin-top: 22px; }
  .oh-home__section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .oh-home__section-heading > p { font-size: 12px; }
  .oh-home__search { flex-direction: column; align-items: stretch; padding: 15px; gap: 9px; }
  .oh-home__search label { font-size: 13px; }
  .oh-home__categories { grid-template-columns: 1fr; gap: 12px; }
  .oh-home__category { display: flex; align-items: stretch; min-height: 116px; }
  .oh-home__category-image { flex: 0 0 38%; aspect-ratio: 4/3; }
  .oh-home__category-body { padding: 14px; flex: 1; }
  .oh-home__category h3 { font-size: 16px; }
  .oh-home__post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .oh-home__article-text { padding: 12px; }
  .oh-home__article h3 { font-size: 14px; }
  .oh-home__article-text > p { display: none; }
  .oh-home__footer-note { grid-template-columns: 1fr; padding: 22px; gap: 10px; margin-top: 48px; }
}
@media (max-width: 390px) {
  .oh-home__search button { padding: 0 12px; font-size: 12px; }
  .oh-home__category-image { flex-basis: 35%; }
  .oh-home__category-body { padding: 10px; }
  .oh-home__category p { font-size: 11px; }
}


/* v1.2.0 — 実際のHTMLクラスに対応したレスポンシブ改善 */
.oh-homepage .oh-home__article h3,
.oh-homepage .oh-home__category h3 {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
.oh-homepage .oh-home__article-image,
.oh-homepage .oh-home__category-image { width: 100%; }
.oh-homepage .oh-home__article-image img,
.oh-homepage .oh-home__category-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
.oh-homepage .oh-home__section-heading h2 { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
@media (max-width: 760px) {
  .oh-homepage { width: calc(100vw - 28px); }
  .oh-homepage .oh-home__post-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  .oh-homepage .oh-home__article-image { aspect-ratio: 16 / 9; }
  .oh-homepage .oh-home__article-text { padding: 18px 18px 17px; }
  .oh-homepage .oh-home__article h3 { font-size: 18px !important; line-height: 1.65 !important; letter-spacing: .01em; }
  .oh-homepage .oh-home__article-text > p { display: block; }
  .oh-homepage .oh-home__categories { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .oh-homepage .oh-home__category { display: block; min-height: 0; }
  .oh-homepage .oh-home__category-image { width: 100%; aspect-ratio: 16 / 8.5; }
  .oh-homepage .oh-home__category-body { padding: 17px 18px 19px; }
  .oh-homepage .oh-home__category h3 { font-size: 18px !important; }
  .oh-homepage .oh-home__category p { font-size: 13px; }
  .oh-homepage .oh-home__hero { min-height: 350px; }
  .oh-homepage .oh-home__hero-content { padding: 38px 24px; }
  .oh-homepage .oh-home__section-heading h2 { font-size: 24px; }
}


/* v1.2.1 — メイン写真は背景画像として描画し、負のz-indexに依存しない。 */
.oh-homepage .oh-home__hero--has-image {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.oh-homepage .oh-home__hero--has-image::after {
  z-index: 0;
  background: linear-gradient(90deg, rgba(248,250,251,.97) 0%, rgba(248,250,251,.83) 37%, rgba(248,250,251,.20) 75%, rgba(248,250,251,.05) 100%);
}
.oh-homepage .oh-home__hero--has-image .oh-home__hero-content {
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .oh-homepage .oh-home__hero--has-image {
    min-height: 480px;
    background-position: 56% center;
    align-items: flex-start;
  }
  .oh-homepage .oh-home__hero--has-image::after {
    background: linear-gradient(to bottom, rgba(248,250,251,.98) 0%, rgba(248,250,251,.94) 36%, rgba(248,250,251,.62) 58%, rgba(248,250,251,.08) 90%);
  }
  .oh-homepage .oh-home__hero--has-image .oh-home__hero-content {
    padding: 32px 24px 172px;
  }
}


/* v1.2.2 — 写真をimg要素としてレイヤー表示。Cocoonの背景・疑似要素との競合を回避 */
.oh-homepage .oh-home__hero--has-image {
  isolation: isolate;
  position: relative;
  background-color: #e6edf0;
}
.oh-homepage .oh-home__hero--has-image::after { display: none !important; }
.oh-homepage .oh-home__hero--has-image .oh-home__hero-actual-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 1 !important;
  border-radius: 0 !important;
}
.oh-homepage .oh-home__hero--has-image .oh-home__hero-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(248,250,251,.97) 0%,
    rgba(248,250,251,.88) 33%,
    rgba(248,250,251,.30) 75%,
    rgba(248,250,251,.08) 100%);
}
.oh-homepage .oh-home__hero--has-image .oh-home__hero-content {
  position: relative;
  z-index: 3;
}
@media (max-width: 760px) {
  .oh-homepage .oh-home__hero--has-image { min-height: 480px; align-items: flex-start; }
  .oh-homepage .oh-home__hero--has-image .oh-home__hero-actual-image {
    object-position: 48% center !important;
  }
  .oh-homepage .oh-home__hero--has-image .oh-home__hero-wash {
    background: linear-gradient(to bottom,
      rgba(248,250,251,.96) 0%,
      rgba(248,250,251,.93) 31%,
      rgba(248,250,251,.55) 60%,
      rgba(248,250,251,.08) 100%);
  }
  .oh-homepage .oh-home__hero--has-image .oh-home__hero-content {
    padding: 30px 24px 180px;
  }
}
