@charset "utf-8";
/*=================================
cmn.css　共通CSS
1: reset-CSSModern CSS Reset（The Custom CSS Reset）
2: setting
3: header
4: gnav
5: footer
=================================*/


/* 1: reset-CSSModern CSS Reset（The Custom CSS Reset）
================================== */
/*
  Josh W. Comeau's Custom CSS Reset
  www.joshwcomeau.com
*/

/* 1. ボックスモデルの修正：余白や境界線が幅を壊さないようにする */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. デフォルトの余白を削除 */
* {
  margin: 0;
}
/* 3. 本文の行間を整え、フォントのレンダリングを滑らかにする */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* 4. メディア要素（画像など）がはみ出さないようにし、ブロック要素化する */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* 5. フォーム要素が親のフォント設定を無視するのを防ぐ */
input, button, textarea, select {
  font: inherit;
}
/* 6. 長い単語が画面からはみ出して横スクロールが出るのを防ぐ */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* WordPress Additions */
ul,
ol {
  padding-left: 1.5em;
}
a {
  color: inherit;
  text-decoration: none;
}
textarea {
  resize: vertical;
}

/* 2: setting
================================== */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
html {
  font-size: 100%;
}
@media (min-width: 768px) {
  html {
    overflow: auto;
    min-width: var(--content-min-width);
  }
}
body {
  font-family: var(--font-base);
  font-optical-sizing: auto;
  color: var(--text);
  font-size: var(--font-size-md);/* 1rem = 通常16px */
  font-weight: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
@media all and (-ms-high-contrast:none){
  body {font-family:'Noto Sans JP', sans-serif, Meiryo, 'ヒラギノ角ゴ Pro W3', メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;}
}

/* リンク設定*/
a {
  color: var(--link);
  text-decoration: underline;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
  &:hover {
    color: var(--link-hover);
    text-decoration: none;
  }
  & img {
    transition: color .2s ease, background-color .2s ease, opacity .2s ease;
  }
  &:hover img {
    opacity: 0.8;
  }
}

/* display none*/
.sp_none {
  display: none;
}
@media (min-width: 768px) {
  .pc_none {
    display: none;
  }
  .sp_none {
    display: block;
  }
}

/* 3: header
================================== */
header {
  position: relative;
  padding: 8px 16px;
  & ul {
    padding: 0;
  }
  & .inr {
    padding: 0;
  }
}
@media (min-width: 768px) {
  header {
    padding-bottom: 0;
  }
}
.logo {
  font-size: var(--font-size-4xl);
  font-weight: bold;
  & a {
    color: var(--text);
    text-decoration: none;
  }
}
.header_top {
  position: relative;
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-right: 60px;
  z-index: 500;
}
@media (min-width: 768px) {
  .header_top {
    justify-content:center;
    position:relative;
    margin-right: 0;
  }
}
.sns {
  display:flex;
  & img {
    width: 50px;
  }
}
@media (min-width: 768px) {
  .sns {
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    display:flex;
  }
}

/* 4: gnav
================================== */
.menuWrapper {
  position: absolute;
  top: 14px;
  right: 16px;
}
@media (min-width: 768px) {
.menuWrapper {
  position: inherit;
}
}
.menu_container {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-gray);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
  z-index: 300;
}
@media (min-width: 768px) {
  .menu_container {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: none;
  }
}
.menu_container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.menu {
  display: grid;
  gap: 24px;
  width: min(320px, 100%);
  padding: 0;
  list-style:none;
  text-align: center;
  & li {
    position: relative;
  }
  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 16px;
    width: 100%;
    color: var(--text);
    font-size: var(--font-size-lg);
    font-weight: bold;
    text-decoration: none;
    transition: color .3s, background-color .3s;
  }
}
@media (min-width: 768px) {
  .menu {
    display: flex;
    justify-content: center;
    gap: clamp(32px, 4vw, 64px);
    width: auto;
    & li {
      flex-shrink: 0;
    }
    & a {
      min-height: 56px;
      white-space: nowrap;
      &:hover {
        background: rgb(0 0 0 / .05);
      }
      &::after {
        content: '';
        position: absolute;
        inset: auto 0 0;
        width: 24px;
        height: 4px;
        margin-inline: auto;
        background: var(--primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s;
      }
    }
  }
  /* hover / current 共通 */
  .menu > li > a:is(:hover, :focus-visible)::after,
  .menu > li > a:is(:hover, :focus-visible),
  :is(
    .home .menu .nav_home,
    .news .menu .nav_news,
    .guide .menu .nav_guide,
    .info .menu .nav_info,
    .access .menu .nav_access
  ) > a {
    color: var(--primary);
    &:after {
      transform: scaleX(1);
    }
  }
}

/*スマホ用メニューボタン*/
.menu_trigger {
  --bar-width: 22px;
  --bar-height: 3px;
  --gap: 5px;
  display: grid;
  place-content: center;
  gap: var(--gap);
  width: 44px;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 999;
  appearance: none;
}
@media (min-width: 768px) {
  .menu_trigger {
    display: none;
  }
}
.menu_trigger span {
  width: var(--bar-width);
  height: var(--bar-height);
  background: var(--primary);
  border-radius: 999px;
  transition: translate .3s ease, rotate .3s ease, opacity .2s ease;
  transform-origin: center;
}
.menu_trigger:hover span {
  opacity: .7;
}
/* 開いた時 */
.menu_trigger.active span:nth-child(1) {
  translate: 0 calc(var(--gap) + var(--bar-height));
  rotate: 45deg;
}
.menu_trigger.active span:nth-child(2) {
  opacity: 0;
}
.menu_trigger.active span:nth-child(3) {
  translate: 0 calc((var(--gap) + var(--bar-height)) * -1);
  rotate: -45deg;
}
.fixbody {
  overflow: hidden;
  touch-action: none;
}

/* 5: footer
================================== */
footer {
  background: var(--bg-darkgray);
  color:#fff;
}
.footer_wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  &.inr {
    padding-block: var(--space-section-mini);
  }
}
.footer_nav {
  display:flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style:none;
  padding-left: 0;
  & a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    &:hover {
      color: var(--link-hover);
      text-decoration: underline;
    }
  }
}
@media (min-width: 768px) {
  .footer_nav {
    gap: 32px;
  }
}
.footer_logo {
  font-size: var(--font-size-4xl);
  font-weight: bold;
}
.footer_bottom {
  background-color: var(--bg-gray);
  & .inr {
    display: flex;
    justify-content: space-between;
    padding: 16px;
  }
}
.copy {
  margin-bottom: 16px;
  font-size: var(--font-size-xs);
  color: var(--text);
}
.footer_sns {
  display:flex;
  gap:8px;
  padding-left: 0;
  list-style: none;
  & img {
    width: 30px;
  }
}
@media (min-width: 768px) {
  .footer_sns {
    gap:16px;
  }
}
/* go topボタン */
#pageTop {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  & a {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    background : var(--primary);
    color: #fff;
    background: rgb(24 32 83 / .8);
    backdrop-filter: blur(8px);
  }
  & a:hover {
    opacity: 0.7;
  }
  & a:active {
    opacity: 1;
  }
  & a::after {
    position: absolute;
    right: 14px;
    top: 40%;
    display: block;
    content:"";
    width: 8px;
    height: 8px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
    transform: rotate(-45deg);
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 768px) {
  #pageTop a {
    width: 50px;
    height: 50px;
    &:after {
      right: 17px;
      width: 15px;
      height: 16px;
      border-top: 3px solid #FFF;
      border-right: 3px solid #FFF;
    }
  }
}
