/* =========================================================
   共通ヘッダー・フッター
   File: css/cmn_responsive.css

   読み込み順：
   Museの既存CSS・ページ別CSSの後に読み込んでください。
   ========================================================= */

/* ---------- 基本 ---------- */

:root {
  --bg-blue: url("../images/back_b.jpg");
  --bg-yellow: url("../images/back_y.jpg");
  --mobile-topbar-height: 58px;
}

.pc-header-top,
.pc-header-sub,
.pc-footer-top,
.pc-footer-sub {
  display: block;
}

.mobile-header,
.mobile-footer {
  display: none;
}

.pc-header-top *,
.pc-header-sub *,
.pc-footer-top *,
.pc-footer-sub *,
.mobile-header *,
.mobile-footer * {
  box-sizing: border-box;
}

.pc-header-top img,
.pc-header-sub img,
.pc-footer-top img,
.pc-footer-sub img,
.mobile-header img,
.mobile-footer img {
  border: 0;
}

/* =========================================================
   PC：トップページ専用ヘッダー
   ========================================================= */

.pc-header-top {
  width: 100%;
  min-width: 960px;
  background: #f0f04a var(--bg-yellow) repeat left top;
}

.pc-header-top__inner {
  display: flex;
  align-items: flex-start;
  width: 960px;
  min-height: 428px;
  margin: 0 auto;
  padding: 54px 0 0 70px;
}

.pc-header-top__illust {
  flex: 0 0 374px;
}

.pc-header-top__illust a,
.pc-header-top__illust img {
  display: block;
}

.pc-header-top__illust img {
  width: 374px;
  height: auto;
}

.pc-header-top__nav {
  display: flex;
  flex: 0 0 208px;
  flex-direction: column;
  margin: 36px 0 0 60px;
}

.pc-header-top__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  min-height: 62px;
  text-decoration: none;
  transition: opacity .18s ease;
}

.pc-header-top__nav a:hover {
  opacity: .55;
}

.pc-header-top__nav img {
  display: block;
  width: 208px;
  height: auto;
}

/* =========================================================
   PC：下層ページ共通ヘッダー
   ========================================================= */

.pc-header-sub {
  width: 100%;
  min-width: 960px;
  background: #078999 var(--bg-blue) repeat left top;
}

.pc-header-sub__inner {
  width: 960px;
  min-height: 150px;
  margin: 0 auto;
  padding: 27px 44px 14px;
}

.pc-header-sub__logo a,
.pc-header-sub__logo img {
  display: block;
}

.pc-header-sub__logo a:first-child img {
  width: 873px;
  max-width: 100%;
  height: auto;
}

.pc-header-sub__logo a + a {
  margin-top: 4px;
}

.pc-header-sub__logo a:last-child img {
  width: 336px;
  max-width: 100%;
  height: auto;
}

.pc-header-sub__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.pc-header-sub__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  min-height: 30px;
  text-decoration: none;
  transition: opacity .18s ease;
}

.pc-header-sub__nav a:hover {
  opacity: .6;
}

.pc-header-sub__nav img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 30px;
}

/* =========================================================
   PC：トップページ専用フッター
   ========================================================= */

.pc-footer-top {
  width: 100%;
  min-width: 960px;
  margin-top: 50px;
  background: #078999 var(--bg-blue) repeat left top;
}

.pc-footer-top__inner {
  position: relative;
  width: 960px;
  min-height: 100px;
  margin: 0 auto;
}

.pc-footer-top__copyright {
  position: absolute;
  left: 44px;
  bottom: 30px;
  display: block;
  width: 319px;
  height: auto;
}

.pc-footer-top__nav {
  position: absolute;
  right: 44px;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 46px;
}

.pc-footer-top__nav a,
.pc-footer-top__nav img {
  display: block;
}

.pc-footer-top__nav a {
  text-decoration: none;
  transition: opacity .18s ease;
}

.pc-footer-top__nav a:hover {
  opacity: .6;
}

.pc-footer-top__nav img {
  width: auto;
  max-width: 76px;
  height: auto;
  max-height: 22px;
}

/* =========================================================
   PC：下層ページ共通フッター
   ========================================================= */

.pc-footer-sub {
  width: 100%;
  min-width: 960px;
  margin-top: 50px;
  background: #078999 var(--bg-blue) repeat left top;
}

.pc-footer-sub__inner {
  position: relative;
  width: 960px;
  min-height: 100px;
  margin: 0 auto;
}

.pc-footer-sub__illust {
  position: absolute;
  left: 18px;
  bottom: 0;
  z-index: 2;
  display: block;
  width: 145px;
  height: auto;
}

.pc-footer-sub__copyright {
  position: absolute;
  left: 170px;
  bottom: 30px;
  display: block;
  width: 319px;
  height: auto;
}

.pc-footer-sub__nav {
  position: absolute;
  right: 44px;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 46px;
}

.pc-footer-sub__nav a,
.pc-footer-sub__nav img {
  display: block;
}

.pc-footer-sub__nav a {
  text-decoration: none;
  transition: opacity .18s ease;
}

.pc-footer-sub__nav a:hover {
  opacity: .6;
}

.pc-footer-sub__nav img {
  width: auto;
  max-width: 76px;
  height: auto;
  max-height: 22px;
}


/* =========================================================
   PC：下層ページの固定ヘッダー・固定フッター
   ========================================================= */

@media only screen and (min-width: 701px) {
  html,
  body {
    min-width: 960px;
  }

  /* ヘッダー・フッターを画面に固定 */
  .pc-header-sub {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    width: 100%;
  }

  .pc-footer-sub {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1400;
    width: 100%;
    margin-top: 0;
  }

  /*
   * ページ全体のラッパーには余白を付けない。
   * 各ページのmainだけを中央配置し、固定ヘッダー・フッター分を空ける。
   */
  .desktop-profile-page,
  .desktop-lesson-page,
  .desktop-photos-page,
  .desktop-discography-page {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .desktop-profile-page .profile-modern,
  .desktop-lesson-page .lesson-page,
  .desktop-photos-page .photos-page,
  .desktop-discography-page .discography-page {
    float: none !important;
    clear: both;
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 920px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 184px;
    padding-bottom: 125px;
  }

  /*
   * 下層ページ用メニュー画像は元が青緑色なので、
   * 青緑背景上で白く見えるようCSSで変換する。
   */
  .pc-header-sub__nav img {
    filter: brightness(0) invert(1);
    opacity: .96;
  }

  .pc-header-sub__nav a:hover img {
    opacity: .6;
  }
}

/* =========================================================
   スマホ
   ========================================================= */

@media only screen and (max-width: 700px) {
  html,
  body {
    width: 100%;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
  }

  .pc-header-top,
  .pc-header-sub,
  .pc-footer-top,
  .pc-footer-sub {
    display: none !important;
  }

  .mobile-header,
  .mobile-footer {
    display: block;
  }

  body {
    padding-bottom: 68px;
  }

  /* ---------- スマホ共通ヘッダー ---------- */

  .mobile-header {
    width: 100%;
    overflow: visible;
    font-family:
      "Hiragino Kaku Gothic ProN",
      "Yu Gothic",
      Meiryo,
      sans-serif;
  }

  .mobile-header__top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: var(--mobile-topbar-height);
    padding: 6px 14px 4px;
    text-align: center;
    background: #078999 var(--bg-blue) repeat left top;
  }

  .mobile-header__top a,
  .mobile-header__top img {
    display: block;
  }

  .mobile-header__logo-en {
    width: min(88%, 430px);
    height: auto;
    margin: 0 auto 3px;
  }

  .mobile-header__logo-ja {
    width: min(58%, 270px);
    height: auto;
    margin: 0 auto;
  }

  .mobile-header__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--mobile-topbar-height);
    padding: 18px 12px 24px;
    background: #f0f04a var(--bg-yellow) repeat left top;
  }

  .mobile-header__illust {
    flex: 0 0 auto;
    width: 47%;
    min-width: 145px;
    max-width: 205px;
    height: auto;
    margin: 0;
  }

  .mobile-header__nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: auto;
    max-width: 190px;
    margin: 0 0 0 -4px;
  }

  .mobile-header__nav a {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 8px 0;
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: opacity .18s ease;
  }

  .mobile-header__nav a:last-child {
    margin-bottom: 0;
  }

  .mobile-header__nav a:active {
    opacity: .55;
  }

  .mobile-header__nav-image {
    display: block;
    width: 178px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* ---------- スマホ共通フッター ---------- */

  .mobile-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    padding: 8px 14px 7px;
    text-align: center;
    background: #078999 var(--bg-blue) repeat left top;
  }

  .mobile-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 5px;
  }

  .mobile-footer__nav a {
    display: block;
    text-decoration: none;
  }

  .mobile-footer__nav-image {
    display: block;
    width: auto;
    max-width: 68px;
    height: auto;
    max-height: 18px;
    margin: 0 auto;
  }

  .mobile-footer__copyright {
    display: block;
    width: min(72%, 270px);
    height: auto;
    margin: 0 auto;
    opacity: .9;
  }
}