/* style.css */

/* モバイル向けに高さを小さく調整 */
@media (max-width: 768px) {
  #headerCarousel {
    height: 22vh;
  }
}

/* 全体共通スタイル */
body {
  padding-top: 120px;
  font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  background-color: black;
  color:#fff;
}

/* ヘッダー調整 */
header h1 {
  font-weight: bold;
  font-size: 1.8rem;
}

/* ナビリンクホバー時 */
.nav-link:hover {
  text-decoration: underline;
  color: #f8f9fa;
}

/* セクションタイトル */
main h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

/* メディアクエリでモバイル対応の微調整 */
@media (max-width: 576px) {
  header h1 {
    font-size: 1.4rem;
  }
  .navbar-nav {
    text-align: center;
  }
  main {
    padding-left: 1rem;
    padding-right: 1rem;
    color:#fff;
  }
}

@media (max-width: 576px) {
header h1 {
  font-size: 1.5rem;
}
.carousel-inner img {
  height: auto;
  object-fit: cover;
}

nav .navbar-nav {
  text-align: center;
}
main article section {
  padding-left: 1rem;
  padding-right: 1rem;
}
}

#mainCarousel {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/*index.html内のカード*/
.card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 15px rgba(91, 192, 222, 0.5); /* 水色の影で浮かび上がる */
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.card-img-top {
  max-height: 200px;
  object-fit: cover;
}

.square-card {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形 */
  background-size: cover;
  background-position: center;
  border: none;
  overflow: hidden;
}

.square-card .card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* 個別カード背景画像 */
.square-blog {
  background-image: url('../img/index_blog.png');
}

.square-games {
  background-image: url('../img/index_games.png');
}

.square-ai {
  background-image: url('../img/index_ai.png');
}

.square-extra {
  background-image: url('../img/index_extra.png');
}

.square-link {
  background-image: url('../img/index_link.png');
}

.square-about {
  background-image: url('../img/index_about.png');
}

.card-text-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* 黒の半透明 */
  border-radius: 0.5rem;                /* 角丸（好みに応じて） */
}

/* カルーセル高さ調整 */
#headerCarousel {
  height: 300px;
}

/* フッター調整 */
footer {
  color: #fff;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0;
}
footer .sns-icons a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: #666fff;
}

footer .sns-icons a:hover {
  color: #fff;
}

/*mainタグ内のコンテンツ*/
.contents {
  color: #fff;
}

/*吹き出し*/
.balloon2-left {
  position: relative;
  display: inline-block;
  margin: 1.5em 0 1.5em 15px;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  font-size: 16px;
  background: #FFF;
  border: solid 3px #555;
  box-sizing: border-box;
  border-radius: 10px;
}

.balloon2-left:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-right: 12px solid #FFF;
  z-index: 2;
}

.balloon2-left:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  margin-top: -14px;
  border: 14px solid transparent;
  border-right: 14px solid #555;
  z-index: 1;
}

.balloon2-left p {
  margin: 0;
  padding: 0;
}

/*画像を上下中央揃えにする*/
.center-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}
