/* =========================================================
   Layout
========================================================= */
:root {
  --brand-red: #de141e;
  --brand-red-2: #e22b26;
  --hero-bg: #f3f8fc;
  --gold: #c3a950;
  --offwhite: #fffff2;
  --muted: #666;
  --border: #e22b26;
  --shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --container: 1240px;
  --gutter: 24px;
}

/* ========================================
   Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "メイリオ",
    "Meiryo", sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: #111;
  background-color: #ffffff;
  letter-spacing: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  display: block;
}

.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.8rem;
  margin: 8px 0 12px;
}

.section-label-en {
  font-size: 1.4rem;
  color: #d62828;
  letter-spacing: 0.08em;
}

.section-lead {
  font-size: 1.5rem;
  color: #555;
}

.section-more {
  margin-top: 40px;
  text-align: center;
}

.button-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 999px;
  border: 2px solid #e21b1b;
  color: #e21b1b;
  font-size: 1.5rem;
  font-weight: 500;
  background-color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-more::after {
  content: "→";
  display: inline-block;
  margin-left: 12px;
  font-size: 1.4rem;
}

.button-more:hover {
  background-color: #e21b1b;
  color: #fff;
}

/* ========================================
   Header
======================================== */
.site-header {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 11;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1380px;
  padding-left: 5vi;
  padding-right: 5vi;
  padding-top: 2.875rem;
}

.header-inner {
  display: flex;
  gap: 15px;
}

.header-main {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  width: 300px;
  height: 50px;
}

.logo-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 1.2rem;
  line-height: 1.4;
}

.logo-text-sub {
  font-size: 1rem;
  color: #ccc;
}

.global-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  column-gap: 4vi;
  font-size: 1.5rem;
  position: relative;
}

.sub-menu {
  position: absolute;
  z-index: 2;
  top: 3rem;
  padding: 20px 30px;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  display: flex;
  gap: 24px;
}

.nav-list .sub-menu {
  transition: scale .4s;
  transform-origin: center top;
  scale: 1 0;
}

.nav-list li:has(> .sub-menu):hover .sub-menu {
  scale: 1;
}

.sub-menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s;
}

.sub-menu-item a:hover {
  transform: scale(1.05);
}

.sub-menu-item span {
  margin-top: 1rem;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e21b1b;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #fff;
  background-color: #000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  row-gap: 5px;
}

.nav-toggle-bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-sub {
  display: flex;
  width: 147.79px;
  padding: 16px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.header-sub::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.header-sub:hover::after {
    left: 130%;
}

.global-nav-sp {
  display: none;
}

/* ========================================
   Hero
======================================== */
.hero {
  padding: 1rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 250px 250px 240px;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  border-radius: 24px;
  overflow: hidden;
  background: #ddd;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  border: 10px solid #fff;
}

.hero-visual img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.hero-vertical {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hero-landscape {
  grid-column: 1 / span 2;
}

.hero-large {
  grid-column: 3 / span 3;
  grid-row: 1 / span 3;
}

.hero-label {
  width: 100%;
  max-width: 260px;
  background: #fff;
  position: absolute;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 0;
  margin: 0;
  border-radius: 30px 0 0 0;
  bottom: -1px;
  right: -1px;
}

.hero-label span {
  position: relative;
  padding-left: 2rem;
}

.hero-label span::before {
  content: "";
  width: 2rem;
  height: 2rem;
  background: #d62828;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: -1rem;
  transform: translateY(-50%);
}

@media (any-hover: hover) {
  .hero-visual:hover {
    border: 10px solid #d62828;
    cursor: pointer;
    z-index: 1;
  }

  .hero-visual:hover .hero-label {
    background: #d62828;
    color: #fff;
  }
}

@media (width <=1024px) {
  .hero-inner {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 250px);
  }

  .hero-large {
    grid-column: 1 / span 2;
    grid-row: 4 / span 6;
  }

  .hero-small1 {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-small2 {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (width <=768px) {
  .hero-inner {
    grid-template-rows: 420px 160px 160px 150px;
  }

  .hero-visual {
    border: none;
  }

  .hero-label {
    font-size: 14px;
    bottom: -1px;
    right: -1px;
    max-width: 150px;
    background: #000;
    color: #fff;
  }

  .hero-label span {
    padding-left: 0;
  }

  .hero-label span::before {
    content: none;
  }

  .hero-large .hero-label {
    max-width: 180px;
  }

  .hero-vertical {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .hero-landscape {
    grid-row: 4;
  }

  .hero-large {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .hero-small1 {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-small2 {
    grid-column: 2;
    grid-row: 3;
  }

  .hero-visual img {
    height: 100%;
    object-fit: cover;
  }
}


/* ========================================
   About
======================================== */
.section-about {
  background-color: #f4f8fc;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 24px 16px 18px;
  border: 1px solid #f28b82;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.about-card-icon {
  width: 64px;
  height: 64px;
}

.about-card-title {
  font-size: 1.5rem;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Works
======================================== */
.works-floor-map {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #333;
  aspect-ratio: 125 / 73;
  margin-bottom: 40px;
}

.works-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.works-category-card {
  border: 1px solid #e21b1b;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 12px;
}

.works-category-icon {
  width: 140px;
  height: 140px;
}

.works-category-title {
  font-size: 1.5rem;
}

/* ========================================
   Topics
======================================== */
.section-topics {
  background-color: #f4f8fc;
}

.topics-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.topics-card {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: calc((100% - 60px) / 4);
}

.topics-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topics-thumb {
  position: relative;
  overflow: hidden;
}

.topics-thumb::before {
  content: "";
  display: block;
  padding-top: calc((150/265)*100%);
}

.topics-thumb img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: 0.5s;
}

.topics-link:hover .topics-thumb img,
.topics-link:focus .topics-thumb img {
  transform: scale(1.2);
}

.topics-body {
  padding: 16px 18px 20px;
}

.topics-category {
  display: inline-block;
  font-size: 1.3rem;
  color: #e21b1b;
  margin-bottom: 6px;
  padding: 0 1rem;
  border: 1px solid #e21b1b;
}

.topics-text {
  font-size: 1.4rem;
  color: #555;
}

/* ========================================
   News
======================================== */
.section-news {
  background-color: #fff;
}

.news-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  row-gap: 12px;
}

.news-item {
  border-radius: 999px;
  background-color: #f4f4f4;
}

.news-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 10px 22px;
  font-size: 1.4rem;
}

.news-date {
  color: #777;
}

.news-label {
  width: max-content;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #999;
  color: #fff;
  font-size: 1.3rem;
}

.news-title {
  font-size: 1.4rem;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  color: #111;
}

.footer-contact {
  background-color: #000;
  color: #fff;
  padding: 48px 24px;
}

.footer-contact-inner {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid #e21b1b;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.footer-contact-block {
  padding: 32px 32px 40px;
  position: relative;
}

.footer-contact-block+.footer-contact-block {
  border-left: 1px dashed #e21b1b;
}

.footer-contact-title {
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.footer-contact-text {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

.footer-button-group {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-contact-button.download-button {
  pointer-events: none;
}

.footer-contact-button-icon {
  font-size: 1.6rem;
}

.footer-contact-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px #fff3 inset;
}

/* PC（画面幅768px以上）ではリンクを無効化 */
@media screen and (min-width: 768px) {
  .tel-button>.footer-contact-button {
    pointer-events: none;
    /* クリック無効 */
    text-decoration: none;
    /* 下線を消す（任意） */
    color: inherit;
    /* 文字色を親要素に合わせる（任意） */
    cursor: default;
    /* カーソルを通常に（任意） */
  }
}


.tel-button p {
  font-size: 11px;
  text-align: center;
}

.footer-main {
  padding: 56px 24px 32px;
  background-color: #fff;
  font-size: 14px;
}

.footer-main-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  column-gap: 40px;
  align-items: flex-start;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo-image {
  width: 100px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
}

.footer-nav-heading {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-nav a {
  color: #444;
}

.footer-info-block {
  font-size: 1.3rem;
  margin-top: 1em;
}

.footer-social {
  display: flex;
  column-gap: 12px;
  margin-bottom: 16px;
}

.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  /* background-color: #111; */
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
}

.footer-company-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-company-address {
  margin: 0 0 12px;
  color: #555;
}

.footer-cert {
  display: flex;
  column-gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-cert img {
  width: 72px;
}

.footer-bottom {
  padding: 12px 24px 20px;
  background-color: #fff;
  text-align: center;
}

.footer-bottom p {
  font-size: 1.1rem;
  color: #777;
  margin: 0;
}

/* ========================================
   Responsive (max-width: 1024px)
======================================== */

@media (width <=1024px) {
  .header-inner {
    padding: 0;
  }

  .header-main {
    padding: 5px 10px;
    position: fixed;
    left: 0;
    top: 15px;
    right: 0;
    z-index: 100;
    width: 90%;
    border-radius: 8px;
  }

  .header-sub {
    display: none;
  }

  .global-nav {
    display: none;
  }

  .global-nav-sp {
    position: fixed;
    inset: 0;
    z-index: 10;
    background-color: #F3F8FC;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: block;
    padding-top: 120px;
    text-align: center;
  }

  .global-nav-sp.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    row-gap: 40px;
    font-size: 1.8rem;
    padding: 0 24px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    right: 7%;
    z-index: 9999;
  }

  .nav-link-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    gap: 24px;
  }

  .nav-link-sub a {
    position: relative;
    margin-right: 20px;
    font-size: 14px;
  }

  .nav-link-sub a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 2px #121212;
    border-right: solid 2px #121212;
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
    right: -11px;
  }

  .nav-link-contact a {
    border-radius: 8px;
    border: 1px solid #E22B26;
    background: #FFF;
    padding: 5px 30px;
  }

  .footer-contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-logo-block {
    align-items: center;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .footer-nav-column {
    text-align: center;
  }

  .footer-nav-column ul {
    display: flex;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-company-address {
    margin-bottom: 0;
  }
}

/* ========================================
   Responsive (max-width: 768px)
======================================== */
@media (max-width: 768px) {
  .section {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .logo-image {
    width: 300px;
  }

  .logo-text {
    display: none;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  .section-about {
    padding-top: 40px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .about-card {
    padding: 18px 8px 16px;
    row-gap: 12px;
  }

  .works-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .works-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-grid {
    margin-top: -20px;
  }

  .topics-card {
    width: calc((100% - 20px) / 2);
    margin-top: 20px;
  }

  .topics-body {
    padding: 10px;
  }

  .news-list {
    row-gap: 10px;
  }

  .news-link {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 10px 16px 10px 28px;
  }

  .news-title {
    font-size: 1.3rem;
  }

  .footer-contact-block+.footer-contact-block {
    border-left: none;
    border-top: 1px dashed #e21b1b;
  }

  .footer-button-group {
    gap: 20px;
  }

  .footer-contact-block {
    padding: 20px;
  }
}

/* ========================================
   下層ページ共通
======================================== */
.page-hero {
  background: var(--hero-bg);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  padding: 132px var(--gutter) 80px;
}

.page-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.page-hero__title {
  margin-top: 60px;
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  color: var(--brand-red-2);
  letter-spacing: 0.05em;
}

.page-hero__divider {
  width: 100px;
  height: 2px;
  background: var(--border);
  margin: 22px auto 18px;
}

.page-hero__lead {
  margin: 60px auto 0;
  max-width: 800px;
  line-height: 1.7;
  text-align: justify;
}

.page-section-title {
  margin: 0 0 40px;
  font-size: 32px;
  line-height: 45px;
  font-weight: 700;
}

.page-section-title--spaced {
  margin-top: 56px;
}

.page-lead {
  line-height: 28px;
  white-space: normal;
  margin: 0;
}

.page-layout {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 80px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  position: relative;
}

.page-sidenav {
  position: sticky;
  top: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 24%;
}

.page-sidenav__header {
  background: var(--brand-red-2);
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px;
  border-radius: var(--radius-lg);
  margin: 10px;
}

.page-sidenav__nav {
  padding: 18px 22px 24px;
  display: grid;
  gap: 18px;
}

.page-sidenav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.page-sidenav__link.is-active {
  color: #de141e;
}

.page-sidenav__arrow {
  color: #999;
  font-weight: 700;
  width: 28px;
  flex: none;
}

.page-content {
  padding-bottom: 80px;
  width: 100%;
  max-width: 900px;
}

.page-section+.page-section {
  margin-top: 80px;
}

.page-content>.page-section:first-child {
  margin-top: 0;
}

.marquee-container {
  display: flex;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-top: 40px;
  overflow-x: hidden;
}

.marquee-inner {
  display: flex;
  gap: 15px;
  animation: marquee 20s linear infinite .5s both;
}

.marquee-inner+.marquee-inner {
  margin-left: 15px;
}

.marquee-item {
  width: calc(100vw/ 4);
}

.marquee-inner img {
  width: 100%;
  height: 100%;
  max-width: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


.page-bottom-section {
  margin: 0 auto 80px;
  position: relative;
  padding: 60px var(--gutter) 0;
  max-width: 1200px;
}

.media {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.media-body,
.media-thumb {
  width: calc(100% / 2);
}

.media-thumb {
  margin: 0;
  background: #999;
}

.media-title {
  margin-top: 0;
}

.media+.media {
  margin-top: 60px;
}

.media._reverse {
  flex-direction: row-reverse;
}

.section-bg {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  height: 400px;
  width: 100%;
  background: url(../img/company2.jpg) no-repeat;
  background-size: cover;
  margin-top: 80px;
}

@media (max-width: 1200px) {
  .page-content {
    width: 75%;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 96px var(--gutter) 42px;
  }

  .page-hero__title {
    font-size: 24px;
    margin-top: 20px;
  }

  .page-hero__lead {
    margin-top: 40px;
  }

  .page-section-title {
    font-size: 20px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  .page-hero__divider {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 auto 18px;
  }

  .page-layout {
    flex-direction: column;
    padding-top: 40px;
  }

  .page-section+.page-section {
    margin-top: 40px;
  }

  .page-bottom-section {
    padding-top: 0;
  }

  .page-sidenav,
  .page-content {
    width: 100%;
  }

  .page-sidenav {
    display: none;
  }

  .page-content {
    padding-bottom: 40px;
  }

  .page-section {
    margin-top: 40px;
  }

  .media {
    flex-direction: column;
  }

  .media.media._reverse {
    flex-direction: column;
  }

  .media-body,
  .media-thumb {
    width: 100%;
  }

  .section-bg {
    margin-top: 0;
  }
}

@media (width < 500px) {
  .logo-link {
    width: 60px;
  }
}

@media (orientation: portrait) {
  .page-layout {
    flex-direction: column;
    padding-top: 40px;
  }

  .page-sidenav {
    display: none;
  }

  .page-content {
    width: 100%;
    margin: auto;
  }
}

/* ========================================
   pagination
======================================== */

.pagination {
  margin-top: 50px;
}

.pagination .nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.pagination .page-numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-width: min((40 / 375) * 100vw, 40px);
  height: min((40 / 375) * 100vw, 40px);
  margin: 0 2px;
  padding: 0 0.5em;
  background: #ccc;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: min((14 / 375) * 100vw, 14px);
}

.pagination .page-numbers.current {
  background: #000;
  color: #fff;
}

.pagination .page-numbers.dots {
  min-width: 0;
  padding: 0;
  background: none;
}

.pagination .page-numbers.prev {
  padding: 0 0.8em;
}

.pagination .page-numbers.prev::before {
  content: "";
  display: inline-block;
  width: 0.57em;
  height: 0.57em;
  border-top: 2px solid;
  border-left: 2px solid;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  vertical-align: middle;
}

.pagination .page-numbers.next {
  padding: 0 0.8em;
}

.pagination .page-numbers.next::after {
  content: "";
  display: inline-block;
  width: 0.57em;
  height: 0.57em;
  border-top: 2px solid;
  border-right: 2px solid;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  vertical-align: middle;
}

@media screen and (min-width: 768px),
print {
  .pagination {
    margin-top: 80px;
  }

  .pagination .page-numbers {
    min-width: 50px;
    height: 50px;
    margin: 0 5px;
    font-size: 18px;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    padding: 0 1.5em;
  }
}

/* ========================================
   post
======================================== */
.post-body {
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: normal;
}

.post-author {
  margin-top: 80px;
}