/*
Theme Name: Musica Pinoco
Template: beautiplus
*/

/* サイトタイトルと説明文 */
.header .logo h1 a,
.header .logo p {
  color: #ffffff !important;
}

/* ナビゲーションメニューの文字 */
#mainnavigation a {
  color: #999 !important;
}

/* ホバー時（マウスを乗せたとき）はピンク系に） */
#mainnavigation a:hover,
#mainnavigation .current-menu-item a {
  color: #e80f6f !important;
}

/* ===== 楽器紹介セクション レイアウト調整 ===== */
/* ===== 楽器紹介セクション ===== */
.servicebox {
  position: relative;
  width: 20%; /* PCでは5列 */
  margin: 1%;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.servicebox:hover {
  transform: scale(1.03);
}

.servicebox .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル（画像上の文字） */
.servicebox .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  margin: 0;
}

.servicebox .title a {
  color: #fff;
  text-decoration: none;
}

.servicebox .title a:hover {
  text-decoration: underline;
}

/* ===== レスポンシブ調整 ===== */

/* タブレット（3列） */
@media screen and (max-width: 1024px) {
  .servicebox { width: 30%; }
}

/* スマホ（3列維持・文字縮小） */
@media screen and (max-width: 768px) {
  .servicebox { width: 30%; }
  .servicebox .title {
    font-size: 13px !important;
    padding: 6px 0 !important;
  }
}

/* 小型スマホ（さらに小さく） */
@media screen and (max-width: 480px) {
  .servicebox { width: 30%; }
  .servicebox .title {
    font-size: 11px !important;
    padding: 4px 0 !important;
  }
}