:root {
  --primary-color: #001b44;
  --accent-color: #d76c31; /* 採用情報のオレンジ色に変更 */
  --text-color: #333333;
  --text-muted: #666666;
  --bg-color: #ffffff;
  --section-bg: #f5f7fa;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #001b44;
  --footer-text: #ffffff;
  --transition-speed: 0.3s;
  --container-width: 1220px; /* 参照サイトに合わせる */
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-top: 100px; /* ヘッダーがfixedなのでその分下げる */
}

a {
  text-decoration: none;
  color: inherit;
}

.container,
.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
#header {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #eee;
}

#header .wrap {
  padding-top: 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#header .siteTitle {
  width: 189px;
}

#header .siteTitle img {
  width: 100%;
  height: auto;
}

/* gNav */
#gNav {
  font-size: 14px;
  line-height: 1;
}

#gNav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

#gNav li {
  margin-left: 35px;
}

#gNav li:first-child {
  margin-left: 0;
}

#gNav a {
  display: block;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

#gNav a:hover,
#gNav a.active {
  border-bottom-color: #4c4c4c;
}

#gNav a.active {
  pointer-events: none;
}

#gNav a.recruit {
  width: 160px;
  margin-left: 30px;
  background: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
  padding: 15px 0;
  text-align: center;
  border-radius: 0;
  font-weight: bold;
}

#gNav a.recruit:hover {
  opacity: 0.8;
  border-bottom-color: transparent;
}

/* Mobile Menu Toggle */
#bt-gNav,
label[for="bt-gNav"] {
  display: none;
}

/* --- Responsive --- */
@media only screen and (max-width: 1024px) {
  #gNav li {
    margin-left: 20px;
  }
  #gNav a.recruit {
    width: 140px;
    margin-left: 15px;
  }
}

@media only screen and (max-width: 1100px) {
  body {
    padding-top: 60px;
  }
  #header {
    height: 60px;
  }
  #header .wrap {
    padding: 10px 20px;
  }
  #header .siteTitle {
    width: 140px;
  }

  label[for="bt-gNav"] {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 10000;
    cursor: pointer;
  }

  label[for="bt-gNav"] span,
  label[for="bt-gNav"]::before,
  label[for="bt-gNav"]::after {
    content: "";
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
  }

  label[for="bt-gNav"] span {
    top: 14px;
  }
  label[for="bt-gNav"]::before {
    top: 6px;
  }
  label[for="bt-gNav"]::after {
    top: 22px;
  }

  #bt-gNav:checked + #header label[for="bt-gNav"] span {
    opacity: 0;
  }
  #bt-gNav:checked + #header label[for="bt-gNav"]::before {
    top: 14px;
    transform: translateX(-50%) rotate(45deg);
  }
  #bt-gNav:checked + #header label[for="bt-gNav"]::after {
    top: 14px;
    transform: translateX(-50%) rotate(-45deg);
  }

  #gNav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
    z-index: 9998;
  }

  #bt-gNav:checked + #header #gNav {
    height: calc(100vh - 60px);
  }

  #gNav ul {
    flex-direction: column;
    padding: 40px 20px;
  }

  #gNav li {
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center;
  }

  #gNav a.recruit {
    margin: 20px auto 0;
  }
}

/* --- Footer --- */
#footer {
  border-top: 1px solid #d2d2d2;
  padding: 75px 0 20px;
  background-color: #fff;
  color: var(--text-color);
  margin-top: 60px;
}

#footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#footer .col01 {
  width: 350px;
}

#footer .logo {
  width: 189px;
}

#footer .logo img {
  width: 100%;
  height: auto;
}

#footer .data {
  margin: 25px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

#footer .fNav ul {
  display: flex;
  font-size: 12px;
  line-height: 1;
  list-style: none;
  justify-content: flex-end;
}

#footer .fNav li {
  margin-left: 15px;
}

#footer .fNav a {
  display: block;
  border-bottom: 1px solid transparent;
  padding: 12px 0;
  transition: 0.3s;
}

#footer .fNav a:hover,
#footer .fNav a.active {
  border-bottom-color: #808080;
}

#footer .copyright {
  margin: 20px 0 0;
  font-size: 10px;
  line-height: 1;
  text-align: right;
  color: #999;
}

/* --- Responsive --- */
@media only screen and (max-width: 768px) {
  #footer {
    padding: 50px 0 20px;
  }
  #footer .wrap {
    display: block;
  }
  #footer .col01 {
    width: auto;
    margin-bottom: 30px;
  }
  #footer .logo {
    width: 140px;
  }
  #footer .fNav {
    display: none; /* 参照サイトに合わせてモバイルでは非表示 */
  }
  #footer .copyright {
    text-align: center;
    margin-top: 30px;
  }
}

/* --- Tech Blog Page --- */
.techblog-page {
  background: #f6f8fb;
  font-family:
    "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", sans-serif;
}

.techblog-page #footer {
  margin-top: 0;
}

.techblog-masthead {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 18, 44, 0.94) 0%,
      rgba(0, 27, 68, 0.82) 54%,
      rgba(0, 27, 68, 0.34) 100%
    ),
    url("assets/images/hero-connectivity.png");
  background-position: center center;
  background-size: cover;
}

.techblog-masthead__inner {
  padding: 48px 20px 54px;
}

.techblog-eyebrow {
  margin-bottom: 12px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.techblog-masthead .techblog-eyebrow {
  color: #ffb27a;
}

.techblog-masthead h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.28;
}

.techblog-masthead p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 2;
}

.techblog-content {
  padding: 58px 0 86px;
}

.techblog-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(250px, 1fr);
  gap: 34px;
  align-items: start;
}

.techblog-main {
  min-width: 0;
}

.techblog-section-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.techblog-section-head h2 {
  color: var(--primary-color);
  font-size: 1.9rem;
  line-height: 1.4;
}

.techblog-result {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: right;
}

.techblog-post-list {
  display: grid;
  gap: 18px;
}

.techblog-post {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  transition:
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    transform var(--transition-speed);
}

.techblog-post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 255, 255, 0.72),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(80, 210, 255, 0.18),
      rgba(12, 143, 140, 0.12) 48%,
      rgba(215, 108, 49, 0.18)
    );
  background-size:
    100% 100%,
    220% 220%;
  background-position:
    center,
    0% 50%;
  opacity: 0;
  transition:
    opacity var(--transition-speed),
    background-position 0.6s ease;
}

.techblog-post.is-hidden {
  display: none !important;
}

.techblog-post[hidden],
.techblog-empty[hidden] {
  display: none !important;
}

.techblog-post:hover,
.techblog-post:focus-within {
  border-color: rgba(80, 210, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(80, 210, 255, 0.24),
    0 0 24px rgba(80, 210, 255, 0.32),
    0 18px 40px rgba(0, 27, 68, 0.12);
  transform: translateY(-2px);
}

.techblog-post:hover::before,
.techblog-post:focus-within::before {
  background-position:
    center,
    100% 50%;
  opacity: 1;
}

.techblog-post__thumb {
  position: relative;
  z-index: 1;
  min-height: 100%;
  background-image:
    linear-gradient(rgba(0, 27, 68, 0.08), rgba(0, 27, 68, 0.28)),
    url("assets/images/hero-connectivity.png");
  background-size: cover;
}

.techblog-post__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 27, 68, 0.42),
    rgba(12, 143, 140, 0.28)
  );
}

.techblog-post__thumb--network {
  background-position: center left;
}

.techblog-post__thumb--cloud {
  background-position: center center;
}

.techblog-post__thumb--monitoring {
  background-position: center right;
}

.techblog-post__thumb--wifi {
  background-position: top center;
}

.techblog-post__thumb--security {
  background-position: bottom center;
}

.techblog-post__thumb--helpdesk {
  background-position: bottom right;
}

.techblog-post__thumb--markdown {
  background-position: center;
}

.techblog-post__thumb--markdown::after {
  background: linear-gradient(
    135deg,
    rgba(0, 27, 68, 0.24),
    rgba(12, 143, 140, 0.1)
  );
}

.techblog-post__body {
  position: relative;
  z-index: 1;
  padding: 25px 28px 24px;
}

.techblog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  color: #6a7482;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.techblog-post__meta time {
  color: var(--accent-color);
}

.techblog-post h3 {
  margin-bottom: 11px;
  color: var(--primary-color);
  font-size: 1.3rem;
  line-height: 1.55;
}

.techblog-post p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.techblog-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.techblog-post__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  background: #eef4f4;
  color: #0c6f6e;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background-color var(--transition-speed),
    box-shadow var(--transition-speed),
    color var(--transition-speed),
    text-shadow var(--transition-speed);
}

.techblog-post:hover .techblog-post__tags span,
.techblog-post:focus-within .techblog-post__tags span {
  background: #0c6f6e;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(80, 210, 255, 0.28),
    0 0 18px rgba(80, 210, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.techblog-empty {
  margin-top: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
}

.techblog-sidebar {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 18px;
}

.techblog-side-panel {
  padding: 23px 22px;
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
}

.techblog-profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.techblog-profile::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -16px;
  z-index: 0;
  width: 150px;
  height: 150px;
  background: url("assets/images/tsunagu-mark.png") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.techblog-profile > * {
  position: relative;
  z-index: 1;
}

.techblog-side-panel h2 {
  margin-bottom: 16px;
  color: var(--primary-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

.techblog-profile h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.techblog-profile p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.techblog-search {
  width: 100%;
}

.techblog-search__input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: #f8fbfd;
  border: 1px solid #d9e3ee;
  border-radius: 6px;
  color: var(--primary-color);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  transition:
    background-color var(--transition-speed),
    border-color var(--transition-speed),
    box-shadow var(--transition-speed);
}

.techblog-search__input::placeholder {
  color: #8b97a5;
  font-weight: 500;
}

.techblog-search__input:focus {
  background: #ffffff;
  border-color: rgba(80, 210, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(80, 210, 255, 0.18);
  outline: none;
}

.techblog-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.techblog-filter-list {
  display: grid;
  gap: 4px;
}

.techblog-filter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 4px 0 12px;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--text-color);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--transition-speed),
    border-color var(--transition-speed),
    color var(--transition-speed);
}

.techblog-filter-list button[hidden] {
  display: none !important;
}

.techblog-filter-list button:hover,
.techblog-filter-list button.is-active {
  background: #f4f8fb;
  border-left-color: var(--accent-color);
  color: var(--primary-color);
}

.techblog-filter-list button:disabled {
  cursor: default;
  opacity: 0.72;
}

.techblog-filter-list span {
  min-width: 28px;
  color: #7c8794;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.techblog-filter-more {
  justify-content: center !important;
  min-height: 38px !important;
  margin-top: 8px;
  padding: 0 12px !important;
  background: #f8fbfd !important;
  border: 1px solid #d9e3ee !important;
  border-radius: 6px;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.techblog-filter-more:hover,
.techblog-filter-more:focus-visible {
  background: #eef7fb !important;
  border-color: rgba(80, 210, 255, 0.72) !important;
  outline: none;
}

@media only screen and (max-width: 1024px) {
  .techblog-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .techblog-post {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .techblog-post__body {
    padding: 22px;
  }
}

@media only screen and (max-width: 768px) {
  .techblog-masthead {
    min-height: 270px;
    background-position: center right 36%;
  }

  .techblog-masthead__inner {
    padding: 42px 20px;
  }

  .techblog-masthead h2 {
    font-size: 2rem;
  }

  .techblog-content {
    padding: 42px 0 60px;
  }

  .techblog-layout {
    grid-template-columns: 1fr;
  }

  .techblog-section-head {
    display: block;
  }

  .techblog-result {
    margin-top: 8px;
    text-align: left;
  }

  .techblog-post {
    grid-template-columns: 1fr;
  }

  .techblog-post__thumb {
    min-height: 156px;
  }

  .techblog-post__body {
    padding: 22px 20px 24px;
  }

  .techblog-post h3 {
    font-size: 1.12rem;
  }

  .techblog-sidebar {
    position: static;
  }
}

.techblog-post {
  cursor: pointer;
}

.techblog-post:focus-within,
.techblog-post:hover {
  transform: translateY(-2px);
}

.related-articles[hidden] {
  display: none !important;
}

.article-date-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: -8px 0 30px;
}

.article-date-meta__item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  background: #f4f8fb;
  border: 1px solid #dfe6ee;
  border-radius: 999px;
  color: #536071;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-date-meta__item span {
  margin-right: 8px;
  color: #7c8794;
}

.article-date-meta__item time {
  color: var(--primary-color);
}

.article-copy-tools-mount:empty {
  display: none;
}

.article-copy-tools-mount {
  margin: -20px 0 34px;
}

.article-copy-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 0;
}

.article-copy-tools__button {
  min-height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #d9e3ee;
  border-radius: 6px;
  color: var(--primary-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background-color var(--transition-speed),
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    color var(--transition-speed);
}

.article-copy-tools__button:hover,
.article-copy-tools__button:focus-visible {
  background: #f4f8fb;
  border-color: rgba(80, 210, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(80, 210, 255, 0.16);
  outline: none;
}

.article-copy-tools__button:disabled {
  cursor: default;
  opacity: 0.72;
}

.article-copy-tools__status {
  color: #536071;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-thumbnail {
  margin: 18px 0 0;
  overflow: hidden;
  background: #f4f8fb;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
}

.article-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-articles {
  padding: 0 24px 96px;
  background: #ffffff;
}

.related-articles__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.related-articles__eyebrow {
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.related-articles h2 {
  margin-bottom: 24px;
  color: var(--primary-color);
  font-size: 1.8rem;
  line-height: 1.4;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-article-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  transition:
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    transform var(--transition-speed);
}

.related-article-card:hover,
.related-article-card:focus-visible {
  border-color: rgba(80, 210, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(80, 210, 255, 0.18),
    0 18px 40px rgba(0, 27, 68, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.related-article-card:focus-visible {
  outline: none;
}

.related-article-card__thumb {
  aspect-ratio: 16 / 9;
  background-color: #eef4f4;
  background-position: center;
  background-size: cover;
}

.related-article-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.related-article-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.related-article-card p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.related-article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.related-article-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  background: #eef4f4;
  color: #0c6f6e;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.related-article-card__more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--accent-color);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

@media only screen and (max-width: 1024px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 768px) {
  .related-articles {
    padding: 0 20px 72px;
  }

  .related-articles h2 {
    font-size: 1.45rem;
  }

  .article-date-meta {
    margin: -4px 0 24px;
  }

  .article-copy-tools-mount {
    margin: -12px 0 28px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Article Page Layout Switcher --- */

.article-page.layout-docs .layout {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) 260px;
}

.article-page.layout-docs article > header {
  display: none;
}

.article-page.layout-docs .markdown-card {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.article-page.layout-docs .toc {
  display: block;
}

/* Hero Image Layout：Markdown本文側に効かせる */
.article-page.layout-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 360px);
}

.article-page.layout-hero .layout {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) 240px;
}

.article-page.layout-hero article > header {
  display: none;
}

.article-page.layout-hero .markdown-card {
  margin-top: 40px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.article-page.layout-hero .markdown-body h1:first-child {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.article-page.layout-hero .markdown-body img:first-of-type {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin: 0 0 48px;
  border-radius: 28px;
}

/* Minimal Reading Layout */
.article-page.layout-minimal .layout {
  max-width: 820px;
  display: block;
}

.article-page.layout-minimal article > header {
  display: none;
}

.article-page.layout-minimal .toc {
  display: none;
}

.article-page.layout-minimal .markdown-card {
  margin-top: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.article-page.layout-minimal .markdown-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-page.layout-minimal .markdown-body h1:first-child {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.article-page.layout-minimal .markdown-body p {
  font-size: 1.04rem;
  line-height: 2.05;
}

@media only screen and (max-width: 900px) {
  .article-page.layout-docs .layout,
  .article-page.layout-hero .layout {
    grid-template-columns: 1fr;
  }

  .article-page.layout-docs .toc,
  .article-page.layout-hero .toc {
    position: static;
    order: -1;
  }
}
