@import url('https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&family=Noto+Serif+JP:wght@200..900&family=Sancreek&display=swap');

/* 共通ヘッダー */
.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr 1.95fr 1fr;
  align-items: stretch;

  width: min(880px, calc(100% - 146px));
  margin: 0 auto;
  padding: 44px 0 14px;

  text-align: center;
}

/* 左右メニュー */
.site-header__nav {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  min-height: 136px;
}

.site-header__nav a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3px 4px;

  font-family: "Sancreek", serif;
  font-size: clamp(17px, 2.5vw, 31px);

  color: #111;
  text-decoration: none;
}

/* 左メニュー右端の縦線 */
.site-header__nav--left {
  border-right: 2px solid #111;
}

/* 右メニュー左端の縦線 */
.site-header__nav--right {
  border-left: 2px solid #111;
}

/* 上下メニューの区切り線 */
.site-header__nav a:first-child {
  border-bottom: 2px solid #111;
}

/* 中央タイトル */
.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 0 13px;
  margin: 0;
}

.site-header__logo a {
  font-family: "Sancreek", serif;
  font-size: clamp(27px, 4.6vw, 57px);
  font-weight: 700;
  line-height: 1.15;

  white-space: nowrap;
  color: #111;
  text-decoration: none;
}

/* オーロラ柄ホバー */
.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__logo a:hover,
.site-header__logo a:focus-visible {
  background-image: url("img/line.webp");
  background-position: center;
  background-size: 150% auto;

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* キーボード操作 */
.site-header a:focus-visible {
  outline: 2px solid #8251a2;
  outline-offset: 2px;
}

/* タブレット */
@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 95px);
  }
}

/* スマートフォン */
@media (max-width: 660px) {
  .site-header {
    width: calc(100% - 45px);
    padding: 30px 0 12px;

    grid-template-columns: 1fr 2.1fr 1fr;
  }

  .site-header__nav {
    min-height: 76px;
  }

  .site-header__nav a {
    font-size: clamp(12px, 3vw, 17px);
    padding: 2px;
  }

  .site-header__logo {
    padding: 0 5px;
  }

  .site-header__logo a {
    font-size: clamp(19px, 5vw, 36px);
  }

  .site-header__nav--left {
    border-right-width: 1px;
  }

  .site-header__nav--right {
    border-left-width: 1px;
  }

  .site-header__nav a:first-child {
    border-bottom-width: 1px;
  }
}

@media (max-width: 390px) {
  .site-header__logo a {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .site-header__nav a {
    font-size: 12px;
  }
}




/* サイトタイトル */
.site-header__logo a {
  position: relative;
  display: inline-block;
  isolation: isolate;

  color: #111;
  text-decoration: none;
}

/* オーロラ画像の影 */
.site-header__logo a::before {
  content: attr(data-text);

  position: absolute;
  top: 0;
  left: 0;

  /* 影のずれ具合 */
  transform: translate(5px, 5px);

  /* オーロラ画像 */
  background-image: url("img/line.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  /* 画像を文字の形にする */
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  z-index: -1;
  pointer-events: none;
}
