@charset "utf-8";

/*リセットCSS（sanitize.css）の読み込み*/
@import url('https://unpkg.com/sanitize.css');

/*Google Fontsの読み込み*/
@import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');

/*Font Awesomeの読み込み（6.4.2）*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/*lightbox.cssの読み込み*/
@import url(https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/css/lightbox.css);

/*slick.cssの読み込み*/
@import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css');

/*テンプレート専用cssファイルの読み込み*/
@import url('animation.css');
@import url('inview.css');

/*テーマカラー*/
:root {
  --primary-color: #5ebff8;
}

/*opa1キーフレーム設定*/
@keyframes opa1 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*全体*/
html,
body {
  height: 100%;
  font-size: 13px;
  font-family: 'M PLUS Rounded 1c', 'ヒラギノ角ゴ Pro W3',
    'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, Osaka, 'ＭＳ Ｐゴシック',
    'MS PGothic', sans-serif;
  -webkit-text-size-adjust: none;
  background: #fff;
  color: #777;
  line-height: 2;
}

@media screen and (min-width: 900px) {
  html,
  body {
    font-size: 16px;
  }
}

/*リセット*/
figure,
dd,
nav {
  margin: 0;
}
table {
  border-collapse: collapse;
}
img {
  border: none;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
iframe {
  width: 100%;
}
input {
  font-size: 1rem;
}

/*リンク*/
a {
  color: #777;
  transition: 0.3s;
}
a:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

/*コンテナ*/
#container {
  height: 100%;
}
body:not(.home) #container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*コンテンツ*/
#contents {
  flex: 1;
  max-width: 1800px;
  margin: auto 0;
}

/*ヘッダー*/
.home header {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}
body:not(.home) header {
  background: var(--primary-color);
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

/*メニューブロック*/
#menubar a {
  display: block;
  text-decoration: none;
}
#menubar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#menubar {
  display: none;
}
#menubar.d-b,
#menubar_hdr.d-b {
  display: block;
}
#menubar.d-n,
#menubar_hdr.d-n {
  display: none;
}

/*メニューブロック詳細*/
#menubar {
  position: fixed;
  overflow: auto;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 100px 20px 20px;
  background: #fff url(../images/menu_bg.png) no-repeat center bottom / 100%;
  text-align: center;
  animation: opa1 0.2s both;
}
#menubar nav {
  margin: 0 auto;
  max-width: 500px;
}
#menubar nav a {
  padding: 1rem;
  margin: 1rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50px;
}

/*アイコン*/
#menubar .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}
#menubar .icon li {
  margin: 0.7rem;
}

/* ハンバーガーアイコン全体 */
#menubar_hdr {
  position: fixed;
  z-index: 101;
  cursor: pointer;
  right: 5%; /* 右からの距離 */
  top: 14px; /* 上からの距離 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(1); /* 拡大なし */
  width: 44px; /* スマホサイズ基準 */
  height: 44px;
  padding: 10px;
}

/* バー1本あたり */
#menubar_hdr span {
  display: block;
  transition: 0.3s;
  border-top: 2px solid #fff; /* 白い線 */
  box-shadow: 1px 1px rgba(0, 0, 0, 0.2);
  width: 100%; /* 横幅100%にしておく */
}

#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) {
  width: 16px;
  border-top: 2px solid #333;
  transform-origin: center center;
  position: relative; /* 追加 */
}

#menubar_hdr.ham span:nth-of-type(1) {
  transform: rotate(45deg) translate(0px, 2px); /* translate 微調整 */
}

#menubar_hdr.ham span:nth-of-type(3) {
  transform: rotate(-45deg) translate(0px, -2px);
}

/* 中央バーは非表示 */
#menubar_hdr.ham span:nth-of-type(2) {
  display: none;
}

/* ハンバーガーアイコンの黒丸 */
#menubar_hdr::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);   /* 半透明グレー */
    border-radius: 50%;
    z-index: 0;         /* 3本線より後ろ */
}

/* 3本線が黒丸の上に来るよう調整 */
#menubar_hdr span {
    position: relative; 
    z-index: 1;         
}

/* PCサイズ用（768px以上） */
@media screen and (min-width: 768px) {
    #menubar_hdr::before {
        width: 64px;    /* 黒丸の幅 */
        height: 64px;   /* 黒丸の高さ */
    }
}

/* スマホサイズ用（767px以下） */
@media screen and (max-width: 767px) {
    #menubar_hdr::before {
        width: 44px;    /* 黒丸の幅 */
        height: 44px;   /* 黒丸の高さ */
    }
}


/* PC用の微調整 */
@media screen and (min-width: 768px) {
  #menubar_hdr.ham span:nth-of-type(1),
  #menubar_hdr.ham span:nth-of-type(3) {
    left: 4px !important;
  }
}

/* スマホ用の微調整 */
@media screen and (max-width: 767px) {
  #menubar_hdr.ham span:nth-of-type(1),
  #menubar_hdr.ham span:nth-of-type(3) {
    left: -2px !important;
  }
}


/* PCサイズ用 */
@media screen and (min-width: 768px) {
  #menubar_hdr {
    width: 64px;
    height: 64px;
    padding: 12px;
  }
}

/* スマホサイズ用 */
@media screen and (max-width: 767px) {
  #menubar_hdr {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
}

/* SNSアイコン */
#menubar .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  gap: 0.7rem;
}

#menubar .icon li a {
  color: #333;
  transition: 0.3s;
}

#menubar .icon li a:hover {
  color: var(--primary-color);
}

/*main*/
main {
  padding: 5%;
}
main h2 {
  color: var(--primary-color);
  font-family: 'Comfortaa', 'M PLUS Rounded 1c', cursive;
  font-weight: normal;
  font-size: 4rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 0 1rem;
}
main h2 span {
  display: block;
  font-size: 0.2em;
  margin-top: -1em;
  color: #333;
}
main h3 {
  font-size: 1.3rem;
  border-bottom: 1px solid #e5e5e5;
}
@media screen and (min-width: 500px) {
  main h2 {
    padding: 0 2rem 1rem;
  }
  main h3 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  main p {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

/*お知らせ*/
.new {
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  overflow: hidden;
}
.new dd {
  padding: 1rem;
}
@media screen and (min-width: 500px) {
  .new {
    display: flex;
    flex-wrap: wrap;
  }
  .new dt {
    width: 16rem;
    padding: 2rem 0 2rem 2rem;
    display: flex;
    justify-content: space-between;
  }
  .new dd {
    padding: 2rem 2rem 2rem 0;
    width: calc(100% - 16rem);
  }
  .new dt span {
    display: inline-block;
    width: 6rem;
    background: #b7b7b7;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    margin-right: 1rem;
    align-self: flex-start;
    line-height: 1.8;
    position: relative;
    top: 0.4em;
    border-radius: 2px;
  }
  .new dt span.icon-bg1 {
    background: var(--primary-color);
  }
  .new dt span.icon-bg2 {
    background: #a2caeb;
  }
}

/*フッター*/
footer small {
  font-size: 100%;
}
footer {
  font-size: 0.7rem;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer .pr {
  display: block;
}

/*バナー*/
.list-banner {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}
.list-banner .list {
  display: block;
  position: relative;
  max-width: 400px;
  border-radius: 0 100px 0 100px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}
.list-banner .list h4 {
  position: absolute;
  z-index: 1;
  font-weight: normal;
  color: #fff;
  font-size: 2rem;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.list-banner .list h4 span {
  display: block;
  font-size: 0.4em;
}
.list-banner .list figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}
.list-banner .list:hover figure img {
  transform: scale(1.1);
}
@media screen and (max-width: 768px) {
  .list-banner .list {
    max-width: 90%;
    margin: 0 auto;
  }
}

/*ページトップ、テーブル、補助*/
.pagetop a {
  display: block;
  text-decoration: none;
  text-align: center;
  z-index: 99;
  position: fixed;
  right: 20px;
  bottom: 20px;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  width: 60px;
  line-height: 60px;
  border-radius: 50%;
}
.ta1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1rem;
  margin: -1rem;
}
.ta1 th,
.ta1 td {
  padding: 0.5rem 1rem;
}
.ta1 th {
  width: 20%;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
.color-check,
.color-check a {
  color: #ff0000 !important;
}
.color-theme,
.color-theme a {
  color: var(--primary-color) !important;
}
.l {
  text-align: left !important;
}
.c {
  text-align: center !important;
}
.r {
  text-align: right !important;
}
.ws,
.wl {
  width: 95%;
  display: block;
}
.mb0 {
  margin-bottom: 0 !important;
}
.mb30 {
  margin-bottom: 30px !important;
}
.look {
  display: inline-block;
  padding: 0.2em 0.5em;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #ddd;
  border-radius: 3px;
  word-break: break-all;
  margin: 1px;
}
.small {
  font-size: 0.75em;
}
.large {
  font-size: 2em;
  letter-spacing: 0.1em;
}
.pc {
  display: none;
}
.dn {
  display: none !important;
}
.block {
  display: block !important;
}
.fs1 {
  font-size: 2rem;
}
@media screen and (min-width: 900px) {
  .ws {
    width: 48%;
    display: inline;
  }
  .sh {
    display: none;
  }
  .pc {
    display: block;
  }
}

/* News部分 */
.news-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
}
.news-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.news-date {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  min-width: 80px;
  line-height: 1;
}
.news-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

/* ▼ ここ修正 */
.news-body {
  display: flex;
  gap: 12px;
}
.news-thumb img {
  max-width: 80px;  /* サムネイル小さめ、比率維持 */
  height: auto;
  border-radius: 4px;
  display: block;
}
.news-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;        /* ← margin-leftを削除 */
}

.news-thumb img {
  max-width: 80px;  /* 小さめに表示 */
  height: auto;     /* ← これで比率維持 */
  border-radius: 4px;
  display: block;
}

/*戻るリンク*/
.nav-back {
  text-align: center;
  margin: 30px 0;
}
.nav-back a {
  display: inline-block;
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
}
.nav-back a:hover {
  background: #333;
  color: #fff;
}

/*h2スマホ自動縮小*/
@media screen and (max-width: 767px) {
  main h2 {
    white-space: nowrap;
    font-size: clamp(1.5rem, 5vw, 4rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* スマホ表示でheaderの高さを自動にする */
@media screen and (max-width: 767px) {
  .home header {
    height: auto;
  }

  main {
    padding-top: 20px; /* 本文との余白を小さめに調整 */
  }
}
