/* WebP 自動変換で <img> が <picture> にラップされてもレイアウトに影響しないようにする */
picture {
  display: contents;
}

/* 100vw 系の要素（YouTubeマーキー等）で横スクロールバーが発生しないようにする保険 */
html, body { overflow-x: clip; }

/* ========== Header ========== */
.l-header {
  background-color: #fff;
  width: 100%;
  z-index: 9990;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 3px 3px rgba(213, 213, 213, 0.12);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.l-header.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

/* サービス系ページのヘッダー下辺シャドウを濃く（全サービス関連ページ共通） */
.is-service-section .l-header {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.l-header--minimal {
  position: static;
  box-shadow: none;
  border-bottom: 1px solid #eee;
}

.l-header--minimal .l-header__content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 15px;
}


.is-minimal-header {
  padding-top: 0;
}

.logged-in.admin-bar .l-header--minimal {
  top: auto;
}

.logged-in.admin-bar .is-minimal-header,
body.logged-in.admin-bar.is-minimal-header {
  padding-top: 0;
}

.l-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 34px;
  min-height: 75px;
}

/* ========== Logo ========== */
.l-header__logo {
  flex-shrink: 0;
  margin: 0;
}

.l-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 12px;
}

.l-header__logo a img {
  /* width: 50px; */
  height: 50px;
}

/* ========== Header Main (右側2段) ========== */
.l-header__main {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.l-header__menus {
  text-align: right;
}

/* ========== Links Bar (上段・グレー背景) ========== */
.l-header__links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
  background: #e8e8e8;
  padding: 0 38px 0 24px;
  height: 34px;
  position: relative;
}

.l-header__links::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -17px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 17px 34px 0;
  border-color: transparent #c8d2dd transparent transparent;
}

/* 「学べるコンテンツ」セルだけクールグレーで色分け（左の三角も同色） */
/* 右端は clip-path で左三角と同じ角度（slope 2 = 17px/34px）の平行カット */
.l-header__links li:first-child {
  position: relative;
  margin-left: -24px;
  padding: 0 24px;
  height: 34px;
  display: flex;
  align-items: center;
  background: #c8d2dd;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 100%, 0 100%);
}

.l-header__links ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.l-header__links li {
  line-height: 1;
}

.l-header__links li:not(:last-child) {
  margin-right: 20px;
}

.l-header__links a {
  position: relative;
  display: inline-block;
  color: #154a5c;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.l-header__links a:hover {
  color: rgba(21, 24, 28, 0.8);
}

/* ホバー時にリンク色と同色の下線がセンターから左右に伸びる */
.l-header__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.l-header__links a:hover::after {
  transform: scaleX(1);
}

/* ========== Nav (下段・メインナビ) ========== */
.l-header__nav ul {
  display: flex;
  align-items: center;
  padding: 14px 38px 14px 0;
  justify-content: flex-end;
}

.l-header__nav li {
  line-height: 1;
}

.l-header__nav li:not(:last-child) {
  margin-right: 30px;
}

.l-header__nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #1c1403;
  transition: color 0.3s;
}

.l-header__nav a:hover {
  color: #666;
}

.l-header.is-transparent .l-header__nav a {
  color: #fff;
}

.l-header.is-transparent .l-header__nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ゴールド・グラデのアンダーラインインジケーター（ヘッダー下辺に揃える） */
.l-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c4a576 30%, #e8d5b0 50%, #c4a576 70%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.l-header__nav a:hover::after,
.l-header__nav a.is-current::after {
  transform: scaleX(1);
}

.l-header__nav a.is-current {
  font-weight: 500;
}

/* ========== Hamburger Button ========== */
.c-hamburger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  align-self: stretch;
  z-index: 9999;
  width: 80px;
  border: none;
  background: #1a2a3a;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  flex-shrink: 0;
}

.c-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all ease 0.3s;
}

.c-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.c-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.c-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Slide Menu (モバイルナビ) ========== */
.c-slidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 520px;
  height: 100vh;
  background-color: #0a0e1a;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(107, 163, 214, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(31, 44, 77, 0.45) 0%, transparent 50%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10000;
  transform: translate3d(110%, 0, 0);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 110px 56px 48px;
  display: flex;
  flex-direction: column;
}

/* スライドメニュー左上のロゴ */
.c-slidebar-menu__logo {
  position: absolute;
  top: 36px;
  left: 56px;
  z-index: 1;
  display: inline-block;
  transition: opacity 0.3s;
}

.c-slidebar-menu__logo:hover {
  opacity: 0.8;
}

.c-slidebar-menu__logo img {
  display: block;
  width: auto;
  height: 50px;
  /* 黒ロゴを白に反転してダーク背景に対応 */
  filter: brightness(0) invert(1);
}

/* コーポレート用は既に白ロゴなのでフィルタ無効化＋ヘッダーと同サイズに */
.c-slidebar-menu--corp .c-slidebar-menu__logo img {
  filter: none;
  height: 26px;
}

.c-slidebar-menu.is-open {
  transform: translate3d(0, 0, 0);
}

.c-slidebar-menu__list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-slidebar-menu__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.c-slidebar-menu.is-open .c-slidebar-menu__item {
  opacity: 1;
  transform: translateX(0);
}

.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(1) { transition-delay: 0.18s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(2) { transition-delay: 0.23s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(3) { transition-delay: 0.28s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(4) { transition-delay: 0.33s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(5) { transition-delay: 0.38s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(6) { transition-delay: 0.43s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(7) { transition-delay: 0.48s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(8) { transition-delay: 0.53s; }
.c-slidebar-menu.is-open .c-slidebar-menu__item:nth-child(9) { transition-delay: 0.58s; }

.c-slidebar-menu__item a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 18px 4px;
  text-decoration: none;
  position: relative;
  transition: padding-left 0.35s ease, color 0.3s ease;
}

.c-slidebar-menu__item a::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin-left: auto;
  align-self: center;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, width 0.35s ease, background 0.35s ease;
}

.c-slidebar-menu__item a:hover {
  padding-left: 14px;
  color: #fff;
}

.c-slidebar-menu__item a:hover::after {
  opacity: 1;
  transform: translateX(0);
  width: 36px;
  background: #6ba3d6;
}

.c-slidebar-submenu {
  padding-top: 16px;
}

.c-slidebar-submenu.is-feature {
  background: rgba(231, 236, 242, 0.7);
  margin: 24px -20px 0;
  padding: 16px 20px 12px;
}

.c-slidebar-submenu__title {
  font-size: 13px;
  font-weight: 600;
  color: #15181c;
  margin-bottom: 4px;
}

.c-slidebar-submenu ul {
  display: flex;
  flex-wrap: wrap;
}

.c-slidebar-submenu li {
  width: calc(50% - 8px);
  line-height: 1;
}

.c-slidebar-submenu li:nth-child(even) {
  margin-left: 16px;
}

.c-slidebar-submenu a {
  display: block;
  font-size: 13px;
  font-weight: 400;
  padding: 12px 0 12px 4px;
  border-bottom: 1px solid rgba(21, 24, 28, 0.3);
  color: #15181c;
}

.c-slidebar-submenu:not(.is-feature) a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* ========== Aside Nav (右端固定ボタン) ========== */
.c-aside-nav {
  position: fixed;
  top: 200px;
  right: 0;
  z-index: 9970;
}

.c-aside-nav ul {
  list-style: none;
}

.c-aside-nav li:not(:last-child) {
  margin-bottom: 10px;
}

.c-aside-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 76px;
  height: 164px;
  text-decoration: none;
  background: linear-gradient(to bottom right, #314b6f, #112454);
  color: #fff;
  border: 1px solid transparent;
  transition: all ease 0.2s;
}

.c-aside-nav a:hover {
  opacity: 1;
  background: #fff;
  color: #314b6f;
  border-color: #314b6f;
}

.c-aside-nav a.is-bg-red {
  background: linear-gradient(to bottom right, #9d323f, #c07942);
}

.c-aside-nav a.is-bg-red:hover {
  background: #fff;
  color: #9d323f;
  border-color: #9d323f;
}

.c-aside-nav__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  object-fit: contain;
}

.c-aside-nav a:hover .c-aside-nav__icon {
  filter: brightness(0);
}

.c-aside-nav__text {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.c-aside-nav__text span {
  display: block;
}

@media screen and (max-width: 750px) {
  .c-aside-nav {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
  }

  .c-aside-nav ul {
    display: flex;
  }

  .c-aside-nav li {
    width: 50%;
  }

  .c-aside-nav li:not(:last-child) {
    margin-bottom: 0;
  }

  .c-aside-nav a {
    width: 100%;
    height: 64px;
    flex-direction: row;
    gap: 8px;
  }

  .c-aside-nav__icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0;
  }

  .c-aside-nav__text {
    writing-mode: horizontal-tb;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
  }
}

/* ========== Footer CTA ========== */
.footer-cta {
  background: #575553;
  padding: 40px 20px;
}

.footer-cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.footer-cta__item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.footer-cta__item .footer-cta__btn {
  margin-top: auto;
  align-self: center;
}

.footer-cta__item + .footer-cta__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.3) 70%, transparent);
}

.footer-cta__title {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
}

.footer-cta__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 35px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.footer-cta__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.footer-cta__btn-icon {
  width: 18px;
  height: 18px;
}

.footer-cta__btn--primary {
  background: linear-gradient(to bottom right, #9d323f, #c07942);
  color: #fff;
  border: none;
}

.footer-cta__btn--secondary {
  background: linear-gradient(to bottom right, #314b6f, #112454);
  color: #fff;
  border: none;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .footer-cta__inner {
    flex-direction: column;
    gap: 42px;
  }

  .footer-cta__item + .footer-cta__item::before {
    display: none;
  }
}

/* ========== Site Footer ========== */
.site-footer {
  background: #0d1014;
  color: #fff;
  padding: 70px 40px 16px;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 32px;
}

.site-footer__logo {
  padding-top: 8px;
}

.site-footer__logo a {
  display: inline-block;
}

.site-footer__logo img {
  width: 220px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(40%) sepia(72%) saturate(2200%) hue-rotate(346deg) brightness(95%) contrast(90%);
}

.site-footer__cols {
  display: contents;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.site-footer__heading {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #868889, #636971) 1;
  transition: opacity 0.3s;
}

.site-footer__heading:hover {
  opacity: 0.75;
}

.site-footer__sub {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__sub a {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-footer__sub a::before {
  content: "- ";
}

.site-footer__sub a:hover {
  opacity: 0.75;
}

.site-footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 28px 0 18px;
  border-bottom: 1px solid #2a2d31;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.site-footer__links li {
  position: relative;
  padding: 0 22px;
}

.site-footer__links li:last-child {
  padding-right: 0;
}

.site-footer__links li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #555a60;
}

.site-footer__links a {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-footer__links a:hover {
  opacity: 0.75;
}

.site-footer__copyright {
  text-align: center;
  font-size: 12px;
  color: #fff;
  padding-top: 16px;
  margin: 0;
}

@media screen and (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 40px;
  }

  .site-footer__logo img {
    width: 180px;
  }
}

@media screen and (max-width: 768px) {
  .site-footer {
    padding: 48px 20px 16px;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .site-footer__logo {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .site-footer__logo img {
    width: 180px;
  }

  .site-footer__menu {
    gap: 24px;
  }

  .site-footer__bottom {
    justify-content: center;
    padding: 24px 0 16px;
  }

  .site-footer__links li {
    padding: 0 14px;
  }
}

@media screen and (max-width: 480px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

/* Overlay */
.c-slidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.c-slidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Responsive ========== */
@media screen and (max-width: 1000px) {
  .l-header__nav ul {
    display: none;
  }

  .l-header__links {
    display: none;
  }

  .l-header {
    position: fixed;
  }

  .c-hamburger {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
  }
}

@media screen and (max-width: 768px) {
  .c-slidebar-menu {
    max-width: 100%;
    padding: 96px 32px 40px;
  }

  .c-slidebar-menu__item a {
    font-size: 17px;
    padding: 18px 4px;
    gap: 18px;
  }
}

@media screen and (max-width: 960px) {
  body {
    padding-top: 64px;
  }

  .l-header__content {
    padding: 16px;
  }

  .l-header__logo a img {
    width: auto;
    height: 50px;
  }

}

@media screen and (max-width: 1240px) and (min-width: 1001px) {
  .l-header__nav li:not(:last-child) {
    margin-right: 16px;
  }

  .l-header__nav a {
    font-size: 13px;
  }

  .l-header__links li:not(:last-child) {
    margin-right: 12px;
  }

  .l-header__links a {
    font-size: 13px;
  }
}

/* ========== Admin Bar Offset ========== */
.logged-in.admin-bar .l-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.logged-in.admin-bar body,
body.logged-in.admin-bar {
  /* padding-top: calc(82px + var(--wp-admin--admin-bar--height, 32px)); */
}

@media screen and (max-width: 782px) {
  .logged-in.admin-bar .l-header {
    top: var(--wp-admin--admin-bar--height, 46px);
  }

  body.logged-in.admin-bar {
    /* padding-top: calc(64px + var(--wp-admin--admin-bar--height, 46px)); */
  }
}

