/* サービスサイトと同じ配色を、ブログの記事一覧や本文からも使えるようにする。 */
:root {
  --cb-navy: #102f55;
  --cb-blue: #075ba7;
  --cb-orange: #cf570b;
  --cb-teal: #008a8c;
  --cb-text: #223b52;
  --cb-muted: #506779;
  --cb-line: #d3e2ec;
  --cb-pale: #f0f6fa;
  --cb-gutter: clamp(16px, 5vw, 60px);
}

body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.cb-blog-header {
  background: white;
  border-bottom: 1px solid var(--cb-line);
  color: var(--cb-navy);
}

.cb-blog-bar,
.cb-blog-hero-inner {
  width: min(1160px, calc(100% - 2 * var(--cb-gutter)));
  margin-inline: auto;
}

.cb-blog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.cb-blog-logo,
.cb-blog-nav,
.cb-blog-nav a {
  display: inline-flex;
  align-items: center;
}

.cb-blog-logo img,
#footer .logo-footer img {
  display: block;
  width: 181px;
  max-width: 100%;
  height: auto;
}

.cb-blog-nav {
  gap: clamp(15px, 2.5vw, 34px);
  white-space: nowrap;
}

.cb-blog-nav a {
  min-height: 44px;
  color: var(--cb-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.cb-blog-nav a:last-child {
  box-sizing: border-box;
  padding: 8px 16px;
  border: 1px solid #8bb5d6;
  border-radius: 8px;
  color: var(--cb-blue);
}

.cb-blog-nav a:hover,
#footer a:hover {
  color: var(--cb-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cb-blog-nav a:last-child:hover { background: var(--cb-pale); }

.cb-blog-header a:focus-visible,
#footer a:focus-visible {
  outline: 3px solid var(--cb-teal);
  outline-offset: 3px;
}

/* PCはフライヤー左側の白い余白に見出しを置き、右側の人物と青い波を見せる。 */
.cb-blog-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(260px, 30vw, 438px);
  background: white;
}

.cb-blog-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  display: block;
  width: min(100%, 1760px);
}

.cb-blog-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.cb-blog-hero h1 {
  margin: 0;
  max-width: 60%;
  padding: 24px 0 44px;
  background: none;
  border: 0;
  color: var(--cb-navy);
  font-size: clamp(40px, 4.6vw, 70px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.22;
}

.cb-blog-hero h1 span {
  display: inline-block;
  color: var(--cb-orange);
}

/* Cocoon のフッターメニューと著作権表示を使い、白地の公式ロゴにつなげる。 */
#footer {
  margin-top: 0;
  border-top: 1px solid var(--cb-line);
  background: white;
  color: var(--cb-text);
}

#footer .footer-in {
  box-sizing: border-box;
  width: min(1160px, calc(100% - 2 * var(--cb-gutter)));
  margin-inline: auto;
  padding-block: 32px;
}

#footer .logo-footer img {
  margin-inline: auto;
}

#footer a { color: var(--cb-navy); }
#footer .copyright { color: var(--cb-muted); }

@media (max-width: 700px) {
  .cb-blog-bar {
    min-height: 64px;
    gap: 10px;
  }

  .cb-blog-logo { min-width: 0; }
  .cb-blog-logo img { width: clamp(108px, 33vw, 158px); }
  .cb-blog-nav { gap: clamp(9px, 3vw, 18px); }
  .cb-blog-nav a { font-size: 13px; }
  .cb-blog-nav a:last-child { padding-inline: 11px; }

  /* スマホは見出しを画像の上に分ける。専用写真は人物の頭と波が入る比率を保つ。 */
  .cb-blog-hero { min-height: auto; }
  .cb-blog-hero-inner { grid-row: 1; }
  .cb-blog-hero h1 {
    max-width: 100%;
    padding: 26px 0 12px;
    font-size: clamp(28px, 7.5vw, 46px);
  }

  .cb-blog-hero-art {
    position: static;
    z-index: auto;
    grid-row: 2;
    width: 100%;
  }

  .cb-blog-hero-art img {
    height: auto;
    aspect-ratio: 840 / 525;
  }

  #footer .footer-in { padding-block: 24px; }
  #footer .logo-footer img { width: 152px; }
}
