:root {
  --efreedive-blue: #03378a;
  --efreedive-navy: #062b6b;
  --efreedive-cyan: #09fcf9;
  --efreedive-text: #17233a;
  --efreedive-border: #dce3ee;
}

body {
  background: #fff;
  color: var(--efreedive-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body.efreedive-menu-open {
  overflow: hidden;
}

#body_wrap.efreedive-root-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--efreedive-notice-height, 0px));
  min-height: calc(100dvh - var(--efreedive-notice-height, 0px));
}

#body_wrap > .header,
#body_wrap > .Footer {
  flex-shrink: 0;
}

#body_wrap > #content,
#body_wrap > [data-barba="container"],
#body_wrap > [data-barba="container"] > #content {
  flex: 1 0 auto;
}

#body_wrap > [data-barba="container"],
.efreedive-front-content {
  display: flex;
  flex-direction: column;
}

.efreedive-front-content > .efreedive-media-home {
  flex: 1;
}

.efreedive-media-home {
  overflow: hidden;
  background: #f7f9fd;
}

.efreedive-media-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 400px;
  padding: 96px max(24px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 5%, rgb(9 252 249 / 40%), transparent 32%),
    linear-gradient(125deg, #062b6b, #03378a 63%, #0754b7);
  color: #fff;
}

.efreedive-media-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -16vw;
  width: min(52vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  content: "";
}

.efreedive-media-hero > * {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.efreedive-media-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--efreedive-cyan);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.efreedive-media-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5.3vw, 66px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.efreedive-media-hero__text {
  margin: 24px 0 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
}

.efreedive-media-hero__link {
  margin: 32px 0 0;
}

.efreedive-media-hero__link a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.efreedive-media-hero__link a::after {
  margin-left: 14px;
  content: "→";
}

.efreedive-media-list {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 64px 24px 104px;
}

.paged .efreedive-media-list {
  padding-top: 120px;
}

.efreedive-media-list__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--efreedive-blue);
}

.efreedive-media-list__heading h1,
.efreedive-media-list__heading h2 {
  margin: 0;
  color: var(--efreedive-text);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.3;
}

.efreedive-media-list__heading p {
  margin: 0;
  color: var(--efreedive-blue);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.efreedive-media-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.efreedive-media-query .wp-block-post {
  min-width: 0;
}

.efreedive-media-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--efreedive-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(4 45 116 / 8%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.efreedive-media-card:hover {
  box-shadow: 0 16px 30px rgb(4 45 116 / 16%);
  transform: translateY(-4px);
}

.efreedive-media-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #d9e8ff, #edf7ff);
}

.efreedive-media-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  transition: transform 220ms ease;
}

.efreedive-media-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

.efreedive-media-card__date,
.efreedive-media-card__title,
.efreedive-media-card__excerpt {
  margin-right: 22px;
  margin-left: 22px;
}

.efreedive-media-card__date {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #6d7a91;
  font-size: 12px;
}

.efreedive-media-card__title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.55;
}

.efreedive-media-card__title a {
  color: var(--efreedive-text);
  text-decoration: none;
}

.efreedive-media-card__title a:hover,
.efreedive-media-card__title a:focus-visible {
  color: var(--efreedive-blue);
}

.efreedive-media-card__excerpt {
  margin-top: 0;
  margin-bottom: 22px;
  color: #56637b;
  font-size: 13px;
  line-height: 1.8;
}

.efreedive-media-card__excerpt a {
  color: var(--efreedive-blue);
  font-weight: 700;
  text-decoration: none;
}

.efreedive-site-header {
  position: relative;
  z-index: 20;
  background: var(--efreedive-blue);
}

.efreedive-header-wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1280px);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 40px;
}

.efreedive-header-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.efreedive-header-logo img {
  display: block;
  width: 129px;
  height: auto;
}

.efreedive-menu-button,
.efreedive-drawer-close {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.efreedive-menu-button {
  display: grid;
  width: 45px;
  height: 44px;
  padding: 3px 0 0;
  place-items: center;
  background: transparent;
  color: #fff;
}

.efreedive-menu-icon {
  display: grid;
  gap: 6px;
  width: 28px;
}

.efreedive-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.efreedive-menu-button[aria-expanded="true"] .efreedive-menu-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.efreedive-menu-button[aria-expanded="true"] .efreedive-menu-icon span:nth-child(2) {
  opacity: 0;
}

.efreedive-menu-button[aria-expanded="true"] .efreedive-menu-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.efreedive-menu-button__label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.efreedive-menu-overlay {
  position: fixed;
  z-index: 29;
  inset: 0;
  display: none;
  background: rgb(0 0 0 / 45%);
}

.efreedive-menu-overlay.is-open {
  display: block;
}

.efreedive-drawer {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 80px 32px 36px;
  overflow-y: auto;
  visibility: hidden;
  background: #fff;
  box-shadow: -12px 0 32px rgb(0 0 0 / 15%);
  transform: translateX(100%);
  transition: transform 180ms ease, visibility 180ms ease;
}

.efreedive-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

.efreedive-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--efreedive-blue);
  font-size: 30px;
  line-height: 1;
}

.efreedive-drawer-logo {
  display: inline-flex;
  margin-bottom: 38px;
}

.efreedive-drawer-logo img {
  width: 142px;
  height: auto;
}

.efreedive-drawer-nav,
.efreedive-drawer-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.efreedive-drawer-nav {
  border-top: 1px solid var(--efreedive-border);
}

.efreedive-drawer-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--efreedive-border);
  color: var(--efreedive-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.efreedive-drawer-nav a:hover,
.efreedive-drawer-nav a:focus-visible {
  color: var(--efreedive-blue);
}

.efreedive-drawer-social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.efreedive-drawer-social a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
}

.efreedive-drawer-social img {
  width: 23px;
  height: 23px;
}

.efreedive-article-shell {
  box-sizing: border-box;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 64px 24px 88px;
}

.efreedive-article-shell .wp-block-post-title {
  margin: 0;
  color: var(--efreedive-text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.efreedive-article-date {
  margin: 18px 0 42px;
  color: #63718a;
  font-size: 14px;
}

.efreedive-article-shell .wp-block-post-content {
  font-size: 16px;
  line-height: 2;
}

.efreedive-article-shell .wp-block-post-content > * {
  margin-top: 0;
  margin-bottom: 28px;
}

.efreedive-article-shell .wp-block-post-content h2,
.efreedive-article-shell .wp-block-post-content h3 {
  color: var(--efreedive-text);
  font-weight: 700;
  line-height: 1.5;
}

.efreedive-article-shell .wp-block-post-content h2 {
  margin-top: 64px;
  padding: 0 0 12px 16px;
  border-bottom: 3px solid var(--efreedive-blue);
  border-left: 6px solid var(--efreedive-cyan);
  font-size: clamp(23px, 3vw, 30px);
}

.efreedive-article-shell .wp-block-post-content h3 {
  margin-top: 48px;
  font-size: clamp(20px, 2.5vw, 24px);
}

.efreedive-article-shell .wp-block-post-content a {
  color: var(--efreedive-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.efreedive-article-shell .wp-block-post-content img {
  height: auto;
  border-radius: 8px;
}

.efreedive-site-footer {
  padding: 48px 24px 24px;
  background: var(--efreedive-navy);
  color: #fff;
}

.efreedive-footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

.efreedive-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 42px;
}

.efreedive-footer-nav a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.efreedive-footer-nav a:hover,
.efreedive-footer-nav a:focus-visible {
  color: var(--efreedive-cyan);
}

.efreedive-footer-logo {
  display: inline-block;
  margin-bottom: 25px;
}

.efreedive-footer-logo img {
  display: block;
  width: min(188px, 60vw);
  height: auto;
}

.efreedive-footer-copyright {
  margin: 0;
  color: rgb(255 255 255 / 80%);
  font-size: 12px;
}

#comments {
  display: none;
}

#content {
  -webkit-user-select: text;
  user-select: text;
}

#body_wrap.single-post .l-mainContent__inner {
  padding-top: 72px;
}

@media (max-width: 640px) {
  .efreedive-media-hero {
    min-height: 360px;
    padding: 68px 24px;
  }

  .efreedive-media-hero::after {
    right: -45vw;
    bottom: -40vw;
    width: 110vw;
  }

  .efreedive-media-list {
    padding-inline: 20px;
    padding-bottom: 72px;
  }

  .efreedive-media-list__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .efreedive-media-query .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .efreedive-header-wrap {
    min-height: 66px;
    padding: 10px 18px;
  }

  .efreedive-header-logo img {
    width: 112px;
  }

  .efreedive-article-shell {
    padding: 42px 20px 60px;
  }

  .efreedive-article-date {
    margin-bottom: 30px;
  }

  .efreedive-article-shell .wp-block-post-content {
    font-size: 15px;
    line-height: 1.9;
  }

  .efreedive-site-footer {
    padding: 38px 18px 22px;
  }

  .efreedive-footer-nav {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .efreedive-media-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Column index pagination */
.efreedive-media-pagination { margin-top: 48px; }
.efreedive-media-pagination > ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.efreedive-media-pagination a.page-numbers, .efreedive-media-pagination span.page-numbers { display: inline-flex; min-width: 44px; height: 44px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--efreedive-border); border-radius: 6px; color: var(--efreedive-blue); background: #fff; text-decoration: none; line-height: 1; box-sizing: border-box; }
.efreedive-media-pagination .page-numbers.current { color: #fff; background: var(--efreedive-blue); border-color: var(--efreedive-blue); }
.efreedive-media-pagination a.page-numbers:hover { background: #edf7ff; }

@media (max-width: 600px) {
  .efreedive-media-list {
    padding-top: 40px;
  }

  .paged .efreedive-media-list {
    padding-top: 96px;
  }

  .efreedive-media-list__heading {
    display: block;
  }

  .efreedive-media-list__heading p {
    margin-top: 10px;
  }
}
