@charset "UTF-8";

/* ======================================================================
 * VERUM 共通フッター
 *
 * 全固定ページ・投稿ページで共通使用します。
 * お問い合わせページ固有のCSSは含みません。
 *
 * Cocoon既存クラス:
 * .footer-widgets / .footer-left / .footer-center / .footer-right
 *
 * フッターウィジェット内で設定しているクラス:
 * .menu-title / .link-list / .flex-outline
 * .btn-outline / .btn-character / .yt-outline / .copy-right
 * ====================================================================== */

:root {
  --verum-footer-dark: #1a3137;
  --verum-footer-main: #487886;
  --verum-footer-white: #fff;
  --verum-footer-hover: #b9d9df;
}

body #footer {
  margin-top: 0;
  color: var(--verum-footer-white);
  background: var(--verum-footer-dark);
  line-height: 1.75;
}

/* bodyを加えて、style.css内のCocoon向け既存指定より優先します。 */
body #footer .footer-in {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(60px, 5.55vw, 80px) clamp(24px, 5.55vw, 80px) 8px;
  box-sizing: border-box;
}

body #footer .footer-widgets {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 1.15fr 0.85fr;
  column-gap: clamp(36px, 4.5vw, 65px);
  width: 100%;
  margin: 0;
  align-items: start;
}

body #footer .footer-widgets::before,
body #footer .footer-widgets::after {
  content: none;
}

body #footer .footer-left,
body #footer .footer-center,
body #footer .footer-right {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body #footer .footer-right {
  grid-column: span 2;
}

body #footer .footer-right > aside,
body #footer .footer-right .textwidget {
  width: 100%;
}

body #footer .widget,
body #footer .textwidget {
  margin: 0;
  padding: 0;
}

body #footer .menu-title {
  margin: 0 0 22px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-family: "Noto Sans JP", sans-serif;
  text-underline-offset: 0.4rem;
  text-decoration-thickness: 0.5%;
}

body #footer .footer-left .menu-title {
  margin-bottom: 22px;
  text-decoration: none;
}

body #footer .footer-left .logo {
  display: block;
  width: 117px;
  max-width: 117px;
}

body #footer .link-list {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body #footer .link-list a {
  display: inline-block;
  color: var(--verum-footer-white);
  font-size: 14px;
  line-height: 1.5;
}

body #footer .flex-outline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 4.5vw, 65px);
  width: 100%;
}

body #footer .flex-left-outline,
body #footer .flex-right-outline {
  min-width: 0;
}

body #footer .btn-outline {
  width: 100%;
  max-width: 284px;
  height: 68px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verum-footer-white);
}

body #footer .btn-character {
  margin: 0;
  padding: 0;
  color: var(--verum-footer-main);
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
}

body #footer .yt-outline {
  width: min(210px, 100%);
  margin-top: 16px;
}

body #footer .yt-outline img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Cocoon標準ロゴを隠し、ウィジェット側のVERUMロゴだけ使用します。 */
body #footer .footer-bottom-logo,
body #footer #navi-footer {
  display: none;
}

body #footer .footer-bottom,
body #footer .footer-bottom-content {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body #footer .copyright {
  margin: clamp(26px, 2.2vw, 40px) 0 0;
  padding: 0;
  text-align: center;
}

body #footer .copy-right {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ----------------------------------------------------------------------
 * フッターメニューのホバー・キーボードフォーカス
 * ---------------------------------------------------------------------- */
body #footer .link-list a,
body #footer .footer-left .logo,
body #footer .btn-outline,
body #footer .yt-outline {
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  body #footer .link-list a:hover {
    color: var(--verum-footer-hover);
    opacity: 0.82;
    transform: translateX(4px);
  }

  body #footer a:hover .footer-left .logo,
  body #footer .footer-left a:hover .logo,
  body #footer .footer-left .logo:hover {
    opacity: 0.75;
    transform: scale(1.02);
  }

  body #footer a:hover .btn-outline,
  body #footer .btn-outline:hover,
  body #footer a:hover .yt-outline,
  body #footer .yt-outline:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
  }

  body #footer a:hover .btn-outline,
  body #footer .btn-outline:hover {
    box-shadow: 0 8px 20px rgb(0 0 0 / 20%);
  }

  body #footer a:hover .yt-outline,
  body #footer .yt-outline:hover {
    opacity: 0.82;
  }
}

body #footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--verum-footer-white);
  outline-offset: 5px;
}

body #footer .link-list a:focus-visible {
  color: var(--verum-footer-hover);
  opacity: 1;
}

/* ----------------------------------------------------------------------
 * レスポンシブ
 * ---------------------------------------------------------------------- */
@media screen and (min-width: 601px) and (max-width: 900px) {
  body #footer .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  body #footer .footer-right {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 600px) {
  body #footer {
    font-size: 16px;
  }

  body #footer .footer-in {
    padding: 40px;
  }

  body #footer .footer-widgets,
  body #footer .flex-outline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 42px;
  }

  body #footer .footer-right {
    grid-column: auto;
  }

  body #footer .menu-title {
    margin-bottom: 24px;
  }

  body #footer .link-list {
    padding-left: 14px;
    gap: 12px;
  }

  body #footer .flex-outline {
    row-gap: 40px;
  }

  body #footer .yt-outline,
  body #footer .yt-outline img {
    width: min(210px, 100%);
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #footer .link-list a,
  body #footer .footer-left .logo,
  body #footer .btn-outline,
  body #footer .yt-outline {
    transition: none !important;
  }

  body #footer .link-list a:hover,
  body #footer .footer-left .logo:hover,
  body #footer .btn-outline:hover,
  body #footer .yt-outline:hover {
    transform: none;
  }
}

@media screen and (max-width: 560px) {
  body #footer .footer-left .logo {
    width: 32vw;
    max-width: unset;
  }

  body #footer .link-list {
    padding-left: 4.27vw;
    gap: 3.4vw;
  }

  body #footer {
    font-size: 4.27vw;
  }

  body #footer .footer-in {
    padding: 10.6vw;
  }

  body #footer .footer-widgets,
  body #footer .flex-outline {
    row-gap: 11vw;
  }

  body #footer .link-list a {
    font-size: 3.73vw;
  }

  body #footer .btn-outline {
    height: 18.1vw;
    border-radius: 1.87vw;
    max-width: unset;
  }

  body #footer .btn-character {
    font-size: 4.8vw;
  }

  body #footer .yt-outline {
    width: 56vw;
    margin-top: 4.27vw;
  }

  body #footer .yt-outline img {
    width: 100%;
  }

  body #footer .copy-right {
    font-size: 3.2vw;
  }
}
