.mx-auto {
  width: 55%;
}

#sitelogo {
  max-height: 60px;
}

.content-title {
  padding: 0.25em 0.5em;/*上下 左右の余白*/
  color: black;
  background: transparent;/*背景透明に*/
  border-left: solid 5px #7db4e6;/*左線*/
}


.hero {
    background: url('/images/items/background.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    color: white;
    position: relative;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.3);
    /* 背景の透過黒 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.main-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}



/* お知らせ欄 */
.notice-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  color: #212529; /* 通常文字色（黒） */
}

.date-box {
  background-color: #333;
  color: #fff;
  padding: 20px 40px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 16px; 
  min-width: 110px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.notice-text {
  flex-grow: 1;
  margin: 0;
  padding-bottom: 10px;
}

.notice-item:hover {
  background-color: #212529; /* 黒背景 */
  color: #fff; /* 白文字 */
}

.notice-item:hover .date-box {
  background-color: #fff; /* date box 背景を白に */
  color: #212529; /* 黒文字に反転 */
}

.notice-item a {
  color: #212529; /* 黒字 */
  text-decoration: none; /* 下線なし */
  transition: color 0.3s;
}

.notice-item:hover a {
  color: #fff; /* ホバー時に白字に反転 */
}


.news-title {
  text-align: center;
  position: relative;
  display: inline-block;
  font-weight: bold;
  font-size: 2.5rem;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #212529;
}

.news-title::before,
.news-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background-color: #ccc;
}

.news-title::before {
  left: -90px;
}

.news-title::after {
  right: -90px;
}

.news-title .first-letter {
  color: orange;
}


/* リンクカード */
.tile-link .card {
    background-color: white;
    color: black;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.tile-link .icon-img {
    transition: filter 0.3s;
}

.tile-link:hover .card {
    background-color: black;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 浮き上がり感 */
    transform: translateY(-4px); /* 少し上に移動 */
}

.tile-link:hover .icon-img {
    filter: invert(1);
}

.icon-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#more-cards {
    display: block;
    opacity: 1;
    transition: opacity 0.5s;
}

@starting-style {
  #more-cards.show {
    opacity: 0;
  }
}

/* footer */
footer {
  margin-top: 4rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6); /* やや薄い白 */
  font-weight: 400;               /* 通常の細さ */
  text-decoration: none;          /* アンダーラインなし */
  transition: color 0.2s ease, font-weight 0.2s ease;
}

footer a:hover {
  color: #ffffff;                 /* 明るい白に */
  font-weight: 500;               /* 少しだけ太く */
  text-decoration: underline;     /* アンダーラインで視認性UP */
}

footer li {
  list-style:none;
  font-weight:bold;
  margin-top: 0;
  list-style: none;
}


.fade-up {
  animation: fadeUpAnim 1.5s ease forwards;
}

@keyframes fadeUpAnim {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@starting-style {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* スクロールアニメーション */
a#scroll {
    position: absolute;
    bottom: 120px;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    color: #FFF;
    text-align: center;
    font-size: 15px;
    letter-spacing: 1px;
}

a#scroll span {
    position: absolute;
    bottom: 90px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: sdb 1.5s infinite;
    animation: sdb 1.5s infinite;
    box-sizing: border-box;
}

@-webkit-keyframes sdb {
    0% {
        -webkit-transform: rotate(-45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: rotate(-45deg) translate(-20px, 20px);
        opacity: 0;
    }
}

@keyframes sdb {
    0% {
        transform: rotate(-45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(-45deg) translate(-20px, 20px);
        opacity: 0;
    }
}

/* タブレット用 */
@media screen and (max-width: 1024px) {
  .hero {
      height: 70vh;
  }

  .mx-auto {
    width: 80%;
  }
}
/* スマホ用 */ 
@media screen and (max-width: 480px) {
  .hero {
      height: 60vh;
  }

  .mx-auto {
    width: 80%;
  }

  #sitelogo {
    max-height: 30px;
  }
  #menu {
    font-size: xx-small;
  }

  #inquiry {
    display: none;
  }

  /* お知らせ欄 */
  .notice-item {
    flex-direction: column;
  }

  .date-box {
    width: 90%;
    padding: 5px 2px;
  }

  .notice-text {
    flex-grow: 1;
    margin: 5px;
  }

  .news-title {
    font-size: 1.5rem;
  }

  .footer-pc {
    display: none;
  }
}